API Guide

Default Not configured
Command Mode EXEC
Usage
Information
Use the all parameter to remove all dynamic entries from the address table.
Example
OS10# clear mac address-table dynamic all
Example (VLAN)
OS10# clear mac address-table dynamic vlan 20
Supported
Releases
10.2.0E or later
mac address-table aging-time
Configures the aging time for entries in the L2 address table.
Syntax
mac address-table aging-time seconds
Parameters seconds Enter the aging time for MAC table entries in seconds, from 0 to 1000000.
Default 1800 seconds
Command Mode CONFIGURATION
Usage
Information
Set the aging timer to zero (0) to disable MAC address aging for all dynamic entries. The aging time
counts from the last time that the device detected the MAC address.
Example
OS10(config)# mac address-table aging-time 3600
Supported
Releases
10.2.0E or later
mac address-table static
Configures a static entry for the Layer 2 MAC address table.
Syntax
mac address-table static mac-address vlan vlan-id interface {ethernet node/
slot/port[:subport] | port-channel number}
Parameters
mac-address Enter the MAC address to add to the table in nn:nn:nn:nn:nn:nn format.
vlan vlan-id Enter the VLAN to apply the static MAC address to, from 1 to 4093.
interface Enter the interface type:
ethernet node/slot/port[:subport] Enter the Ethernet information.
port-channel channel-number Enter a port-channel interface number, from 1 to 128.
Default Not configured
Command Mode CONFIGURATION
Usage
Information
The no version of this command resets the value to the default.
Example (VLAN)
OS10(config)# mac address-table static 34:17:eb:f2:ab:c6 vlan 1
interface ethernet 1/1/30
Example (Port-
Channel)
OS10(config)# mac address-table static 34:17:eb:02:8c:33 vlan 10
interface port-channel 1
464 Layer 2