Switch Basics: Learning, Forwarding/Filtering, and Interface Settings
Switch Basics: Learning, Forwarding/Filtering, and Interface Settings
Lab 3
Switch Basics: Learning,
Forwarding/Filtering, and Interface
Settings
This CCNA Video Mentor lab reviews the logic of how switches learn entries for their MAC address
tables and make forwarding and filtering decisions based on those tables; it also shows some of the
most basic configuration settings on a Cisco LAN switch. In particular, the objectives of this lab are
as follows:
■ Predict the types of entries to be found in a switch’s MAC address table
■ Describe how switches make forwarding/filtering decisions
■ Configure the following:
Scenario
This lab contains two main steps, as follows:
Initial Configurations
The two switches in this lab begin with very little configuration—each switch simply has a hostname
configured. Examples 3-1 and 3-2 list the hostname configurations for completeness.
hostname Sw1
hostname Sw2
1682_ch03.qxd 7/14/06 11:44 AM Page 10
Ending Configurations
This lab adds some configuration commands to both Sw1 and Sw2. Examples 3-3 and 3-4 show
the configuration added during the lab.
!
interface vlan 1
ip address 172.30.1.102 255.255.255.0
!
ip default-gateway 172.30.1.251
Step 1 Reference
Figure 3-1 Completed MAC Address Tables After Learning All PC MAC Addresses
Sw1 MAC Address Table
Address Interface
Figure 3-2 Forwarding Path and MAC Address Table Entries Used for Frames from PC3
to PC1
Sw1 MAC Address Table
Address Interface
1682_ch03.qxd 7/14/06 11:44 AM Page 12
Figure 3-3 Forwarding Path and MAC Address Table Entries Used for Frames from PC3
to PC2
Address Interface
Step 2 Reference
Table 3-1 Switch Configuration Command Reference
Command Purpose
interface fastethernet x/y Moves the user into interface configuration mode
ip address address mask Allows the configuration of a management IP address on the switch
172.30.1.1
PC3
Sw1 R1
172.30.1.3
Sw2
172.30.1.2
PC2