mac-address-table
Profile Config Commands
Configures the MAC address table. Use this command to create MAC address table entries by assigning a static address to the MAC address table.
Supported on the following devices:
- Access Points:
AP3000/X, AP5010, AP310i/e, AP410i/e, AP505i, AP510i, AP510e, AP560i, AP7602, AP7612, AP7622, AP7632,
AP7662, AP8163, AP8533.
- Service Platforms:
NX5500, NX7500, NX9500, NX9600
- Virtual Platforms: CX9000, VX9000
mac-address-table [aging-time|detect-gateways|static]
mac-address-table aging-time [0|<10-1000000>]
mac-address-table detect-gateways
mac-address-table static <MAC> vlan <1-4094> interface [<L2-INTERFACE>|ge <1-4>| port-channel <1-2>]
Parameters
mac-address-table aging-time [0|<10-1000000>]
mac-address-table aging-time
[0|<10-1000000>] |
Sets the duration a learned MAC address persists after the last update
- 0 – Entering the value ‘0‘ disables the aging time
- <10-1000000> – Sets the aging time from 10 -100000 seconds. The default is 300 seconds.
|
mac-address-table detect-gateways
mac-address-table detect-gateways |
Enables automatic detection of gateways. Detected gateways are remembered in the MAC address table. |
mac-address-table static <MAC> vlan <1-4094> interface [<L2-INTERFACE>|ge <1-4>|
port-channel <1-2>]
mac-address-table static
<MAC> |
Creates a static MAC address table entry
- <MAC> – Specifies the static address to add to the MAC address table. Specify the MAC address in the AA-BB-CC-DD-EE-FF, AA:BB:CC:DD:EE:FF, or AABB.CCDD.EEFF format.
|
vlan <1-4094> |
Assigns a static MAC address to a specified VLAN port
- <1-4094> – Specify the VLAN index from 1 - 4094.
|
interface [<L2-INTERFACE>| ge
<1-4>| port-channel <1-2>] |
Specifies the interface type. The options are: layer 2 Interface, GigabitEthernet interface, and a port channel interface
- <L2-INTERFACE> – Specify the layer 2 interface name.
- ge – Specifies a GigabitEthernet interface
- <1-4> – Specify the GigabitEthernet interface index from 1 - 4.
- port-channel – Specifies a port channel interface
- <1-2> – Specify the port channel interface index from 1 - 2.
|
Example
nx9500-6C8809(config-profile-TestNX5500)#mac-address-table static 00-40-96-B0-BA-2A vlan 1 interface ge 1
nx9500-6C8809(config-profile-TestNX5500)#show context
profile nx5500 TestNX5500
bridge vlan 1
.........................................................
logging facility local4
mac-address-table static 00-40-96-B0-BA-2A vlan 1 interface ge1
ip nat pool pool1
--More--
nx9500-6C8809(config-profile-TestNX5500)#
Related Commands
no |
Disables or reverts settings to their default |