Configuring Igmp
Configuring Igmp
Configuring Igmp
Configuring IGMP
1
Configuring IGMP
Restrictions for IGMP and IGMP Snooping
•
•
Note For IGMP Version 3, only IGMP Version 3 BISS (Basic IGMPv3 Snooping
Support) is supported.
• IGMP Version 3 uses new membership report messages that might not be correctly recognized by older
IGMP snooping devices.
• IGMPv3 can operate with both ISM and SSM. In ISM, both exclude and include mode reports are
applicable. In SSM, only include mode reports are accepted by the last-hop router. Exclude mode reports
are ignored.
• Use ACLs to designate a specified port only as a multicast host port and not as a multicast router port.
Multicast router control-packets received on this port are dropped.
Configuring IGMP
2
Configuring IGMP
Information About IGMP
The actual leave latency in the network is usually the configured leave time. However, the leave time
might vary around the configured time, depending on real-time CPU load conditions, network delays
and the amount of traffic sent through the interface.
• The IGMP throttling action restriction can be applied only to Layer 2 ports. You can use ip igmp
max-groups action replace interface configuration command on a logical EtherChannel interface but
cannot use it on ports that belong to an EtherChannel port group.
When the maximum group limitation is set to the default (no maximum), entering the ip igmp max-groups
action {deny | replace} command has no effect.
If you configure the throttling action and set the maximum group limitation after an interface has added
multicast entries to the forwarding table, the forwarding-table entries are either aged out or removed,
depending on the throttling action.
Hosts identify group memberships by sending IGMP messages to their local multicast device. Under IGMP,
devices listen to IGMP messages and periodically send out queries to discover which groups are active or
inactive on a particular subnet.
Configuring IGMP
3
Configuring IGMP
IGMP Versions
IGMP Versions
The device supports IGMP version 1, IGMP version 2, and IGMP version 3. These versions are interoperable
on the device. For example, if IGMP snooping is enabled and the querier's version is IGMPv2, and the device
receives an IGMPv3 report from a host, then the device can forward the IGMPv3 report to the multicast router.
An IGMPv3 device can receive messages from and forward messages to a device running the Source Specific
Multicast (SSM) feature.
IGMP Version 1
IGMP version 1 (IGMPv1) primarily uses a query-response model that enables the multicast router and
multilayer device to find which multicast groups are active (have one or more hosts interested in a multicast
group) on the local subnet. IGMPv1 has other processes that enable a host to join and leave a multicast group.
For more information, see RFC 1112.
IGMP Version 2
IGMPv2 extends IGMP functionality by providing such features as the IGMP leave process to reduce leave
latency, group-specific queries, and an explicit maximum query response time. IGMPv2 also adds the capability
for routers to elect the IGMP querier without depending on the multicast protocol to perform this task. For
more information, see RFC 2236.
IGMP Version 3
The device supports IGMP version 3.
An IGMPv3 device supports Basic IGMPv3 Snooping Support (BISS), which includes support for the snooping
features on IGMPv1 and IGMPv2 switches and for IGMPv3 membership report messages. BISS constrains
the flooding of multicast traffic when your network includes IGMPv3 hosts. It constrains traffic to approximately
the same set of ports as the IGMP snooping feature on IGMPv2 or IGMPv1 hosts.
An IGMPv3 device can receive messages from and forward messages to a device running the Source Specific
Multicast (SSM) feature.
Configuring IGMP
4
Configuring IGMP
IGMP Versions Differences
IGMPv1 Provides the basic query-response mechanism that allows the multicast
device to determine which multicast groups are active and other
processes that enable hosts to join and leave a multicast group. RFC
1112 defines the IGMPv1 host extensions for IP multicasting.
IGMPv2 Extends IGMP, allowing such capabilities as the IGMP leave process,
group-specific queries, and an explicit maximum response time field.
IGMPv2 also adds the capability for devices to elect the IGMP querier
without dependence on the multicast protocol to perform this task. RFC
2236 defines IGMPv2.
Note By default, enabling a PIM on an interface enables IGMPv2 on that device. IGMPv2 was designed to be as
backward compatible with IGMPv1 as possible. To accomplish this backward compatibility, RFC 2236 defined
special interoperability rules. If your network contains legacy IGMPv1 hosts, you should be familiar with
these operability rules. For more information about IGMPv1 and IGMPv2 interoperability, see RFC 2236,
Internet Group Management Protocol, Version 2 .
Configuring IGMP
5
Configuring IGMP
IGMP Versions Differences
• Sending PIM register and PIM Join and Prune messages toward the rendezvous point (RP) to inform it
about host group membership.
• Sending IGMP host-query messages.
• Sending host-query messages by default every 60 seconds in order to keep the IGMP overhead on hosts
and networks very low.
IGMPv2 also enhances IGMP by providing support for the following capabilities:
• Querier election process--Provides the capability for IGMPv2 devices to elect the IGMP querier without
having to rely on the multicast routing protocol to perform the process.
• Maximum Response Time field--A new field in query messages permits the IGMP querier to specify the
maximum query-response time. This field permits the tuning of the query-response process to control
response burstiness and to fine-tune leave latencies.
• Group-Specific Query messages--Permits the IGMP querier to perform the query operation on a specific
group instead of all groups.
• Leave-Group messages--Provides hosts with a method of notifying devices on the network that they wish
to leave the group.
Unlike IGMPv1, in which the DR and the IGMP querier are typically the same device, in IGMPv2 the two
functions are decoupled. The DR and the IGMP querier are selected based on different criteria and may be
different devices on the same subnet. The DR is the device with the highest IP address on the subnet, whereas
the IGMP querier is the device with the lowest IP address.
Query messages are used to elect the IGMP querier as follows:
1. When IGMPv2 devices start, they each multicast a general query message to the all-systems group address
of 224.0.0.1 with their interface address in the source IP address field of the message.
2. When an IGMPv2 device receives a general query message, the device compares the source IP address
in the message with its own interface address. The device with the lowest IP address on the subnet is
elected the IGMP querier.
3. All devices (excluding the querier) start the query timer, which is reset whenever a general query message
is received from the IGMP querier. If the query timer expires, it is assumed that the IGMP querier has
gone down, and the election process is performed again to elect a new IGMP querier.
Configuring IGMP
6
Configuring IGMP
IGMP Join and Leave Process
Note If some IGMPv3 hosts on a LAN wish to exclude a source and others wish to include the source, then the
device will send traffic for the source on the LAN (that is, inclusion trumps exclusion in this situation).
Configuring IGMP
7
Configuring IGMP
IGMP Snooping
IGMP Snooping
Layer 2 devices can use IGMP snooping to constrain the flooding of multicast traffic by dynamically configuring
Layer 2 interfaces so that multicast traffic is forwarded to only those interfaces associated with IP multicast
devices. As the name implies, IGMP snooping requires the LAN device to snoop on the IGMP transmissions
between the host and the router and to keep track of multicast groups and member ports. When the device
receives an IGMP report from a host for a particular multicast group, the device adds the host port number to
the forwarding table entry; when it receives an IGMP Leave Group message from a host, it removes the host
port from the table entry. It also periodically deletes entries if it does not receive IGMP membership reports
from the multicast clients.
Note For more information on IP multicast and IGMP, see RFC 1112 and RFC 2236.
The multicast router sends out periodic general queries to all VLANs. All hosts interested in this multicast
traffic send join requests and are added to the forwarding table entry. The device creates one entry per VLAN
in the IGMP snooping IP multicast forwarding table for each group from which it receives an IGMP join
request.
The device supports IP multicast group-based bridging, instead of MAC-addressed based groups. With
multicast MAC address-based groups, if an IP address being configured translates (aliases) to a previously
configured MAC address or to any reserved multicast MAC addresses (in the range 224.0.0.xxx), the command
fails. Because the device uses IP multicast groups, there are no address aliasing issues.
The IP multicast groups learned through IGMP snooping are dynamic. However, you can statically configure
multicast groups by using the ip igmp snooping vlan vlan-id static ip_address interface interface-id global
configuration command. If you specify group membership for a multicast group address statically, your setting
supersedes any automatic manipulation by IGMP snooping. Multicast group membership lists can consist of
both user-defined and IGMP snooping-learned settings.
You can configure an IGMP snooping querier to support IGMP snooping in subnets without multicast interfaces
because the multicast traffic does not need to be routed.
If a port spanning-tree, a port group, or a VLAN ID change occurs, the IGMP snooping-learned multicast
groups from this port on the VLAN are deleted.
These sections describe IGMP snooping characteristics:
When a host connected to the device wants to join an IP multicast group and it is an IGMP version 2 client,
it sends an unsolicited IGMP join message, specifying the IP multicast group to join. Alternatively, when the
device receives a general query from the router, it forwards the query to all ports in the VLAN. IGMP version
1 or version 2 hosts wanting to join the multicast group respond by sending a join message to the device. The
device CPU creates a multicast forwarding-table entry for the group if it is not already present. The CPU also
adds the interface where the join message was received to the forwarding-table entry. The host associated
with that interface receives multicast traffic for that multicast group.
Configuring IGMP
8
Configuring IGMP
Joining a Multicast Group
Router A sends a general query to the device, which forwards the query to ports 2 through 5, all of which are
members of the same VLAN. Host 1 wants to join multicast group 224.1.2.3 and multicasts an IGMP
membership report (IGMP join message) to the group. The device CPU uses the information in the IGMP
report to set up a forwarding-table entry that includes the port numbers connected to Host 1 and to the router.
224.1.2.3 IGMP 1, 2
The device hardware can distinguish IGMP information packets from other packets for the multicast group.
The information in the table tells the switching engine to send frames addressed to the 224.1.2.3 multicast IP
address that are not IGMP packets to the router and to the host that has joined the group.
Figure 2: Second Host Joining a Multicast Group
If another host (for example, Host 4) sends an unsolicited IGMP join message for the same group, the CPU
receives that message and adds the port number of Host 4 to the forwarding table. Because the forwarding
table directs IGMP messages only to the CPU, the message is not flooded to other ports on the device. Any
known multicast traffic is forwarded to the group and not to the CPU.
Configuring IGMP
9
Configuring IGMP
Leaving a Multicast Group
224.1.2.3 IGMP 1, 2, 5
Immediate Leave
The device uses IGMP snooping Immediate Leave to remove from the forwarding table an interface that sends
a leave message without the device sending group-specific queries to the interface. The VLAN interface is
pruned from the multicast tree for the multicast group specified in the original leave message. Immediate
Leave ensures optimal bandwidth management for all hosts on a switched network, even when multiple
multicast groups are simultaneously in use.
Immediate Leave is only supported on IGMP version 2 hosts. IGMP version 2 is the default version for the
device.
Note You should use the Immediate Leave feature only on VLANs where a single host is connected to each port.
If Immediate Leave is enabled on VLANs where more than one host is connected to a port, some hosts may
be dropped inadvertently.
Note IGMP report suppression is supported only when the multicast query has IGMPv1 and IGMPv2 reports. This
feature is not supported when the query includes IGMPv3 reports.
Configuring IGMP
10
Configuring IGMP
IGMP Snooping and Device Stacks
The device uses IGMP report suppression to forward only one IGMP report per multicast router query to
multicast devices. When IGMP report suppression is enabled (the default), the device sends the first IGMP
report from all hosts for a group to all the multicast routers. The device does not send the remaining IGMP
reports for the group to the multicast routers. This feature prevents duplicate reports from being sent to the
multicast devices.
If the multicast router query includes requests only for IGMPv1 and IGMPv2 reports, the device forwards
only the first IGMPv1 or IGMPv2 report from all hosts for a group to all the multicast routers.
If the multicast router query also includes requests for IGMPv3 reports, the device forwards all IGMPv1,
IGMPv2, and IGMPv3 reports for a group to the multicast devices.
If you disable IGMP report suppression, all IGMP reports are forwarded to the multicast routers.
Note IGMPv3 join and leave messages are not supported on devices running IGMP filtering.
Configuring IGMP
11
Configuring IGMP
Default IGMP Configuration
Configuring IGMP
12
Configuring IGMP
Default IGMP Filtering and Throttling Configuration
Caution Performing this procedure might impact the CPU performance because the CPU will receive all data traffic
for the group address.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp join-group group-address
5. end
6. show ip igmp interface [interface-id]
7. copy running-config startup-config
Configuring IGMP
13
Configuring IGMP
Configuring the Device as a Member of a Group
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the Layer 3 interface on which you want to enable
multicast routing, and enters interface configuration mode.
Example:
The specified interface must be one of the following:
Device(config)# interface
gigabitethernet 1/0/1 • A routed port—A physical port that has been
configured as a Layer 3 port by entering the no
switchport interface configuration command.
• An SVI—A VLAN interface created by using the
interface vlan vlan-id global configuration command.
Step 4 ip igmp join-group group-address Configures the device to join a multicast group.
Example: By default, no group memberships are defined.
For group-address, specify the multicast IP address in dotted
Device(config-if)# ip igmp
join-group 225.2.2.2 decimal notation.
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
14
Configuring IGMP
Controlling Access to IP Multicast Group
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp profile
4. permit
5. exit
6. interface interface-id
7. ip igmp filter filter_number
8. end
9. show ip igmp interface [interface-id]
10. copy running-config startup-config
DETAILED STEPS
Device> enable
Configuring IGMP
15
Configuring IGMP
Controlling Access to IP Multicast Group
Device(config-igmp-profile)# exit
Step 6 interface interface-id Specifies the interface to be configured, and enters interface
configuration mode.
Example:
Device(config)# interface
gigabitethernet 1/0/1
Step 7 ip igmp filter filter_number Specifies the IGMP filter profile number.
Example: For additional information about applying IGMP filter
profiles, see Applying IGMP Profiles , on page 26.
Device(config-if)# ip igmp filter 10
Device(config)# end
Step 10 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
16
Configuring IGMP
Changing the IGMP Version
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp version {1 | 2 | 3 }
5. end
6. show ip igmp interface [interface-id]
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the interface to be configured, and enters the
interface configuration mode.
Example:
Configuring IGMP
17
Configuring IGMP
Modifying the IGMP Host-Query Message Interval
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
Configuring IGMP
18
Configuring IGMP
Modifying the IGMP Host-Query Message Interval
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the Layer 3 interface on which you want to enable
multicast routing, and enters interface configuration mode.
Example:
The specified interface must be one of the following:
Device(config)# interface
gigabitethernet 1/0/1 • A routed port—A physical port that has been
configured as a Layer 3 port by entering the no
switchport interface configuration command.
• An SVI—A VLAN interface created by using the
interface vlan vlan-id global configuration command.
Step 4 ip igmp query-interval seconds Configures the frequency at which the designated router
sends IGMP host-query messages.
Example:
By default, the designated router sends IGMP host-query
Device(config-if)# ip igmp messages every 60 seconds to keep the IGMP overhead
query-interval 75 very low on hosts and networks.
The range is 1 to 65535.
Device(config)# end
Configuring IGMP
19
Configuring IGMP
Changing the IGMP Query Timeout for IGMPv2
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp querier-timeout seconds
5. end
6. show ip igmp interface [interface-id]
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the Layer 3 interface on which you want to enable
multicast routing, and enters interface configuration mode.
Example:
The specified interface must be one of the following:
Device(config)# interface
Configuring IGMP
20
Configuring IGMP
Changing the Maximum Query Response Time for IGMPv2
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp query-max-response-time seconds
5. end
Configuring IGMP
21
Configuring IGMP
Changing the Maximum Query Response Time for IGMPv2
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the Layer 3 interface on which you want to enable
multicast routing, and enters interface configuration mode.
Example:
The specified interface must be one of the following:
Device(config)# interface
gigabitethernet 1/0/1 • A routed port—A physical port that has been
configured as a Layer 3 port by entering the no
switchport interface configuration command.
• An SVI—A VLAN interface created by using the
interface vlan vlan-id global configuration command.
Step 4 ip igmp query-max-response-time seconds Changes the maximum query response time advertised in
IGMP queries.
Example:
The default is 10 seconds. The range is 1 to 25.
Device(config-if)# ip igmp
query-max-response-time 15
Device(config)# end
Configuring IGMP
22
Configuring IGMP
Configuring the Device as a Statically Connected Member
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp static-group group-address
5. end
6. show ip igmp interface [interface-id]
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Configuring IGMP
23
Configuring IGMP
Configuring IGMP Profiles
Step 4 ip igmp static-group group-address Configures the device as a statically connected member of
a group.
Example:
By default, this feature is disabled.
Device(config-if)# ip igmp static-group
239.100.100.101
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
Configuring IGMP
24
Configuring IGMP
Configuring IGMP Profiles
DETAILED STEPS
Device> enable
Step 3 ip igmp profile profile number Assigns a number to the profile you are configuring, and
enters IGMP profile configuration mode. The profile
Example:
number range is 1 to 4294967295. When you are in IGMP
profile configuration mode, you can create the profile by
Device(config)# ip igmp profile 3
using these commands:
• deny—Specifies that matching addresses are denied;
this is the default.
• exit—Exits from igmp-profile configuration mode.
• no—Negates a command or returns to its defaults.
• permit—Specifies that matching addresses are
permitted.
• range—Specifies a range of IP addresses for the
profile. You can enter a single IP address or a range
with a start and an end address.
Configuring IGMP
25
Configuring IGMP
Applying IGMP Profiles
Step 5 range ip multicast address Enters the IP multicast address or range of IP multicast
addresses to which access is being controlled. If entering a
Example:
range, enter the low IP multicast address, a space, and the
high IP multicast address.
Device(config-igmp-profile)# range 229.9.9.0
You can use the range command multiple times to enter
multiple addresses or ranges of addresses.
Note To delete an IP multicast address or range of IP
multicast addresses, use the no range ip
multicast address IGMP profile configuration
command.
Device(config)# end
Step 7 show ip igmp profile profile number Verifies the profile configuration.
Example:
Step 9 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
26
Configuring IGMP
Applying IGMP Profiles
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp filter profile number
5. end
6. show running-config
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the physical interface, and enters interface
configuration mode. The interface must be a Layer 2 port
Example:
that does not belong to an EtherChannel port group.
Device(config)# interface gigabitethernet1/0/1
Step 4 ip igmp filter profile number Applies the specified IGMP profile to the interface. The
range is 1 to 4294967295.
Example:
Note To remove a profile from an interface, use the
Device(config-if)# ip igmp filter 321 no ip igmp filter profile number interface
configuration command.
Device(config-if)# end
Configuring IGMP
27
Configuring IGMP
Setting the Maximum Number of IGMP Groups
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp max-groups number
5. end
6. show running-config interface interface-id
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the interface to be configured, and enters interface
configuration mode. The interface can be a Layer 2 port
Example:
Configuring IGMP
28
Configuring IGMP
Configuring the IGMP Throttling Action
Step 4 ip igmp max-groups number Sets the maximum number of IGMP groups that the
interface can join. The range is 0 to 4294967294. The
Example:
default is to have no maximum set.
Device(config-if)# ip igmp max-groups 20
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface interface-id
4. ip igmp max-groups action {deny | replace}
5. end
6. show running-config interface interface-id
7. copy running-config startup-config
Configuring IGMP
29
Configuring IGMP
Configuring the IGMP Throttling Action
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the physical interface to be configured, and enters
interface configuration mode. The interface can be a Layer
Example:
2 port that does not belong to an EtherChannel group or an
EtherChannel interface. The interface cannot be a trunk
Device(config)# interface gigabitethernet1/0/1
port.
Step 4 ip igmp max-groups action {deny | replace} When an interface receives an IGMP report and the
maximum number of entries is in the forwarding table,
Example:
specifies the action that the interface takes:
Device(config-if)# ip igmp max-groups action • deny—Drops the report. If you configure this throttling
replace action, the entries that were previously in the
forwarding table are not removed but are aged out.
After these entries are aged out and the maximum
number of entries is in the forwarding table, the device
drops the next IGMP report received on the interface.
• replace—Replaces the existing group with the new
group for which the IGMP report was received. If you
configure this throttling action, the entries that were
previously in the forwarding table are removed. When
the maximum number of entries is in the forwarding
table, the device replaces a randomly selected entry
with the received IGMP report.
Configuring IGMP
30
Configuring IGMP
Configuring the Device to Forward Multicast Traffic in the Absence of Directly Connected IGMP Hosts
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. Do one of the following:
• ip igmp join-group group-address
• ip igmp static-group {* | group-address [source source-address]}
5. end
6. show ip igmp interface [interface-type interface-number]
DETAILED STEPS
Device> enable
Configuring IGMP
31
Configuring IGMP
Controlling Access to an SSM Network Using IGMP Extended Access Lists
Step 4 Do one of the following: The first sample shows how to configure an interface on
the device to join the specified group.
• ip igmp join-group group-address
• ip igmp static-group {* | group-address [source With this method, the device accepts the multicast packets
source-address]} in addition to forwarding them. Accepting the multicast
packets prevents the device from fast switching.
Example:
The second example shows how to configure static group
device(config-if)# ip igmp join-group 225.2.2.2 membership entries on an interface. With this method, the
device does not accept the packets itself, but only forwards
Example: them. Hence, this method allows fast switching. The
outgoing interface appears in the IGMP cache, but the
device(config-if)# ip igmp static-group 225.2.2.2
device itself is not a member, as evidenced by lack of an
“L” (local) flag in the multicast route entry
device#(config-if)# end
Step 6 show ip igmp interface [interface-type interface-number] (Optional) Displays multicast-related information about an
interface.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip multicast-routing [distributed]
4. ip pim ssm {default | range access-list}
5. ip access-list extended access-list -name
6. deny igmp source source-wildcard destination destination-wildcard [igmp-type] [precedence
precedence] [tos tos] [log] [time-range time-range-name] [fragments]
7. permit igmp source source-wildcard destination destination-wildcard [igmp-type] [precedence
precedence] [tos tos] [log] [time-range time-range-name] [fragments]
8. exit
9. interface type number
Configuring IGMP
32
Configuring IGMP
Controlling Access to an SSM Network Using IGMP Extended Access Lists
DETAILED STEPS
Device> enable
Step 5 ip access-list extended access-list -name Specifies an extended named IP access list.
Example:
Step 6 deny igmp source source-wildcard destination (Optional) Filters the specified source address or group
destination-wildcard [igmp-type] [precedence precedence] address from the IGMP report, thereby restricting hosts
[tos tos] [log] [time-range time-range-name] [fragments] on a subnet from membership to the (S, G) channel.
Example: • Repeat this step to restrict hosts on a subnet
membership to other (S, G) channels. (These sources
Device(config-ext-nacl)# deny igmp host 10.1.2.3 should be more specific than a subsequent permit
any statement because any sources or groups not
specifically permitted are denied.)
• Remember that the access list ends in an implicit deny
statement.
Configuring IGMP
33
Configuring IGMP
Controlling Access to an SSM Network Using IGMP Extended Access Lists
Step 7 permit igmp source source-wildcard destination Allows a source address or group address in an IGMP
destination-wildcard [igmp-type] [precedence precedence] report to pass the IP access list.
[tos tos] [log] [time-range time-range-name] [fragments]
• You must have at least one permit statement in an
Example: access list.
Step 8 exit Exits the current configuration session and returns to global
configuration mode.
Example:
Device(config-ext-nacl)# exit
Step 9 interface type number Selects an interface that is connected to hosts on which
IGMPv3 can be enabled.
Example:
Step 10 ip igmp access-group access-list Applies the specified access list to IGMP reports.
Example:
Configuring IGMP
34
Configuring IGMP
How to Configure IGMP Snooping
Device(config-if)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping
4. bridge-domain bridge-id
5. end
DETAILED STEPS
Step 3 ip igmp snooping Globally enables IGMP snooping after it has been disabled.
Example:
Device(config)# ip igmp snooping
Configuring IGMP
35
Configuring IGMP
Setting the Snooping Method
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping vlan vlan-id
4. end
5. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping vlan vlan-id Enables IGMP snooping on the VLAN interface. The VLAN
ID range is 1 to 1001 and 1006 to 4094.
Example:
IGMP snooping must be globally enabled before you can
Device(config)# ip igmp snooping vlan 7 enable VLAN snooping.
Note To disable IGMP snooping on a VLAN interface,
use the no ip igmp snooping vlan vlan-id global
configuration command for the specified VLAN
number.
Device(config)# end
Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
36
Configuring IGMP
Setting the Snooping Method
Beginning in privileged EXEC mode, follow these steps to alter the method in which a VLAN interface
accesses a multicast router:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping vlan vlan-id mrouter interface {GigabitEthernet | Port-Channel |
TenGigabitEthernet}
4. end
5. show ip igmp snooping
6. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping vlan vlan-id mrouter interface Enables IGMP snooping on a VLAN. The VLAN ID range
{GigabitEthernet | Port-Channel | TenGigabitEthernet} is 1 to 1001 and 1006 to 4094.
Example:
Device(config)# end
Configuring IGMP
37
Configuring IGMP
Configuring a Multicast Router Port
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Note Static connections to multicast routers are supported only on device ports.
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping vlan vlan-id mrouter interface interface-id
4. end
5. show ip igmp snooping mrouter [vlan vlan-id]
6. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping vlan vlan-id mrouter interface Specifies the multicast router VLAN ID and the interface
interface-id to the multicast router.
Example: • The VLAN ID range is 1 to 1001 and 1006 to 4094.
Configuring IGMP
38
Configuring IGMP
Configuring a Host Statically to Join a Group
Device(config)# end
Step 5 show ip igmp snooping mrouter [vlan vlan-id] Verifies that IGMP snooping is enabled on the VLAN
interface.
Example:
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping vlan vlan-id static ip_address interface interface-id
4. end
5. show ip igmp snooping groups
6. copy running-config startup-config
DETAILED STEPS
Configuring IGMP
39
Configuring IGMP
Enabling IGMP Immediate Leave
Device> enable
Step 3 ip igmp snooping vlan vlan-id static ip_address interface Statically configures a Layer 2 port as a member of a
interface-id multicast group:
Example: • vlan-id is the multicast group VLAN ID. The range is
1 to 1001 and 1006 to 4094.
Device(config)# ip igmp snooping vlan 105 static
230.0.0.1 interface gigabitethernet1/0/1 • ip-address is the group IP address.
• interface-id is the member port. It can be a physical
interface or a port channel (1 to 128).
Device(config)# end
Step 5 show ip igmp snooping groups Verifies the member port and the IP address.
Example:
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
40
Configuring IGMP
Enabling IGMP Immediate Leave
Note Immediate Leave is supported only on IGMP Version 2 hosts. IGMP Version 2 is the default version for the
device.
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping vlan vlan-id immediate-leave
4. end
5. show ip igmp snooping vlan vlan-id
6. end
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping vlan vlan-id immediate-leave Enables IGMP Immediate Leave on the VLAN interface.
Example: Note To disable IGMP Immediate Leave on a VLAN,
use the no ip igmp snooping vlan vlan-id
Device(config)# ip igmp snooping vlan 21 immediate-leave global configuration command.
immediate-leave
Device(config)# end
Step 5 show ip igmp snooping vlan vlan-id Verifies that Immediate Leave is enabled on the VLAN
interface.
Example:
Configuring IGMP
41
Configuring IGMP
Configuring the IGMP Leave Timer
Device(config)# end
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping last-member-query-interval time
4. ip igmp snooping vlan vlan-id last-member-query-interval time
5. end
6. show ip igmp snooping
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping last-member-query-interval time Configures the IGMP leave timer globally. The range is
100 to 32767 milliseconds.
Example:
The default leave time is 1000 milliseconds.
Device(config)# ip igmp snooping
last-member-query-interval 1000
Note To globally reset the IGMP leave timer to the
default setting, use the no ip igmp snooping
last-member-query-interval global
configuration command.
Step 4 ip igmp snooping vlan vlan-id (Optional) Configures the IGMP leave time on the VLAN
last-member-query-interval time interface. The range is 100 to 32767 milliseconds.
Configuring IGMP
42
Configuring IGMP
Configuring the IGMP Robustness-Variable
Device(config)# end
Step 6 show ip igmp snooping (Optional) Displays the configured IGMP leave time.
Example:
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping robustness-variable count
4. ip igmp snooping vlan vlan-id robustness-variable count
5. end
6. show ip igmp snooping
7. copy running-config startup-config
DETAILED STEPS
Configuring IGMP
43
Configuring IGMP
Configuring the IGMP Last Member Query Count
Device> enable
Step 3 ip igmp snooping robustness-variable count Configures the IGMP robustness variable. The range is 1
to 3 times.
Example:
The recommended value for the robustness variable is 2.
Device(config)# ip igmp snooping Use this command to change the value of the robustness
robustness-variable 3 variable for IGMP snooping from the default (2) to a
specified value.
Step 4 ip igmp snooping vlan vlan-id robustness-variable count (Optional) Configures the IGMP robustness variable on the
VLAN interface. The range is 1 to 3 times. The
Example:
recommended value for the robustness variable is 2.
Device(config)#ip igmp snooping vlan 100 Note Configuring the robustness variable count on a
robustness-variable 3 VLAN overrides the globally configured value.
Device(config)# end
Step 6 show ip igmp snooping (Optional) Displays the configured IGMP robustness
variable count.
Example:
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
44
Configuring IGMP
Configuring the IGMP Last Member Query Count
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping last-member-query-count count
4. ip igmp snooping vlan vlan-id last-member-query-count count
5. end
6. show ip igmp snooping
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping last-member-query-count count Configures the IGMP last member query count. The range
is 1 to 7 messages. The default is 2 messages.
Example:
Step 4 ip igmp snooping vlan vlan-id last-member-query-count (Optional) Configures the IGMP last member query count
count on the VLAN interface. The range is 1 to 7 messages.
Example: Note Configuring the last member query count on a
VLAN overrides the globally configured timer.
Device(config)#ip igmp snooping vlan 100
last-member-query-count 3
Device(config)# end
Step 6 show ip igmp snooping (Optional) Displays the configured IGMP last member
query count.
Example:
Configuring IGMP
45
Configuring IGMP
Configuring TCN-Related Commands
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping tcn flood query count count
4. end
5. show ip igmp snooping
6. copy running-config startup-config
DETAILED STEPS
Device> enable
Configuring IGMP
46
Configuring IGMP
Recovering from Flood Mode
Device(config)# end
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping tcn query solicit
4. end
5. show ip igmp snooping
6. copy running-config startup-config
Configuring IGMP
47
Configuring IGMP
Disabling Multicast Flooding During a TCN Event
DETAILED STEPS
Device> enable
Step 3 ip igmp snooping tcn query solicit Sends an IGMP leave message (global leave) to speed the
process of recovering from the flood mode caused during
Example:
a TCN event. By default, query solicitation is disabled.
Device(config)# ip igmp snooping tcn query solicit Note To return to the default query solicitation, use
the no ip igmp snooping tcn query solicit
global configuration command.
Device(config)# end
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
SUMMARY STEPS
1. enable
2. configure terminal
Configuring IGMP
48
Configuring IGMP
Disabling Multicast Flooding During a TCN Event
3. interface interface-id
4. no ip igmp snooping tcn flood
5. end
6. show ip igmp snooping
7. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 interface interface-id Specifies the interface to be configured, and enters interface
configuration mode.
Example:
Step 4 no ip igmp snooping tcn flood Disables the flooding of multicast traffic during a
spanning-tree TCN event.
Example:
By default, multicast flooding is enabled on an interface.
Device(config-if)# no ip igmp snooping tcn flood
Note To re-enable multicast flooding on an interface,
use the ip igmp snooping tcn flood interface
configuration command.
Device(config)# end
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
49
Configuring IGMP
Configuring the IGMP Snooping Querier
SUMMARY STEPS
1. enable
2. configure terminal
3. ip igmp snooping querier
4. ip igmp snooping querier address ip_address
5. ip igmp snooping querier query-interval interval-count
6. ip igmp snooping querier tcn query [count count | interval interval]
7. ip igmp snooping querier timer expiry timeout
8. ip igmp snooping querier version version
9. end
10. show ip igmp snooping vlan vlan-id
11. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 4 ip igmp snooping querier address ip_address (Optional) Specifies an IP address for the IGMP snooping
querier. If you do not specify an IP address, the querier
Example:
tries to use the global IP address configured for the IGMP
querier.
Device(config)# ip igmp snooping querier address
172.16.24.1
Configuring IGMP
50
Configuring IGMP
Configuring the IGMP Snooping Querier
Step 5 ip igmp snooping querier query-interval interval-count (Optional) Sets the interval between IGMP queriers. The
range is 1 to 18000 seconds.
Example:
Step 6 ip igmp snooping querier tcn query [count count | (Optional) Sets the time between Topology Change
interval interval] Notification (TCN) queries. The count range is 1 to 10.
The interval range is 1 to 255 seconds.
Example:
Step 7 ip igmp snooping querier timer expiry timeout (Optional) Sets the length of time until the IGMP querier
expires. The range is 60 to 300 seconds.
Example:
Step 8 ip igmp snooping querier version version (Optional) Selects the IGMP version number that the
querier feature uses. Select 1 or 2.
Example:
Device(config)# end
Step 10 show ip igmp snooping vlan vlan-id (Optional) Verifies that the IGMP snooping querier is
enabled on the VLAN interface. The VLAN ID range is
Example:
1 to 1001 and 1006 to 4094.
Device# show ip igmp snooping vlan 30
Step 11 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Configuring IGMP
51
Configuring IGMP
Disabling IGMP Report Suppression
SUMMARY STEPS
1. enable
2. configure terminal
3. no ip igmp snooping report-suppression
4. end
5. show ip igmp snooping
6. copy running-config startup-config
DETAILED STEPS
Device> enable
Step 3 no ip igmp snooping report-suppression Disables IGMP report suppression. When report suppression
is disabled, all IGMP reports are forwarded to the multicast
Example:
routers.
Device(config)# no ip igmp snooping IGMP report suppression is enabled by default.
report-suppression
When IGMP report supression is enabled, the device
forwards only one IGMP report per multicast router query.
Note To re-enable IGMP report suppression, use the
ip igmp snooping report-suppression global
configuration command.
Device(config)# end
Configuring IGMP
52
Configuring IGMP
Monitoring IGMP
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Monitoring IGMP
You can display specific statistics, such as the contents of IP routing tables, caches, and databases.
You can display information to learn resource usage and solve network problems. You can also display
information about node reachability and discover the routing path that packets of your device are taking
through the network.
You can use any of the privileged EXEC commands in the following table to display various routing statistics.
Command Purpose
show ip igmp groups [type-number | detail ] Displays the multicast groups that are directly
connected to the device and that were learned through
IGMP.
show ip igmp ssm-mapping [ hostname/IP address Displays IGMP SSM mapping information.
]
Configuring IGMP
53
Configuring IGMP
Monitoring IGMP Snooping Information
Command Purpose
show ip igmp snooping groups [ count | [vlan Displays multicast table information for the device or
vlan-id [A.B.C.D | count ] ] about a specific parameter:
• count—Displays the total number of groups.
• vlan—Displays group information by VLAN
ID.
show ip igmp snooping mrouter [vlan vlan-id] Displays information on dynamically learned and
manually configured multicast router interfaces.
Note When you enable IGMP snooping, the
device automatically learns the interface
to which a multicast router is connected.
These are dynamically learned interfaces.
show ip igmp snooping querier [ detail | vlan Displays information about the IP address and
vlan-id] receiving port for the most-recently received IGMP
query messages in the VLAN.
(Optional) Enter detail to display the detailed IGMP
querier information in a VLAN.
(Optional) Enter vlan vlan-id to display information
for a single VLAN.
show ip igmp snooping [vlan vlan-id [ detail ] ] Displays the snooping configuration information for
all VLANs on the device or for a specified VLAN.
(Optional) Enter vlan vlan-id to display information
for a single VLAN. The VLAN ID range is 1 to 1001
and 1006 to 4094.
Configuring IGMP
54
Configuring IGMP
Configuration Examples for IGMP
Command Purpose
show ip igmp profile [profile number] Displays the specified IGMP profile or all the IGMP
profiles defined on the device.
show running-config [interface interface-id] Displays the configuration of the specified interface
or the configuration of all interfaces on the device,
including (if configured) the maximum number of
IGMP groups to which an interface can belong and
the IGMP profile applied to the interface.
Configuring IGMP
55
Configuring IGMP
Example: Configuring IGMP Profiles
This example shows how to enable IGMP Immediate Leave on VLAN 130:
This example shows how to set the IGMP snooping querier source address to 10.0.0.64:
This example shows how to set the IGMP snooping querier maximum response time to 25 seconds:
This example shows how to set the IGMP snooping querier timeout to 60 seconds:
This example shows how to set the IGMP snooping querier feature to Version 2:
Configuring IGMP
56
Configuring IGMP
Example: Applying IGMP Profile
Configuring IGMP
57
Configuring IGMP
Example: Configuring the Device to Forward Multicast Traffic in the Absence of Directly Connected IGMP Hosts
interface FastEthernet0/0/0
ip igmp join-group 225.2.2.2
The following example shows how to configure a device to forward multicast traffic in the absence of directly
connected IGMP hosts using the ip igmp static-group command. With this method, the device does not
accept the packets itself, but only forwards them. Hence, this method allows fast switching. The outgoing
interface appears in the IGMP cache, but the device itself is not a member, as evidenced by lack of an “L”
(local) flag in the multicast route entry.
In this example, static group membership entries for group 225.2.2.2 are configured on Fast Ethernet interface
0/1/0:
interface FastEthernet0/1/0
ip igmp static-group 225.2.2.2
Configuring IGMP
58
Configuring IGMP
Example: Denying All States for a Group G
Note Keep in mind that access lists are very flexible: there are many combinations of permit and deny statements
one could use in an access list to filter multicast traffic. The examples in this section simply provide a few
examples of how it can be done.
Configuring IGMP
59
Configuring IGMP
Example: Filtering a Source S for a Group G
interface GigabitEthernet1/2/0
ip igmp access-group test4
Cisco IOS commands Cisco IOS Master Commands List, All Releases
Standard/RFC Title
RFC 1112 Host Extensions for IP Multicasting
MIBs
Configuring IGMP
60
Configuring IGMP
Feature Information for IGMP
Technical Assistance
Description Link
The Cisco Support website provides extensive online resources, including http://www.cisco.com/support
documentation and tools for troubleshooting and resolving technical issues
with Cisco products and technologies.
To receive security and technical information about your products, you can
subscribe to various services, such as the Product Alert Tool (accessed from
Field Notices), the Cisco Technical Services Newsletter, and Really Simple
Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website requires a Cisco.com user
ID and password.
IGMP Cisco IOS XE Fuji 16.9.1 IGMP is used to dynamically register individual hosts
in a multicast group on a particular LAN. Enabling
PIM on an interface also enables IGMP. IGMP
provides a means to automatically control and limit
the flow of multicast traffic throughout your network
with the use of special multicast queriers and hosts.
This feature was implemented on the following
platforms:
• Cisco Catalyst 9200 Series Switches
Configuring IGMP
61
Configuring IGMP
Feature Information for IGMP
Configuring IGMP
62