Device Information: Investigating The CAM
Device Information: Investigating The CAM
Device Information: Investigating The CAM
You can
display the CAM table to verify the information that the switch has learned. The table will also tell you out of
which port the address was learned, along with the VLAN information.
Job AIDS
Note
If you shut down an interface on a real router or switch, the connected device will see it as "down/down." Due
to virtualization specifics, IOL behavior is slightly different. If you shut down an interface on a router or switch,
the connected device will see it as "up/up." In IOL, the status of an interface can only be "up/up" or
"administratively down/down.
Device Information
Device Interface on the
Device Device IP Neighbor
Interface Neighbor
Not Not
Switch1 Eth1/1 Not applicable
applicable applicable
Through this discovery, you will investigate the contents and properties of the CAM table of a switch. You can
display the CAM table to verify the information that the switch has learned. The table will also tell you out of
which port the address was learned, along with the VLAN information.
Step 1
Log on to PC1 and issue a broadcast ping to 10.1.1.255. Configure a repeat count of 10 and a datagram size
of 1500.
Answer
Pinging the broadcast address of 10.1.1.255 will ping all hosts in the 10.1.1.0/24 subnet. You are doing this
action in order for Switch1 to learn all the MAC addresses of connected hosts.
When issuing a broadcast ping, you will need to make sure that you are in privileged mode. IP broadcast
pinging is disallowed from user exec mode.
Note that in the IOL environment, PCs are simulated using routers.
PC1>
PC1> enable
PC1# ping
Protocol [ip]:
Target IP address: 10.1.1.255
Repeat count [5]: 10
Datagram size [100]: 1500
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10000, 1500-byte ICMP Echos to 10.1.1.255,
timeout is 2 seconds:
Step 2
So, if PC1 sends a packet to PC2, Switch1 will receive it on Ethernet 0/1. Switch1 will investigate the frame and
see that the destination MAC address is that of PC2. Switch1 will now perform a lookup and find the MAC
address of PC2 mapped to Ethernet 0/2. For the final step, Switch1 will forward the message.
Step 3
On Switch1, filter out MAC addresses that the switch learned through Ethernet 1/1.
Switches that connect to many devices can have very long CAM tables. In those cases, you can help yourself
with filtering.
Answer
You can see that Switch1 sees two MAC addresses through port Ethernet 1/1:
You can add the address keyword to specify a single MAC address. If you want to show just MAC addresses
that belong to devices in a certain VLAN, add the vlan keyword.
Step 4
How is it possible for Switch1 to see two MAC addresses through port Eth1/1?
Answer
Switch1 sees two MAC addresses through Ethernet 1/1 because this port connects to another switch.
Step 5
You can see that indeed Switch1 connects to another switch, Switch2:
Step 6
Investigate aging time using the show mac address-table aging-time command.
Answer
By default, the aging time is 300 seconds:
CAM table entries cannot be summarized the way that they are in IP routing. Having 1000 devices in the
network means 1000 addresses per CAM table per switch. When the CAM table is full, the switch acts as a hub
by forwarding all new frames, like broadcasts. The solution is to implement routing into the network to limit
MAC flooding.
Step 7
The default setting of the CAM aging time can be changed using the following command: mac address-table
aging-time seconds . Change the aging time on Switch1 to 600 seconds.
Answer
Step 8
Now, after you have changed the aging time, verify the change using the command show mac address-table
aging-time :
Answer