The mld group-policy command sets a rule used by an interface to filter the Multicast Listener Discovery (MLD) groups that hosts can join.
The undo mld group-policy command restores the default configuration.
By default, no filtering rule is set. That is, hosts can join any multicast group.
Parameter | Description | Value |
---|---|---|
acl6-number | Specifies the number of a basic or advanced IPv6 ACL. |
The number of a basic IPv6 ACL is an integer that ranges from 2000 to 2999; the number of an advanced IPv6 ACL ranges from 3000 to 3999. |
acl6-name acl6-name | Specifies the name of a named IPv6 ACL. |
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). |
1 | Indicates that the MLD version is 1 (MLDv1). |
- |
2 | Indicates that the MLD version is 2 (MLDv2). |
- |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, PW-VE sub-interface view, VE sub-interface view, VLANIF interface view
Usage Scenario
To make hosts on the network segment where an interface resides join specified IPv6 multicast groups and receive multicast packets for these groups, run the mld group-policy command on this interface and define an IPv6 ACL rule as a filter to restrict the range of multicast groups. In this manner, MLD security is guaranteed.
Prerequisites
The multicast ipv6 routing-enable command must be run in the instance to which the interface belongs and the IPv6 ACL to be referenced must be configured.
Configuration Impact
If the mld group-policy command is run several times, the latest configuration overrides the previous one.
After the mld group-policy command is run on the interface:Precautions
The mld group-policy command needs to be used together with the acl ipv6 command. For a numbered ACL or named ACL:
<HUAWEI> system-view [~HUAWEI] acl ipv6 name myacl6 [*HUAWEI-acl6-advance-myacl6] rule permit ipv6 destination ff03::101 128 [*HUAWEI-acl6-advance-myacl6] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] ipv6 enable [*HUAWEI-GigabitEthernet0/1/0] mld group-policy acl6-name myacl6
<HUAWEI> system-view [~HUAWEI] acl ipv6 number 3000 [*HUAWEI-acl6-advance-3000] rule permit ipv6 destination ff03::101 128 [*HUAWEI-acl6-advance-3000] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mld group-policy 3000