< Home

mld-snooping group-policy (interface view) (upgrade-compatible command)

Function

The mld-snooping group-policy command configures an IPv6 multicast group policy on an interface.

Format

mld-snooping group-policy acl6-number vlan vlan-id mld-version [ default-permit ]

Parameters

Parameter

Description

Value

acl6-number

Specifies the number of an IPv6 ACL that defines a range of multicast groups. A basic or advanced ACL can be used in an IPv6 multicast group policy.

The value is an integer that ranges from 2000 to 3999.

vlan vlan-id

Applies the IPv6 multicast group policy to a specified VLAN on an interface.

The value is an integer that ranges from 1 to 4094.

mld-version

Specifies an MLD version. The multicast group policy is applied only to the MLD messages of this version. If this parameter is not specified, the multicast group policy applies to all MLD messages.

The value is 1 or 2.
  • 1: MLDv1
  • 2: MLDv2

default-permit

Configures the multicast group policy to permit all groups by default. That is, if the referenced ACL has no rules, the multicast group policy allows hosts in the VLAN to join all groups.

-

Views

Ethernet interface view, GE interface view, XGE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

Example

# Prevent MLDv2 hosts in VLAN 10 on GE0/0/1 from joining IPv6 multicast group ff1c::3/32.

<HUAWEI> system-view
[HUAWEI] acl ipv6 number 2000
[HUAWEI-acl6-basic-2000] rule deny source ff1c::3/32
[HUAWEI-acl6-basic-2000] quit
[HUAWEI] mld-snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] mld-snooping enable
[HUAWEI-vlan10] quit
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] port link-type trunk
[HUAWEI-GigabitEthernet0/0/1] port trunk allow-pass vlan 10
[HUAWEI-GigabitEthernet0/0/1] mld-snooping group-policy 2000 vlan 10 2 default-permit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >