Disabling local-MAC address learning

Configuration restrictions and guidelines

When MAC address learning is disabled for Ethernet service instances, you can only configure static local-MAC address entries by using the mac-address static command.

Configuration prerequisites

Before you enable MAC address learning for an Ethernet service instance, you must use the mac-learning enable command to enable MAC address learning for the associated VSI.

Configuration procedure

To disable MAC address learning for an Ethernet service instance:

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

N/A

3. Enter Ethernet service instance view.

service-instance instance-id

N/A

4. Disable MAC address learning for the Ethernet service instance.

learning mode disable

By default, MAC address learning is enabled for Ethernet service instances.