436
Configuring IGMP Snooping and MVR
How to Configure IGMP Snooping and MVR
Setting IGMP Snooping Parameters
Command Purpose
1. configure terminal Enters global configuration mode.
2. ip igmp snooping
or
ip igmp snooping vlan vlan-id
Globally enables IGMP snooping in all existing VLAN interfaces.
or
Enables IGMP snooping on the VLAN interface. The VLAN ID range is 1 to
1001 and 1006 to 4096.
IGMP snooping must be globally enabled before you can enable VLAN
snooping.
3. end Returns to privileged EXEC mode.
Command Purpose
1. configure terminal Enters global configuration mode.
2. ip igmp snooping vlan vlan-id mrouter
learn {cgmp | pim-dvmrp}
(Optional) Enables IGMP snooping on a VLAN. The VLAN ID range is 1
to 1001 and 1006 to 4096.
Specifies the multicast router learning method:
cgmp—Listens for CGMP packets. This method is useful for
reducing control traffic.
pim-dvmrp—Snoops on IGMP queries and PIM-DVMRP packets.
This is the default.
3. ip igmp snooping vlan vlan-id mrouter
interface interface-id
Adds a multicast router port (adds a static connection to a multicast
router).
(Optional) Specifies the multicast router VLAN ID and the interface to
the multicast router.
The VLAN ID range is 1 to 1001 and 1006 to 4096.
The interface can be a physical interface or a port channel. The
port-channel range is 1 to 10.
Static connections to multicast routers are supported only on
switch ports.
4. ip igmp snooping vlan vlan-id static
ip_address interface interface-id
(Optional) Statically configures a Layer 2 port as a member of a
multicast group:
vlan-id—Multicast group VLAN ID. The range is 1 to 1001 and
1006 to 4096.
ip-address—Group IP address.
interface-id—Member port. It can be a physical interface or a port
channel (1 to 6).
5. ip igmp snooping vlan vlan-id
immediate-leave
(Optional) Enables IGMP Immediate Leave on the VLAN interface.
Note: Immediate Leave is supported only on IGMP Version 2 hosts.