When a host joins a multicast group, you can configure this function on the interface through which the multicast device is connected to the user network segment to limit the range of multicast groups that the host can join.
Configure a basic ACL.
Configure an advanced ACL.
Run the acl [ number ] acl-number [ vpn-instance vpn-instance-name ] command to create an advanced ACL and access its view.
Run the rule [ rule-id ] { permit | deny } protocol [ source { source-ip-address { 0 | source-wildcard } | address-set address-set-name | any } | destination { destination-ip-address { 0 | destination-wildcard } | address-set address-set-name | any } ] * command to configure rules for the advanced ACL.
If a basic ACL is used, run the rule command and set the source parameter to a multicast group address.
If an advanced ACL is used, run the rule command, set the source parameter to the source address that is allowed to send multicast data to multicast groups, and set the destination parameter to a multicast group address.
interface interface-type interface-number
igmp group-policy acl-number [ 1 | 2 | 3 ]
By default, the interface serves any multicast group.