Viewing the switch's MAC address tables

Accessing MAC address views and searches

Syntax

show mac-address
[vlan <vlan-id> ]
[<PORT-LIST> ]
[ mac-addr ]

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

Listing all learned MAC addresses on a VLAN, with their port numbers

This command lists the MAC addresses associated with the ports for a given VLAN. For example:

HP Switch# show mac-address vlan 100


[NOTE: ]

NOTE: The switches operate with a multiple forwarding database architecture.


Finding the port on which the switch learned a specific MAC address

For example, to find the port on which the switch learns a MAC address of 080009-21ae84:

Accessing MAC address views and searches (Menu)

Viewing and searching per-VLAN MAC-addresses

This feature lets you determine which switch port on a selected VLAN is being used to communicate with a specific device on the network.

From the Main Menu, select:

1. Status and Counters ...

5. VLAN Address Table

  1. The switch then prompts you to select a VLAN.

  2. 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.)

    Example of the address table

    Example of the address table

    To page through the listing, use Next page and Prev page.

Finding the port connection for a specific device on a VLAN

This feature uses a device's MAC address that you enter to identify the port used by that device.

  1. Proceeding from Example of the address table, press [S] (for Search), to display the following prompt:

    Enter MAC address: _
    
  2. 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.

    Example of menu indicating located MAC address

    Example of menu indicating located MAC address
  3. Press [P] (for Prev page) to return to the full address table listing.

Viewing and searching port-level MAC addresses

This feature displays and searches for MAC addresses on the specified port instead of for all ports on the switch.

  1. From the Main Menu, select:

    1. Status and Counters ...

    7. Port Address Table

    Listing MAC addresses for a specific port

    Listing MAC addresses for a specific port
  2. Use the Space bar to select the port you want to list or search for MAC addresses, then press [Enter] to list the MAC addresses detected on that port.

Determining whether a specific device is connected to the selected port

Proceeding from step 2, above:

  1. Press [S] (for Search), to display the following prompt:

    Enter MAC address: _
    
  2. 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.

  3. Press [P] (for Prev page) to return to the previous per-port listing.