Lab 9.8.2 – Cisco Switch MAC Table Examination (Answers)

Lab 9.8.2 – Cisco Switch MAC Table Examination (Answers)

Topology Diagram

Lab 9.8.2 - Cisco Switch MAC Table Examination (Answers) 2

Addressing Table

Device Interface IP Address Subnet Mask Default Gateway
R1-ISP S0/0/0 N/A
Fa0/0 N/A
R2-Central S0/0/0 N/A
Fa0/0 N/A
Eagle Server N/A
hostPod#A N/A 172.16.Pod#.1
hostPod#B N/A 172.16.Pod#.2
S1-Central N/A

Learning Objectives

Upon completion of this lab, you will be able to:

  • Use the Telnet protocol to log into a Cisco Switch.
  • Use the Cisco IOS show mac-address-table command to examine MAC address and port associations.


Switches maintain a table of MAC addresses and associated switch port. When a switch receives a frame, the destination MAC address is checked against the table, and the corresponding port is used to route the frame out of the switch. If a switch does not know which port to route the frame, or the frame is a broadcast, then the frame is routed out all ports except the port where it originated.

Access to Cisco devices can be accomplished through several means. A console port can be used if the Cisco router or switch is within the same physical proximity of a computer. Using Windows hyperterm utility, a serial connection can be established. For devices physically distant from the network engineer, network connectivity can be established through two means. If the network is not secure, a modem configured on the AUX port enables telephone access. For secure networks, the Cisco device can be configured for a Telnet session. In this lab, the student will connect to the switch via a Telnet session.


  • Telnet to S1-Central.
  • Log in with student account.
  • Use show mac-address-table command to examine the mac addresses and association to ports.


Use the Cisco IOS show mac-address-table command to examine the switch MAC address table and other address-related information.

Telnet is a network service that uses a client-server model. Cisco IOS devices provide a default Telnet server, and operating systems such as Windows have built-in Telnet clients. Using Telnet, network engineers can log into network devices from anywhere across a secure network. The Cisco device must be configured for Telnet access, otherwise it is denied. In Eagle 1, limited privileges have been configured for student use.

Depending on the classroom situation, the lab topology may have been modified before this class. It is best to use one host to verify infrastructure connectivity. If the default web page cannot be accessed from, troubleshoot end-to-end network connectivity:

1. Verify that all network equipment is powered on, and eagle-server is on.

2. From a known good host computer, ping eagle-server. If the ping test fails, ping S1-Central, R2-Central, R1-ISP, and finally eagle-server. Take corrective action on devices that fail ping tests.

3. If an individual host computer cannot connect to eagle-server, check the cable connection between the host and S1-Central. Verify that the host computer has the correct IP address, shown in the logical addressing table above, and can ping R2-Central, Verify that the host computer has the correct Gateway IP address,, and can ping R1-ISP, Finally, verify that the host has the correct DNS address, and can ping

Task 1: Use the Telnet Protocol to Log in to a Cisco Switch.

Step 1: Access the Windows terminal.

Open a Windows terminal by clicking Start > Run. Type cmd, and click OK.

Step 2: Use the Windows Telnet client to access S1-Central.

S1-Central has been configured with 11 student accounts, ccna1 through ccna11. To provide access to each student, use the userid corresponding to your pod. For example, for host computers on pod 1, use userid ccna1. Unless directed otherwise by your instructor, the password is cisco.

1. From the Windows terminal, issue the Telnet command, telnet destination-ip-address:

C:/> telnet

An access prompt will be displayed, similar to the one shown in Figure 1.

                     This is Lab switch S1-Central.
                     Authorized access only.
User Access Verification
Username: ccna1
Password: cisco    (*hidden*)

Figure 1. Telnet Client

2. Enter the applicable user name. When the password prompt appears, type cisco <ENTER>.

The S1-Central# prompt should appear.

Task 2: Use the Cisco IOS show mac-address-table Command to Examine MAC Addresses and Port Associations.

Step 1: Examine the switch MAC address table.

1. Issue the command show mac-address-table ? <ENTER>. This will output all options for the command.

2. Use the following table to fill in the command options:


Option Description
address address keyword
aging-time aging-time keyword
count count keyword
dynamic dynamic entry type
interface interface keyword
multicast multicast info for selected wildcard
notification MAC notification parameters and history table
static static entry type
vlan VLAN keyword
| Output modifiers

Step 2: Examine dynamic MAC address table entries.

1. Issue the command show mac-address-table.
This command will display static (CPU) and dynamic, or learned, entries.

2. List the MAC addresses and corresponding switch ports:

MAC Address Switch Port
Answers will vary. Answers will vary.

Suppose there was a hub with five active hosts connected to switch port gi0/0. How many MAC addresses would be listed for switch port gi0/0?

Step 3: Examine MAC address table aging time.

1. Issue the command show mac-address-table aging-time.

This command will display the default time, in seconds, that MAC address entries are stored.

2. What is the default aging time for VLAN 1?

Task 3: Challenge

What would be the result if the MAC address table was flushed of dynamic entries?

The switch would broadcast frames out each port except the originating port until the switch learned all the MAC addresses connected to the switch.

Task 4: Reflection

Using the Telnet protocol, network engineers can access Cisco devices remotely across secure LANs. This has the benefit of permitting access to remote devices for troubleshooting and monitoring purposes.

A switch contains a MAC address table that lists the MAC address connected to each switch port. When a frame enters the switch, the switch performs a lookup of the frame destination MAC address. If there is a match in the MAC address table, the frame is routed out the corresponding port. Without a MAC address table, the switch would have to flood the frame out each port.

Task 5: Clean Up

Unless directed otherwise by the instructor, turn off power to the host computers. Remove anything that was brought into the lab, and leave the room ready for the next class.


Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x