Published On: August 6ᵗʰ, 2019 02:05
Cisco Enterprise Network Compute System Switch Command Reference
Address Table Commands
- bridge multicast filtering
- bridge multicast unregistered
- bridge unicast unknown
- mac address-table aging-time
- mac address-table static
- switch clear mac address-table
- show switch mac addr-table
bridge multicast filtering
To enable the filtering of multicast addresses, use the bridge multicast filtering command in switch configuration mode. To disable multicast address filtering, use the no form of this command.
Syntax Description
Command Default
Multicast address filtering is disabled. All multicast addresses are flooded to all ports.
Command History
bridge multicast unregistered
To configure the forwarding or filtering of unregistered multicast addresses, use the bridge multicast unregistered command in interface switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
forwarding |
Forwards unregistered multicast packets. |
filtering |
Filters unregistered multicast packets. |
Command History
bridge unicast unknown
To enable egress filtering of unicast packets where the destination MAC address is unknown to the device, use the bridge unicast unknown command in interface switch configuration mode. To restore the default configuration, use the no form of this command.
Syntax Description
forwarding |
Forwards the unicast packets with unknown destination MAC address. |
filtering |
Filters the unicast packets with unknown destination MAC address. |
Command History
mac address-table aging-time
mac address-table static
To add a MAC-layer station source address to the MAC address table for a Gigabit Ethernet or port channel interface, use the mac address-table static command in switch configuration mode. To delete the MAC address, use the no form of this command.
mac address-table static mac-address vlan vlan-id interface { gigabitEthernet | port-channel} interface-id { permanent | delete-on-reset | delete-on-timeout}
no mac address-table static mac-address vlan vlan-id
Syntax Description
mac-address |
Specify a valid MAC address. |
vlan vlan-id |
Specify the VLAN ID. |
interface |
Specifies the interface type. |
gigabitEthernet |
Specifies Gigabit Ethernet as the interface type. |
port-channel |
Specifies port channel as the interface type. |
interface-id |
Specify an interface ID. |
permanent |
Specifies the permanent static MAC address. The keyword is applied by the default. |
delete-on-reset |
Specifies the delete-on-reset static MAC address. |
delete-on-timeout |
Specifies the delete-on-timeout static MAC address. |
Command Default
No static addresses are defined. The default mode for an added address is permanent.
Command History
Usage Guidelines
Use the command to add a static MAC address with a given time-to-live.
Each MAC address in the MAC address table is assigned two attributes: type and time-to-live.
The following value of time-to-live is supported:
-
permanent: MAC address is saved until it is removed manually.
-
delete-on-reset: MAC address is saved until the next reboot.
-
delete-on-timeout: MAC address may be removed by the aging timer.
The following types are supported:
-
static: a MAC address manually added by the command with the following keywords that specify its time-to-live: permanent, delete-on-reset, delete-on-timeout.
A static MAC address may be added in any port mode.
-
dynamic: a MAC address learned by the switch in a non-secure mode. The value of its time-to-live attribute is delete-on-timeout.
switch clear mac address-table
To remove learned or secure entries from the forwarding database (FDB) for a Gigabit Ethernet or port channel interface, use the switch clear mac address-table command in privileged EXEC mode.
Syntax Description
dynamic |
Deletes all dynamic (learned) addresses. |
gigabitEthernet |
Specifies gigabitEthernet as the interface type. |
port-channel |
Specifies port channel as the interface type. |
interface-id |
Specifies the interface ID. |
Command History
show switch mac addr-table
To display entries in the MAC address table, use the show switch mac addr-table command in privileged EXEC mode.
show switch mac addr-table vlan-id
Syntax Description
vlan-id |
Specifies the VLAN ID. |
Command Default
None
Command Modes
Privileged EXEC (#)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Examples
The following is a sample output of the show switch mac addr-table command:
nfvis# show switch mac addr-table 1 VLAN MAC ADDRESS PORT TYPE -------------------------------------------------------------- 1 00:22:bd:fb:af:41 gi1/6 dynamic 1 00:22:bd:fb:af:42 gi1/7 dynamic 1 00:22:bd:fb:af:80 gi1/5 dynamic 1 00:25:45:92:e7:aa gi1/1 dynamic 1 00:3a:7d:94:78:92 gi1/1 dynamic 1 00:a6:ca:d6:31:34 none self 1 0c:d9:96:91:06:06 gi1/4 dynamic