text stringlengths 0 6.55k |
|---|
InBcastPkts |
18 |
OutBcastPkts |
437 |
Finding Entries in the MAC Address Table |
With a single switch and only four hosts connected to it, you can just read the details of the MAC address table and find the information you want to see. However, in real networks, with lots of interconnected hosts and switches, just reading the output to find one MAC address can be hard to do. You might have hundreds... |
Thankfully, Cisco IOS supplies several more options on the show mac address-table com-mand to make it easier to find individual entries. First, if you know the MAC address, you can search for it—just type in the MAC address at the end of the command, as shown in Example 5-4. All you have to do is include the address ke... |
Example 5-4 show mac address-table dynamic with the address Keyword |
SW1# show mac address-table dynamic address 0200.1111.1111 |
Mac Address Table |
------------------------------------------- |
Vlan Mac Address |
---- ----------- |
1 0200.1111.1111 |
Type Ports |
-------- ----- |
DYNAMIC Fa0/1 |
Total Mac Addresses for this criterion: 1 |
While this information is useful, often the engineer troubleshooting a problem does not know the MAC addresses of the devices connected to the network. Instead, the engineer has a topology diagram, knowing which switch ports connect to other switches and which con-nect to endpoint devices. |
Sometimes you might be troubleshooting while looking at a network topology diagram and want to look at all the MAC addresses learned off a particular port. IOS supplies that option with the show mac address-table dynamic interface command. Example 5-5 shows one example, for switch SW1’s F0/1 interface. |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 5: Analyzing Ethernet LAN Switching 121 |
Example 5-5 show mac address-table dynamic with the interface Keyword |
SW1# show mac address-table dynamic interface fastEthernet 0/1 |
Mac Address Table |
------------------------------------------- |
Vlan Mac Address |
---- ----------- |
1 0200.1111.1111 |
Type Ports |
-------- ----- |
DYNAMIC Fa0/1 |
Total Mac Addresses for this criterion: 1 |
Finally, you may also want to find the MAC address table entries for one VLAN. You guessed it—you can add the vlan parameter, followed by the VLAN number. Example 5-6 shows two such examples from the same switch SW1 from Figure 5-7—one for VLAN 1, where all four devices reside, and one for a nonexistent VLAN 2. |
Example 5-6 The show mac address-table vlan Command 5 |
SW1# show mac address-table dynamic vlan 1 |
Mac Address Table |
------------------------------------------- |
Vlan Mac Address |
---- ----------- |
1 0200.1111.1111 |
1 0200.2222.2222 |
1 0200.3333.3333 |
1 0200.4444.4444 |
Type Ports |
-------- ----- |
DYNAMIC Fa0/1 |
DYNAMIC Fa0/2 |
DYNAMIC Fa0/3 |
DYNAMIC Fa0/4 |
Total Mac Addresses for this criterion: 4 |
SW1# |
SW1# show mac address-table dynamic vlan 2 |
Mac Address Table |
------------------------------------------- |
Vlan Mac Address |
---- ----------- |
SW1# |
Type Ports |
-------- ----- |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.