DGS-6604 m mac address-table static
CLI Reference Guide
417
mac address-table static
Use the mac address-table static command to add a static address to the MAC
address table. Use the no mac address-table static command to remove static
addresses from the table.
mac address-table static MAC-ADDR vlan VLAN-ID interface INTERFACE-ID [ , | - ]
no mac address-table static MAC-ADDR vlan VLAN-ID [interface INTERFACE-ID ] [ , | - ]
Default Not configured
Command Mode Global configuration
Usage Guideline A unicast MAC address entry can be specified with only one interface.
A multicast MAC address entry can be specified with multiple interfaces.
To delete a unicast MAC address entry, it is not necessary to specify the interface
ID. When deleting a multicast MAC address entry, if the interface ID is specified,
only that interface is removed. Otherwise, the entire multicast MAC entry will be
removed.
An error message will appear if the entry to be removed does not exist.
Example This example shows how to add static address C2:F3:22:0A:12:F4 to the MAC
address table. When a packet is received in VLAN 4, with this MAC address as
its destination, the packet is forwarded to the specified interface:
Verify the setting by entering the show mac address-table command.
Syntax Description
MAC-ADDR Destination MAC address (unicast or multicast) to add to the address table.
Packets with this destination address received in the specified VLAN are
forwarded to the specified interface. The acceptable formats are 00-01-80-40-
30-20, 00:01:80:40:30:20, 000180403020, and 0001.8040.3020.
vlan VLAN-ID Specifies the VLAN which will receive the packet with the specified MAC address
destination. The range is 1 to 4094.
interface
INTERFACE-ID
Specifies the interface to which received packets are forwarded to. Both physical
ports and port-channels are valid.
Switch(config)# mac address-table static C2:F3:22:0A:12:F4 vlan 4 interface
eth3.1