Syntax
igmp
undo igmp
View
System view
Default Level
2: System level
Parameters
None
Description
Use the igmp command to enter public network IGMP view.
Use the undo igmp command to remove configurations performed in public network IGMP view.
IP multicast routing must be enabled in the corresponding instance before this command can take effect.
Related commands: igmp enable; multicast routing-enable in Multicast Routing and Forwarding Commands in the IP Multicast Volume.
Examples
# Enable IP multicast routing on the public network and enter public network IGMP view.
<Sysname> system-view
[Sysname] multicast routing-enable
[Sysname] igmp
[Sysname-igmp]
Syntax
igmp enable
undo igmp enable
View
Interface view
Default Level
2: System level
Parameters
None
Description
Use the igmp enable command to enable IGMP on the current interface.
Use the undo igmp enable command to disable IGMP on the current interface.
By default, IGMP is disabled on all interfaces.
Note that:
· IP multicast routing must be enabled in the corresponding instance before this command can take effect.
· IGMP must be enabled on an interface before any other IGMP feature configured on the interface can take effect.
Related commands: igmp; multicast routing-table in Multicast Routing and Forwarding Commands in the IP Multicast Volume.
Examples
# Enable IP multicast routing on the public network, and enable IGMP on GigabitEthernet 1/1.
<Sysname> system-view
[Sysname] multicast routing-enable
[Sysname] interface gigabitethernet1/1
[Sysname-GigabitEthernet1/1] igmp enable
Syntax
igmp version version-number
undo igmp version
View
Interface view
Default Level
2: System level
Parameters
version-number: IGMP version, in the range of 1 to 3.
Description
Use the igmp version command to configure the IGMP version on the current interface.
Use the undo igmp version command to restore the default IGMP version.
The default IGMP version is version 2.
Related commands: version.
Examples
# Set the IGMP version to IGMPv1 on GigabitEthernet 1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet1/1
[Sysname-GigabitEthernet1/1] igmp version 1
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 is used to match the multicast source address(es) 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 the igmp group-policy command 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 the undo igmp group-policy command 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 1/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 gigabitethernet1/1
[Sysname-GigabitEthernet1/1] igmp group-policy 2005