Mac-Address Mac-Learning Disable - H3C S7500E Series Command Reference Manual

Lan switching
Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Description
Use the mac-address command to add or modify a MAC address entry.
Use the undo mac-address command to remove one or all MAC address entries.
Note that:
A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry,
but a dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry.
If you execute the undo mac-address command without specifying any parameters, this
command deletes all unicast MAC address entries and static multicast MAC address entries.
You can delete all the MAC address entries (including unicast MAC address entries and static
multicast MAC address entries) of a VLAN, or you can choose to delete its dynamic, static, or
blackhole MAC address entries only. You can single out some ports and delete the corresponding
unicast MAC address entries, but not the corresponding static multicast MAC address entries.
As your MAC address entries configuration cannot survive a reboot, save it after completing the
configuration. The dynamic entries however will be lost whether you save the configuration or not.
Related commands: display mac-address.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are
sent out of port GigabitEthernet2/0/1 which belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface GigabitEthernet2/0/1 vlan 2

mac-address mac-learning disable

Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
View
System view, Layer 2 Ethernet interface view, VLAN view, port group view, Layer 2 aggregate interface
view
Default Level
2: System level
Parameters
None
Description
Use the mac-address mac-learning disable command to disable MAC address learning globally, on
a Layer 2 interface or a group of Ethernet ports, or on a VLAN, depending on the view you entered.
Use the undo mac-address mac-learning disable command to enable MAC address learning
globally, on a Layer 2 interface or a group of Ethernet ports, or on a VLAN, depending on the view you
entered.
By default, MAC address learning is enabled.
Follow these guidelines when configuring MAC address learning:
7-8

Advertisement

Table of Contents
loading

Table of Contents