LAN Switching Part 2
LAN Switching Part 2
LAN Switching Part 2
Eth. Eth.
header Packet trailer
7 1 6 6 2 4
●
The Preamble + SFD is usually not considered part of the
Ethernet header
●
Therefore the size of the Ethernet header + trailer is 18 bytes
(6 + 6 + 2 + 4)
Ethernet Frame
Eth. Eth.
header Packet trailer
SW1 MAC Address Table Src IP: 192.168.1.1 SW2 MAC Address Table
Dst IP: 192.168.1.3 MAC Interface
MAC Interface
Src MAC: .9D00
Dst MAC: ???
ARP
●
ARP stands for ‘Address Resolution Protocol’
●
ARP is used to discover the Layer 2 address (MAC address) of
a known Layer 3 address (IP address)
●
Consists of two messages:
ARP Request
ARP Reply
●
ARP Request is broadcast = sent to all hosts on the network
●
ARP Reply is unicast = sent only to one host (the host that
sent the request)
ARP Request
MAC: 0C2F.B011.9D00 MAC: 0C2F.B06A.3900
ARP Req
192.168.1.0/24
PC1 G0/0 G0/0 PC3
.1
G0/2 G0/2FFFF.FFFF.FFFF.3
= broadcast MAC address
.2 .4
PC2 G0/1 PC4
SW1 SW2 G0/1
MAC: 0C2F.B084.6200 ARP REQUEST MAC: 0C2F.B01E.0A00
Src IP: 192.168.1.1
SW1 MAC Address Table Dst IP: 192.168.1.3 SW2 MAC Address Table
MAC Interface Src MAC: 0C2F.B011.9D00 MAC Interface
Dst MAC: FFFF.FFFF.FFFF
x
.2 .4
PC2 ARP Req G0/1 PC4
SW1 SW2 G0/1
MAC: 0C2F.B084.6200 ARP REQUEST MAC: 0C2F.B01E.0A00
Src IP: 192.168.1.1
SW1 MAC Address Table Dst IP: 192.168.1.3 SW2 MAC Address Table
dynamic
Src MAC:MAC address
0C2F.B011.9D00
MAC Interface MAC Interface
Dst MAC: FFFF.FFFF.FFFF
.9D00 G0/0
Src IP: 192.168.1.1
Dst IP: 192.168.1.3
Src MAC: .9D00
Dst MAC: ???
ARP Request
MAC: 0C2F.B011.9D00 MAC: 0C2F.B06A.3900
192.168.1.0/24
PC1 G0/0 G0/0 ARP Req PC3
.1
G0/2 G0/2 .3
x
.2 .4
G0/1
PC2 SW1 SW2 G0/1 ARP Req PC4
MAC: 0C2F.B084.6200 ARP REQUEST MAC: 0C2F.B01E.0A00
Src IP: 192.168.1.1
SW1 MAC Address Table Dst IP: 192.168.1.3 SW2 MAC Address Table
MAC Interface Src MAC: 0C2F.B011.9D00 MAC Interface
Dst MAC: FFFF.FFFF.FFFF
.9D00 G0/0 .9D00 G0/2
●
Use arp -a to view the ARP table
(Windows, macOS, Linux)
●
Internet Address = IP address
(Layer 3 address)
●
Physical Address = MAC address
(Layer 2 address)
●
Type static = default entry
●
Type dynamic = learned via ARP
Ethernet LAN Switching
gns3.com
Ethernet LAN Switching
PING
Src IP: 192.168.1.1
Dst IP: 192.168.1.3
Src MAC: 0C2F.B011.9D00
Dst MAC: ???
Ethernet LAN Switching
PING
Src IP: 192.168.1.1
Dst IP: 192.168.1.3
Src MAC: 0C2F.B011.9D00
Dst MAC: ???
Ethernet LAN Switching
PING
Src IP: 192.168.1.1
Dst IP: 192.168.1.3
Src MAC: 0C2F.B011.9D00
Dst MAC: 0C2F.B06A.3900
Ping
●
A network utility that is used to test reachability
●
Measures round-trip time
●
Uses two messages:
ICMP Echo Request
ICMP Echo Reply
●
Command to use ping: ping (ip-address)
Ping
Ping
MAC Address Table
MAC Address Table
MAC: 0C2F.B011.9D00 MAC: 0C2F.B06A.3900
192.168.1.0/24
PC1 G0/0 G0/0 PC3
.1
G0/2 G0/2 .3
.2 .4
PC2 G0/1 PC4
SW1 SW2 G0/1
MAC: 0C2F.B084.6200 MAC: 0C2F.B01E.0A00
Aging
Clearing the MAC Address Table
Clearing the MAC Address Table
Ethernet Frame
Ethernet Frame
Ethernet Frame
Topics we covered
●
Ethernet frame payload minimum size
●
ARP (Address Resolution Protocol)
ARP Request
ARP Reply
●
ARP table
●
Ping
ICMP Echo Request
ICMP Echo Reply
●
MAC Address Table
QUIZ
Quiz Question 1
a) ARP request
b) ARP reply
c) ICMP echo request
d) ICMP echo reply
Quiz Question 2
a) ARP request
Which fields are present in the output of the show mac address-table
command on a Cisco switch?
Which types of frames does a switch send out of all interfaces, except the
one the frame was received on?
●
Review flash cards
(link in the description)
●
Packet Tracer lab