The mld-snooping group-policy command sets the range of multicast groups that hosts can join.
The undo mld-snooping group-policy command cancels the configuration.
By default, hosts can join any multicast groups.
Parameter | Description | Value |
---|---|---|
acl-number | Specifies an ACL6 number. |
The value is an integer ranging from 2000 to 3999. |
acl6-name acl-name | Specifies the name of a named ACL6. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive). |
version number | Specifies an MLD version. |
The value can be 1 or 2. |
dot1q vid vid1 | Specifies a VLAN ID for a dot1q termination sub-interface. |
The value is an integer ranging from 1 to 4094. |
to vid2 | Specifies a VLAN ID for a dot1q termination sub-interface. vid2 must be greater than vid1. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
To limit the range of multicast groups that hosts can join, run the mld-snooping group-policy command.
Prerequisites
MLD snooping has been enabled globally.
Rules have been configured in the specified ACL6.Configuration Impact
After the mld-snooping group-policy command is run, hosts cannot join multicast groups out of the configured multicast group range. If the mld-snooping group-policy command is run more than once in the same view, the latest configuration overrides the previous one.
Precautions
If an MLD version is not set, the device will apply the configured group policy to all MLDv1 and MLDv2 messages. The ACL6 configured for the group policy must be a basic ACL6.
<HUAWEI> system-view [~HUAWEI] acl ipv6 2008 [*HUAWEI-acl6-basic-2008] rule permit source ff15::1 128 [*HUAWEI-acl6-basic-2008] quit [*HUAWEI] mld-snooping enable [*HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi vsi1 [*HUAWEI-vsi1] pwsignal ldp [*HUAWEI-vsi1-ldp] vsi-id 1 [*HUAWEI-vsi1-ldp] quit [*HUAWEI-vsi1] quit [*HUAWEI] interface GigabitEthernet 0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] vlan-type dot1q 10 [*HUAWEI-GigabitEthernet0/1/1.1] l2 binding vsi vsi1 [*HUAWEI-GigabitEthernet0/1/1.1] mld-snooping group-policy 2008 dot1q vid 10