I understand the difference between layer2 & layer3 and MAC & IP. I understand address resolution protocol, etc. But is there any way to do a traceroute
that will show Layer 2 information? For instance, I'd like to discover the MAC address of the nearest switch on the far side of a router.
So, it goes: Desktop→Router→Switch, and I want to check the MAC of the Switch. Layer 2 & 3 information all the way to 8.8.8.8 would be nice, if possible, but I don't like my chances.
I can't see how it could be achieved, but I don't know everything. Just because I can't think of a way to do it, doesn't necessarily mean it can't be done somehow.
After all Layer 3 packets are encapsulated in layer 2 frames, perhaps there's a way to retain the Layer 2 headers in the opposite direction, instead of being stripped by the router somehow?