04-03-2019 12:37 AM
As we know MAC/hardware address is used in network. Want to understand how it works between remote locations. As Example: One location is US and other is Canada. Source is US and Destination is Canada. How source know the MAC of Destination.
Solved! Go to Solution.
04-03-2019 01:29 AM
Hi,
Let's try to understand the Concept with the below example:
Source and Destination mac address will be rewritten by every L3 devices in the network during forwarding the traffic. as
PC1(aa.aa.aa.aa.aa)------->L3 switch(bb.bb.bb.bb.bb)----------->Firewall (cc.cc.cc.cc.cc)
as PC1 Example MAC address is: aa.aa.aa.aa
L3 Switch MAC address is: bb.bb.bb.bb.bb
Firewall MAC address id: cc.cc.cc.cc.cc
a Frame started from PC 1 and received in by Layer 3 switch the first thing it does is strip off the Ethernet header and discard it (assuming it passes error check). The Switch then takes a look at the destination IP. Assuming the switch has a route in its routing table for the destination IP, that route will also contain information about the next-hop. The switch will then construct A NEW ETHERNET HEADER with the MAC address of the next-hop as the destination MAC address and source will replace as self MAC address. This newly packaged frame is then shoved out whatever interface is the appropriate one.
Now the Firewall as received the frame as Source mac address bb.bb.bb.bb.bb and Destination mac address cc.cc.cc.cc.cc
04-03-2019 12:40 AM
It uses arp requests to map the ip to the mac and keeps a cam table to find out on which physical port the mac lives so it can switch a frame to that port.
04-03-2019 12:49 AM
Hi there,
The scenario you describe most likely involves a path which crosses many Layer3 networks, as such the source device does not require the MAC address of the destination device. It only requires the MAC address of the gateway on it's local subnet.
As the packet traverses the networks, the source and destination IP remains the same, but in the Ethernet frame header the source and destination MAC addresses are constantly changing each time the frame is decapsulated/ encapsulated and forwarded.
cheers,
Seb.
04-03-2019 01:54 AM
04-03-2019 02:55 AM
If I understand your question correctly, when the source device initial needs to send its packet, its network stack will have an IP address, subnet mask and gateway configured. With just those three pieces of information it can determine if the destination IP address is off-link (ie not in the same subnet). If this is the case if must address the Ethernet frame with a destination MAC address of the gateway. It use a ARP to learn the MAC address of the gateway, once it receives an ARP reply from the gateway it can correctly address its Ethernet frame and the IP packet can begin its journey towards its IP destination.
cheers,
Seb.
04-03-2019 01:29 AM
Hi,
Let's try to understand the Concept with the below example:
Source and Destination mac address will be rewritten by every L3 devices in the network during forwarding the traffic. as
PC1(aa.aa.aa.aa.aa)------->L3 switch(bb.bb.bb.bb.bb)----------->Firewall (cc.cc.cc.cc.cc)
as PC1 Example MAC address is: aa.aa.aa.aa
L3 Switch MAC address is: bb.bb.bb.bb.bb
Firewall MAC address id: cc.cc.cc.cc.cc
a Frame started from PC 1 and received in by Layer 3 switch the first thing it does is strip off the Ethernet header and discard it (assuming it passes error check). The Switch then takes a look at the destination IP. Assuming the switch has a route in its routing table for the destination IP, that route will also contain information about the next-hop. The switch will then construct A NEW ETHERNET HEADER with the MAC address of the next-hop as the destination MAC address and source will replace as self MAC address. This newly packaged frame is then shoved out whatever interface is the appropriate one.
Now the Firewall as received the frame as Source mac address bb.bb.bb.bb.bb and Destination mac address cc.cc.cc.cc.cc
04-03-2019 05:36 PM
04-03-2019 04:32 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide