MAC Address Management

MAC Address Management

Determining MAC Addresses

CLI: Viewing the Port and VLAN MAC Addresses

The MAC address assigned to each switch port is used internally by such features as Flow Control and the Spanning Tree Protocol. Determining the MAC address assignments for individual ports can sometimes be useful when diagnosing switch operation. To display these addresses, use the walkmib command at the command prompt:

N o t e

This procedure displays the MAC addresses for all ports and existing VLANs

 

in the switch, regardless of which VLAN you select.

 

1.

If the switch is at the CLI Operator level, use the enable command to enter

 

 

 

the Manager level of the CLI.

 

2.

Type the following command to display the MAC address for each port on

 

 

the switch:

 

 

HP2512# walkmib ifPhysAddress

 

 

(The above command is not case-sensitive.)

The following figure is an example of the display:

ifPhysAddress.1 - 12: Fixed Ports 1 - 12

ifPhysAddress.13 - 14: Transceiver Ports

ifPhysAddress.29

Base MAC Address (MAC

 

Address for default VLAN;

 

VID = 1)

ifPhysAddress.50 & 61 MAC Addresses for non-default VLANs.

Figure B-2. Example of Port MAC Address Assignments

B-4