If I have two nodes/computers connected to each other on the same range of IPs. Say:
Node A: 192.168.0.1/30
Node B: 192.168.0.2/30
How to know (from Node A) if B is connected directly to it (via the same switch) or not (via multiple hops)?
ethernetipipv4
If I have two nodes/computers connected to each other on the same range of IPs. Say:
Node A: 192.168.0.1/30
Node B: 192.168.0.2/30
How to know (from Node A) if B is connected directly to it (via the same switch) or not (via multiple hops)?
Best Answer
Since switches generally do not rewrite the Ethernet frame, you can't tell from inspecting the data. You might be able to infer something based on timing (delays), but I suspect that would be unreliable.