< Home

Configuring a Limit Rule for Learning MAC Addresses

You can configure a limit rule for learning dynamic MAC addresses.

Context

A limit rule for learning dynamic MAC addresses is applicable to insecure networks with fixed access users, such as cell access network or intranet that lacks security management.

When the number of access users reaches the upper limit, the MAC addresses of new users cannot be learned, and the packets of the new users are discarded.

Before configuring a limit rule for learning dynamic MAC addresses, if learned MAC addresses exist on the port, run the undo mac-address dynamic command in the system view to clear the MAC addresses. If this command is not run, the limit rule cannot function properly.

Procedure

  1. Access the system view.

    system-view

  2. Access the Ethernet interface view.

    interface interface-type interface-number

  3. Switch the Layer-3 Ethernet interface to Layer-2 mode.

    portswitch

  4. Configure a limit rule for learning MAC addresses.

    mac-limit { maximum max | action { discard | forward } } *

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic