Configure MLD snooping Basic Functions
In the configuration tasks of MLD snooping, first enable the MLD snooping function so that the configurations of the other functions can take effect.
Configuration Condition
Before configuring the basic functions of MLD snooping, first complete the following tasks:
Enable MLD snooping Function
After the MLD snooping function is enabled, the MLD snooping function can run on the device.
Table 10-2 Enable the MLD snooping function
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enable the global MLD snooping function
|
ipv6 mld snooping
|
Mandatory
By default, do not enable the global MLD snooping function.
|
Enable the MLD snooping function of the specified VLAN
|
ipv6 mld snooping vlan vlan-id
|
Mandatory
By default, do not enable the MLD snooping function in the VLAN.
|
-
After the global MLD snooping function is enabled, the MLD snooping function of the specified VLAN can be enabled.
Configure MLD snooping Version
The configured MLD snooping version and MLD protocol packet processing rules are as follows:
When the configured MLD snooping version is V2, the device can process the MLD protocol packets of V1 and V2.
When the configured MLD snooping version is V1, the device can process the MLD protocol packets of V1, but does not process the V2 protocol packets, which flood in the VLAN.
Table 10-3 Configure MLD snooping version
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Configure the MLD snooping version
|
ipv6 mld snooping vlan vlan-id version version-number
|
Optional
By default, the version of MLD snooping is 2.
|
Enable MLD snooping MAC Forwarding
Usually, MLD snooping forwards the multicast packets in the VLAN according to the destination MAC address. After configuring MLD snooping MAC forwarding, MLD snooping forwards the multicast packets in the VLAN according to the multicast source MAC address and multicast destination MAC address.
Table 10-4 Enable MLD snooping MAC forwarding
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enable the L2 multicast MAC forwarding function in the specified VLAN
|
ipv6 mld snooping vlan vlan-id l2-forwarding
|
Mandatory
By default, enable MLD snooping L2 multicast IP forwarding function of VLAN.
|