Configuring a Multicast Group Policy
Context
A multicast group policy determines which multicast groups the user hosts in a VLAN can join. The multicast group policy is applicable only to dynamic multicast groups. Before configuring the multicast group policy, create an access control list (ACL) and define rules. For details about ACL configuration, see "ACL Configuration" in the Configuration Guide - Security.
Procedure
- Run system-view
The system view is displayed.
- Use either of the following methods to configure a multicast group policy:
- Configure a multicast group policy in a VLAN.
Run the vlan vlan-id command to enter the VLAN view.
Run the mld-snooping group-policy acl6-number [ mld-version ] command to configure a multicast group policy in the VLAN to prevent the user hosts in the VLAN from joining a specified multicast group.
- Configure a multicast group policy on an interface.
Run the interface interface-type interface-number command to enter the interface view.
Run the mld-snooping group-policy acl6-number vlan vlan-id [ mld-version ] command to configure a multicast group policy on the interface to prevent the user hosts in the VLAN from joining a specified multicast group.
By default, the user hosts in a VLAN can join any multicast group. If the MLD version is not specified for a multicast group policy, the router applies the policy to all the received MLD packets regardless of their versions.
If you configure multicast group policies for the same VLAN in the interface view and VLAN view, the system first uses the policy configured in the interface view and then the policy configured in the VLAN view to determine the groups that user hosts can join.
When creating an ACL in a multicast group policy for a VLAN, specify the deny keyword in the rule command to prevent user hosts in the VLAN from joining all or specified multicast groups.
- Configure a multicast group policy in a VLAN.