36
Task Command
Display MAC address table
information.
display mac-address
[
mac
-
address
[
vlan
vlan-id
] | [ [
dynamic
|
static
] [
interface
interface-type interface-number
] |
blackhole
|
multiport
] [
vlan
vlan-id
] [
count
] ]
Display the MAC address information
of the egress RB specified by its
nickname (see
).
display mac-address nickname
nickname
Display the aging timer for dynamic
MAC address entries.
display mac-address aging-time
Display the system or interface MAC
address learning state.
display mac-address mac-learning
[
interface
interface
-
type
interface
-
number
]
Display MAC address statistics.
display mac-address statistics
Display the MAC address move records
display mac-address mac-move
[
slot
slot-number
]
Figure 6
An example for the display mac-address nickname command
MAC address table configuration example
Network requirements
On a network:
•
Host A at MAC address 000f-e235-dc71 is connected to interface Ten-GigabitEthernet 1/0/1 of
Device and belongs to VLAN 1.
•
Host B at MAC address 000f-e235-abcd), which behaved suspiciously on the network, also
belongs to VLAN 1.
Configure the MAC address table as follows:
•
To prevent MAC address spoofing, add a static entry for Host A in the MAC address table of
Device.
•
To drop all frames destined for Host B, add a blackhole MAC address entry for the host.
•
Set the aging timer to 500 seconds for dynamic MAC address entries.