3.21.3 Static MAC Table Configuration

Use this command to assign a static MAC address to the specific port or ports.

Command Syntax:

mac address-table static <v_mac_addr> vlan <v_vlan_id> { [ interface <port_type> [ <v_port_type_list> ] ] }
Table 3-91. Command Description

Argument

Description

Parameter

<v_mac_addr>

48 bit MAC address: xx:xx:xx:xx:xx:xx

<v_vlan_id>

VLAN IDs range from 1 to 4095

<port_type>

GigabitEthernet

<v_port_type_list>

List of Port ID, for example, 1/1,3-4

Default

N.A

Mode

Global Configuration mode

Usage

Assigns a static MAC address to a port. To remove it, use the ‘no’ version of the command.

Example

Example 1:

Assign static MAC address 00:11:22:33:44:55 to port 1 on VLAN 1.

(config)#mac address-table static 00:11:22:33:44:55 vlan 1 interface Gi 1/1