R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

540
Examples
# Allow GigabitEthernet 0/1 to join up to 128 multicast groups.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] igmp group-limit 128
igmp group-policy
Syntax
igmp group-policy acl-number [ version-number ]
undo igmp group-policy
View
Interface view
Default level
2: System level
Parameters
acl-number: Basic or advanced ACL number, in the range of 2000 to 3999. The source address or
address range specified in the advanced ACL rule matches the multicast source address or addresses
specified in IGMPv3 reports, rather than the source address in the IP packets. The system assumes that an
IGMPv1 or IGMPv2 report or an IGMPv3 IS_EX and TO_EX report that does not carry a multicast source
address carries a multicast source address of 0.0.0.0.
version-number: IGMP version, in the range of 1 to 3. If you do not specify an IGMP version, the
configured group filter will apply to IGMP reports of all versions.
Description
Use igmp group-policy to configure a multicast group filter on the current interface to control the multicast
groups that the hosts on the current interface can join.
Use undo igmp group-policy to remove the configured multicast group filter.
By default, no multicast group filter is configured. Namely, a host can join any valid multicast group.
Examples
# Configure an ACL rule so that hosts on GigabitEthernet 0/1 can join multicast group 225.1.1.1 only.
<Sysname> system-view
[Sysname] acl number 2005
[Sysname-acl-basic-2005] rule permit source 225.1.1.1 0
[Sysname-acl-basic-2005] quit
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] igmp group-policy 2005
igmp host-tracking
Syntax
igmp host-tracking
undo igmp host-tracking