Syntax
Listing all learned MAC addresses on the switch, with the port number on which each MAC address was learned
HP Switch# show mac-address
Listing all learned MAC addresses on one or more ports, with their corresponding port numbers
For example, to list the learned MAC address on ports A1 through A4 and port A6:
HP Switch# show mac-address a1-a4,a6
This feature lets you determine which switch port on a selected VLAN is being used to communicate with a specific device on the network.
-
Use the Space bar to select the VLAN you want, and then press [Enter].
The switch then displays the MAC address table for that VLAN (Example of the address table.)
This feature uses a device's MAC address that you enter to identify the port used by that device.
-
Proceeding from Example of the address table, press [S] (for Search), to display the following prompt:
Enter MAC address: _
-
Enter the MAC address you want to locate and press [Enter].
The address and port number are highlighted if found (Example of menu indicating located MAC address.) If the switch does not find the MAC address on the currently selected VLAN, it leaves the MAC address listing empty.
-
Press [P] (for Prev page) to return to the full address table listing.
This feature displays and searches for MAC addresses on the specified port instead of for all ports on the switch.
Proceeding from step 2, above:
-
Press [S] (for Search), to display the following prompt:
Enter MAC address: _
-
Enter the MAC address you want to locate and press [Enter].
The address is highlighted if found. If the switch does not find the address, it leaves the MAC address listing empty.
-
Press [P] (for Prev page) to return to the previous per-port listing.