Which command will show the MAC addresses of stations connected to switch ports?
A. show mac-address
B. show arp
C. show table
D. show switchport
Answer : A
Explanation:
One of the three main functions of a switch is to learn which devices—that is, MAC addresses—are associated with which interfaces or ports.
This information is stored in a port address, or content addressable memory (CAM) table. You can view the CAM table by using the show mac-address-table command.
The command show mac-address is short form of show mac-address-table.
Topology
In this simple topology there were four hosts connected to Sw-Host switch. Each of its IP address and MAC address are shown below the Host icons. The switch Sw-Hosts has been assigned IP address of 192.168.1.254. After some transactions of data between all hosts. Each and every MAC address of hosts will be stored in CAM table. Below is the output of show mac-address command used in Sw-Hosts:
Also below is the output of show arp command. But you cant find the interface used to connect to the hosts.
Comments
Post a Comment