simple routing

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

Reply to
Bill YILDIRIM
Loading thread data ...

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

Reply to
Jonathan

the packet will have the ip of the server but MAc of router e0..

Reply to
ksgoh

that was extactly what I thought. There is a mistake in my studying metarial then :)

Thanks guys..

Reply to
Bill YILDIRIM

the host will see the source mac address of route interface e0

Reply to
Jeff Vena

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.