If PC1 in the 10.1.100.0/24 network wants to communicate to PC4 in 10.1.200.0/24, it performs the following:
- PC1 generates the data and encapsulates it with an IP header. The source IP address is set to 10.1.100.101 and the destination IP address is set to 10.1.200.102.
- PC1 encapsulates the packet with an Ethernet header. The source MAC address is set to the PC1 MAC address and the destination MAC address is set to the R1 (default gateway) MAC address. The frame will be forwarded towards SW1.
- SW1 is a simple Layer 2 switch and so it performs a lookup on the Ethernet header and forwards to the destination MAC (R1 in this example).
- R1 receives the packet and decapsulates the Ethernet header, as the destination MAC address matches ...