< Home

Configuring MAC Address Learning

Context

In VPLS, packets are forwarded according to MAC address forwarding entries. In most cases, MAC address learning can be performed automatically. Nevertheless, to prevent attacks and troubleshoot faults, you can adopt the VSI-based MAC address management mechanism provided by the switch.

A physical interface can belong to multiple VLANs at the same time. Multiple VLANIF interfaces can be bound with the same VSI. Therefore, when configuring MAC address static entries or blackhole entries for VSI bound to the VLANIF interfaces, you must specify the physical interface and VLANIF interface.

Do as follows on the PEs of the two ends of the PW:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run mac-address aging-time aging-time

    The aging time of MAC address entries for the VPLS is configured.

  3. Run mac-address static mac-address interface-type interface-number vlanif interface-number vsi vsi-name

    Or run mac-address static mac-address interface-type interface-number vsi vsi-name

    Static MAC address entries are configured.

  4. Run mac-address blackhole mac-address vsi vsi-name

    MAC address blackhole entries are configured.

  5. Run vsi vsi-name [ auto | static ]

    The VSI view is displayed.

  6. Run pwsignal ldp

    The PW signaling protocol is specified as LDP and the VSI-LDP view is displayed.

  7. Run vsi-id vsi-id

    The VSI ID is configured.

  8. Run quit

    Return to the VSI view.

  9. Run mac-learning { enable | disable }

    The MAC address learning is enabled or disabled.

  10. Run mac-limit { action { discard | forward } | alarm { disable | enable } | maximum max-num } *

    The MAC address learning limit is configured.

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