1-5
To do…
Use the command…
Remarks
Configure the MAC learning limit on an
Ethernet port, Layer 2 aggregate
interface or port group, and configure
whether frames with unknown source
MAC addresses can be forwarded or
not when the MAC learning limit is
reached
mac-address
max-mac-count
{
count
|
disable-forwarding
}
Required
The default maximum number
of MAC addresses that can be
learned is not configured.
When the MAC learning limit is
reached, frames with unknown
source MAC addresses are
forwarded by default.
Displaying and Maintaining MAC Address Table Management
To do…
Use the command…
Remarks
Display MAC address table
information
display mac-address
[
mac
-
address
[
vlan
vlan-id
] | [ [
dynamic
|
static
] [
interface
interface-type interface-number
] |
blackhole
]
[
vlan
vlan-id
] [
count
] ]
Display the aging timer for
dynamic MAC address entries
display mac-address aging-time
Display MAC address statistics
display mac-address statistics
Available in any
view
MAC Address Table Management Configuration Example
Network requirements
A host with MAC address 000f-e235-dc71 and belonging to VLAN 1 is connected to
GigabitEthernet1/0/1 of the device. To prevent MAC address spoofing, add a static entry into the MAC
address table of the device for the host, and set the aging timer for dynamic MAC address entries to 500
seconds.
Configuration procedure
# Add a static MAC address entry.
<Sysname> system-view
[Sysname] mac-address static 000f-e235-dc71 interface gigabitethernet1/0/1 vlan 1
# Set the aging timer for dynamic MAC address entries to 500 seconds.
[Sysname] mac-address timer aging 500
# Display the MAC address entry for port GigabitEthernet1/0/1.
[Sysname] display mac-address interface gigabitethernet1/0/1
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
000f-e235-dc71 1 Config static GigabitEthernet1/0/1 NOAGED
--- 1 mac address(es) found -
Содержание S5810 Series
Страница 307: ...ii Configured Multicast Group Policy Fails to Take Effect 1 32...
Страница 648: ...1 8 Return to the upper directory Sysname cd Display the current working directory Sysname pwd flash...
Страница 812: ...1 7 Role Slave Sysname stack_3 DeviceD Device type S5810 50S MAC address 000f e200 1003...