Cisco Systems N3KC3064TFAL3 Manual De Usuario

Descargar
Página de 164
You can also configure a static MAC address in interface configuration mode or VLAN configuration
mode.
Note
Procedure
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Specifies a static address to add to the MAC
address table.
switch(config-)# mac-address-table static
mac_address vlan vlan-id {drop interface
Step 2
{type slot/port} | port-channel number}
[auto-learn]
If you enable the auto-learn option, the switch
will update the entry if the same MAC address
is seen on a different port.
(Optional)
Deletes the static entry from the MAC address
table.
switch(config-)# no mac-address-table static
mac_address vlan vlan-id
Step 3
This example shows how to put a static entry in the MAC address table:
switch#
configure terminal
switch(config)#
mac-address-table static 12ab.47dd.ff89 vlan 3 interface ethernet 2/1
You can use the mac-address-table static command to assign a static MAC address to a virtual interface.
Configuring the Aging Time for the MAC Table
You can configure the amount of time that an entry (the packet source MAC address and port that packet
ingresses) remain in the MAC table. MAC aging time can be configured in either interface configuration mode
or in VLAN configuration mode.
If the Cisco Nexus 3000 switch is used as a Layer 2 or Layer 3 termination switch, Cisco recommends
that you set the mac-address-table aging-time to 1800 (higher than the default ARP aging time of 1500
seconds) on all VLANs.
Cisco Nexus 3000 switch does not support per-VLAN cam aging timers.
Note
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch# configure terminal
Step 1
Specifies the time before an entry ages out and is discarded
from the MAC address table.
switch(config)# mac-address-table
aging-time 
seconds [vlan vlan_id]
Step 2
   Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)
132
OL-26590-01  
Configuring the MAC Address Table
Configuring the Aging Time for the MAC Table