Imagine a simle network
Host -------- [e0]{Router}[e1] --------- Server
Where host receives a packet from server, will that packet have the MAC address of the server or router's e0 interface?
Thanks
Imagine a simle network
Host -------- [e0]{Router}[e1] --------- Server
Where host receives a packet from server, will that packet have the MAC address of the server or router's e0 interface?
Thanks
Packets do not have MAC addresses. Frames do.
Layer 2 addresses (e.g. MAC addresses, Frame-Relay DLCIs, ATM PVCs, etc) do not extend beyond the individual layer 2 link.
ARP is used to translate these layer 2 addresses into usable layer 3 addresses.
When the layer 3 destination is not on a directly connected layer 2 link, the device will ARP for its default gateway, and that device (usually a router) will reply with its own layer 2 address, so the host device can send its layer 2 frame to that destination, to be relayed to the appropriate next hop layer 2 link.
In your example above, 'Host' has no idea where 'Server' is, so it has to send its layer 2 frames to 'Router,' which will in turn relay those frames to 'Server' with its own source MAC address of its E1 interface.
Jonathan
the packet will have the ip of the server but MAc of router e0..
that was extactly what I thought. There is a mistake in my studying metarial then :)
Thanks guys..
the host will see the source mac address of route interface e0
Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.