static-mac-address

Configures a static MAC address and assigns the address to the premium queue.
Syntax
static-mac-address ethernet-mac-address [ lag lag-id | ethernet unit/slot/port [ to unit/slot/port ] ... ] [ priority number ]
static-mac-address ethernet-mac-address [ lag lag-id | ethernet unit/slot/port [ to unit/slot/port ] ... ] [ priority number ]
static-mac-address ethernet-mac-address drop
no static-mac-address ethernet-mac-address drop
Command Default

By default, all MAC addresses are in the best-effort queue.

Parameters
ethernet-mac-address
Specifies the MAC address of the Ethernet interface.
lag lag-id
Specifies the LAG virtual interface.
ethernet unit/slot/port
Specifies the Ethernet interface.
to
Specifies the range of Ethernet ports.
priority number
Configures a priority for the Ethernet MAC address. The values are from 0 through 7.
Note: The priority keyword is not supported for ICX 8200 devices.
drop
Specifies that packets to and from the designated Ethernet MAC address are to be dropped.
Modes

VLAN configuration mode

Usage Guidelines

The no form of the command clears the static MAC address configuration.

Examples

The following example configures a static MAC address on a range of Ethernet interfaces with priority 7.

device# configure terminal
device(config)# vlan 2
device(config-vlan-2)# static-mac-address 0000.0063.67ff ethernet 1/1/1 to 1/1/6 priority 7

The following example configures a VLAN to drop packets with a source or destination MAC address.

device# configure terminal
device(config)# vlan 2
device(config-vlan-2)# static-mac-address 0000.0063.67FF drop
History
Release version Command history
08.0.61 This command was modified to add the LAG ID option.
10.0.00 This command was modifed to deprecate the priority keyword for ICX 8200 devices.