Disabling MAC address learning on an interface

When global MAC address learning is enabled, you can disable MAC address learning on a single interface.

To disable MAC address learning on an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

  • Enter Layer 2 Ethernet interface view:interface interface-type interface-number

  • Enter Layer 2 aggregate interface view:interface bridge-aggregation interface-number

  • Enter S-channel interface view:interface s-channel interface-number.channel-id

  • Enter S-channel aggregate interface view:interface schannel-aggregation interface-number:channel-id

N/A

3. Disable MAC address learning on the interface.

undo mac-address mac-learning enable

By default, MAC address learning on the interface is enabled.