The mac-learn-style command configures the MAC address learning mode of a VSI.
The undo mac-learn-style qualify command restores the default MAC address learning mode of a VSI.
By default, the MAC address learning mode is unqualify.
Parameter | Description | Value |
---|---|---|
qualify |
Specifies the MAC address learning mode as qualify. |
- |
unqualify |
Specifies the MAC address learning mode as unqualify. |
- |
outer-vlan |
The VSI uses the outer VLAN ID to learn MAC addresses. |
- |
inner-vlan |
The VSI uses the inner VLAN ID to learn MAC addresses. |
- |
Usage Scenario
A characteristic of the Ethernet service is that broadcast, multicast, and unknown unicast frames are flooded to all interfaces. This characteristic is called flooding. To achieve flooding within the service provider network, Ethernet-based VPLS floods all unknown unicast, broadcast, and multicast frames over the corresponding PWs to all PEs participating in the VPLS, as well as to all ACs. However, multicast frames do not necessarily have to be sent to all VPN members. To prevent unnecessary multicast frame forwarding, a PE must be able to associate a destination MAC address with a PW. Since it is impossible to require that PEs statically associate every possible destination MAC address with a PW, VPLS-capable PEs must have the capability to dynamically learn MAC addresses from both ACs and PWs. To configure the MAC address learning mode of a VSI, run the mac-learn-style command. In this command, either of the following parameters can be configured:
Prerequisites
A VSI has been created or the VSI view is displayed using the vsi command.
Precautions
As the MAC leaning style mode of a VSI does not support E2E negotiation, the E2E configuration must be consistent. If a configuration inconsistency occurs, the VLAN-based MAC address learning may be incorrect or packets may be discarded.
In an HVPLS scenario, it is recommended that MAC address learning in qualified mode be disabled on SPEs. To enable this function, ensure that the types of interfaces connected to the PEs at both ends are the same. The types of interfaces connected to the PEs can be dot1q VLAN tag termination sub-interfaces, QinQ mapping sub-interfaces, or QinQ stacking sub-interfaces. When the qualified mode is configured on an SPE, the type of VLAN tag used for MAC address learning must be specified: