Guide 7.3.7 Lab - View The Switch Mac Address
Guide 7.3.7 Lab - View The Switch Mac Address
192.168.1.1
S1 VLAN 1 1 255.255.255.0
192.168.1.1
S2 VLAN 1 2 255.255.255.0
Objectives
Part 1: Build and Configure the Network
Part 2: Examine the Switch MAC Address Table
Background / Scenario
The purpose of a Layer 2 LAN switch is to deliver Ethernet
frames to host devices on the local network. The switch records
host MAC addresses that are visible on the network, and maps
those MAC addresses to its own Ethernet switch ports. This
process is called building the MAC address table. When a switch
receives a frame from a PC, it examines the frame’s source and
destination MAC addresses. The source MAC address is recorded
and mapped to the switch port from which it arrived. Then the
destination MAC address is looked up in the MAC address table.
If the destination MAC address is a known address, then the
frame is forwarded out of the corresponding switch port
associated with that MAC address. If the MAC address is
unknown, then the frame is broadcasted out of all switch ports,
except the one from which it came. It is important to observe and
understand the function of a switch and how it delivers data on
the network. The way a switch operates has implications for
network administrators whose job it is to ensure secure and
consistent network communication.
Note: The switches used are Cisco Catalyst 2960s with Cisco IOS
Release 15.2(2) (lanbasek9 image). Other switches and Cisco IOS
versions can be used. Depending on the model and Cisco IOS
version, the commands available and output produced might vary
from what is shown in the labs.
Note: Make sure that the switches have been erased and have no
startup configurations. If you are unsure contact your instructor.
Instructions
The switch may have one or more MAC addresses in its table,
based on whether or not the students entered a ping command
when configuring the network. The switch will most likely have
learned MAC addresses through S1’s F0/1 switch port. The switch
will record multiple MAC addresses of hosts learned through the
connection to the other switch on F0/1.
-------------------------------------------
No. The student will most likely discover that the MAC address
for the other switch’s F0/1 switch port has been quickly
reinserted in the MAC address table.
-------------------------------------------
Answers will vary. The ARP cache may have no entries in it, or it
may have the gateway IP address to MAC address mapping.
C:\Users\PC-B> arp –a
b. From the PC-B command prompt, ping PC-A, S1, and S2.
-------------------------------------------
Answers may vary, but the ARP cache on PC-B should have more
entries.
C:\Users\PC-B> arp –a
Reflection Question
On Ethernet networks, data is delivered to devices by their MAC
addresses. For this to happen, switches and PCs dynamically
build ARP caches and MAC address tables. With only a few
computers on the network this process seems fairly easy. What
might be some of the challenges on larger networks?
Device Configs
Switch S1
S1# show running-config
Building configuration...
version 15.0
no service pad
no service password-encryption
hostname S1
boot-start-marker
boot-end-marker
!
no aaa new-model
interface FastEthernet0/1
interface FastEthernet0/2
interface FastEthernet0/3
interface FastEthernet0/4
interface FastEthernet0/5
interface FastEthernet0/6
interface FastEthernet0/7
!
interface FastEthernet0/8
interface FastEthernet0/9
interface FastEthernet0/10
interface FastEthernet0/11
interface FastEthernet0/12
interface FastEthernet0/13
interface FastEthernet0/14
interface FastEthernet0/15
interface FastEthernet0/16
interface FastEthernet0/17
interface FastEthernet0/18
interface FastEthernet0/19
!
interface FastEthernet0/20
interface FastEthernet0/21
interface FastEthernet0/22
interface FastEthernet0/23
interface FastEthernet0/24
interface GigabitEthernet0/1
interface GigabitEthernet0/2
interface Vlan1
ip http server
ip http secure-server
line con 0
line vty 0 4
password cisco
login
line vty 5 15
login
end
Switch S2
S2#show running-config
Building configuration...
version 15.0
no service pad
no service password-encryption
hostname S2
boot-start-marker
boot-end-marker
no aaa new-model
system mtu routing 1500
interface FastEthernet0/1
interface FastEthernet0/2
interface FastEthernet0/3
interface FastEthernet0/4
interface FastEthernet0/5
interface FastEthernet0/6
interface FastEthernet0/7
interface FastEthernet0/8
interface FastEthernet0/9
!
interface FastEthernet0/10
interface FastEthernet0/11
interface FastEthernet0/12
interface FastEthernet0/13
interface FastEthernet0/14
interface FastEthernet0/15
interface FastEthernet0/16
interface FastEthernet0/17
interface FastEthernet0/18
interface FastEthernet0/19
interface FastEthernet0/20
interface FastEthernet0/21
!
interface FastEthernet0/22
interface FastEthernet0/23
interface FastEthernet0/24
interface GigabitEthernet0/1
interface GigabitEthernet0/2
interface Vlan1
ip http server
ip http secure-server
line con 0
line vty 0 4
password cisco
login
line vty 5 15
login
!
end