S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
13-2
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 13 Configuring the MAC Address Table
Configuring MAC Addresses
Configuring a Static MAC Address
You can configure MAC addresses for the switch. These addresses are static MAC addresses.
Note
You can also configure a static MAC address in interface configuration mode or VLAN configuration
mode.
To configure a static MAC address, perform this task:
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
To delete a static MAC address, perform this task:
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.
Note
You can also configure MAC aging time in interface configuration mode or VLAN configuration mode.
Command
Purpose
Step 1
switch#
configure terminal
Enters configuration mode.
Step 2
switch(config-)#
mac-address-table
static
mac_address
vlan
vlan-id
{
drop
|
interface
{
type
slot
/
port
} |
port-channel
number
} [
auto-learn
]
Specifies a static address to add to the MAC address
table.
If you enable the
auto-learn
option, the switch will
update the entry if the same MAC address is seen on a
different port.
Command
Purpose
switch(config-if)#
no mac-address-table
static
mac_address
vlan
vlan-id
Deletes the static entry from the MAC address table.
Summary of Contents for N5010P-N2K-BE
Page 50: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 102: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 240: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 312: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 400: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 418: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 436: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 658: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...