Quick Reference Guide

PowerConnect B-Series TI24X Configuration Guide 179
53-1002269-02
Configuring VLAN-based static MAC entries
7
NOTE
The location of the static-mac-address command in the CLI depends on whether you configure
port-based VLANs on the device. If the device does not have more than one port-based VLAN (VLAN
1, which is the default VLAN that contains all the ports), the static-mac-address command is at the
global CONFIG level of the CLI. If the device has more than one port-based VLAN, then the
static-mac-address command is not available at the global CONFIG level. In this case, the command
is available at the configuration level for each port-based VLAN.
Configuring VLAN-based static MAC entries
You can configure a VLAN to drop packets that have a particular source or destination MAC
address.
You can configure a maximum of 2048 static MAC address drop entries on a device.
Use the CLI command show running-config to view the static MAC address drop entries currently
configured on the device.
Command syntax
To configure a VLAN to drop packets with a source or destination MAC address of 1145.5563.67FF,
enter the following commands.
PowerConnect(config)#vlan 2
PowerConnect(config-vlan-2)#static-mac-address 1145.5563.67FF drop
Syntax: [no] static-mac-address <mac-addr> drop
Use the no form of the command to remove the static MAC address drop configuration.
Clearing MAC address entries
You can remove learned MAC address entries from the MAC address table. The types of MAC
address can be removed are as follows:
All MAC address entries
All MAC address entries for a specified Ethernet port
All MAC address entries for a specified VLAN
All specified MAC address entry in all VLANs
For example, to remove entries for the MAC address 000d.cd80.00d0 in all VLANs, enter the
following command at the Privilege EXEC level of the CLI.
PowerConnect#clear mac-address 000d.cb80.00d0
Syntax: clear mac-address <mac-address> | ethernet <port-num> | vlan <vlan-num>
If you enter clear mac-address without any parameter, the software removes all MAC address
entries.
Use the <mac-address> parameter to remove a specific MAC address from all VLANs. Specify the
MAC address in the following format: HHHH.HHHH.HHHH.
Use the ethernet <port-num> parameter to remove all MAC addresses for a specific Ethernet port.