1682_ch03.
qxd 7/14/06 11:44 AM Page 9
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:
— Interface speed and duplex settings
— Switch IP address and default gateway
Scenario
This lab contains two main steps, as follows:
Step 1. Observe the addition of new MAC address table entries
Step 2. Configure basic settings:
■ Interface speed and duplex
■ IP address and default gateway
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.
Example 3-1 Initial Configuration for Sw1
hostname Sw1
Example 3-2 Initial Configuration for Sw2
hostname Sw2
1682_ch03.qxd 7/14/06 11:44 AM Page 10
10 CCNA Video Mentor
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.
Example 3-3 Configuration on Sw1 Added During This Lab
enable secret cisco
!
interface FastEthernet 0/23
duplex full
speed 100
!
interface vlan 1
ip address 172.30.1.101 255.255.255.0
!
ip default-gateway 172.30.1.251
!
Example 3-4 Configuration on Sw2 Added During This Lab
interface FastEthernet 0/24
duplex full
speed 100
!
interface vlan 1
ip address 172.30.1.102 255.255.255.0
!
ip default-gateway 172.30.1.251
Video Presentation Reference
This video presents several figures and a table that support the concepts covered in the lab. This
section simply lists these figures for reference. Because the video is organized into two separate
steps, the reference materials have been organized into two separate sections.
1682_ch03.qxd 7/14/06 11:44 AM Page 11
Lab 3: Switching Basics: Learning, Fowarding/Filtering, and Interface Settings 11
Step 1 Reference
Figure 3-1 Completed MAC Address Tables After Learning All PC MAC Addresses
Sw1 MAC Address Table
Address Interface
Sw2 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
Sw2 MAC Address Table
Address Interface
1682_ch03.qxd 7/14/06 11:44 AM Page 12
12 CCNA Video Mentor
Figure 3-3 Forwarding Path and MAC Address Table Entries Used for Frames from PC3
to PC2
Sw1 MAC Address Table
Address Interface
Sw2 MAC Address Table
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
speed {10 | 100} Manually sets the speed of the interface
duplex {half | full} Manually sets the duplex of an interface
interface vlan 1 Moves the user to VLAN 1 configuration mode
ip address address mask Allows the configuration of a management IP address on the switch
ip default-gateway address Defines the switch’s default gateway IP address
1682_ch03.qxd 7/14/06 11:44 AM Page 13
Lab 3: Switching Basics: Learning, Fowarding/Filtering, and Interface Settings 13
Figure 3-4 IP Address Reference
PC1
172.30.1.1
PC3
Sw1 R1
172.30.1.3
Sw2
172.30.1.2
PC2