23-8
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 23 Configuring IGMP Snooping and Filtering
Configuring IGMP Snooping
This example shows how to configure IP IGMP snooping to learn from CGMP self-join packets:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 1 mrouter learn cgmp
Switch(config)# end
Switch#
Configuring a Static Connection to a Multicast Router
To configure a static connection to a multicast router, enter the ip igmp snooping vlan mrouter
interface command on the switch.
To configure a static connection to a multicast router, perform this task:
This example shows how to configure a static connection to a multicast router:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 200 mrouter interface fastethernet 2/10
Switch# show ip igmp snooping mrouter vlan 200
vlan ports
-----+----------------------------------------
200 Fa2/10
Switch#
Enabling IGMP Immediate-Leave Processing
When you enable IGMP immediate-leave processing on a VLAN, a switch removes an interface from
the multicast group when it detects an IGMPv2 leave message on that interface.
Note For IGMPv3, immediate-leave processing is enabled by default with EHT.
To enable immediate-leave processing on an IGMPv2 interface, perform this task:
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# ip igmp snooping vlan vlan_ID
mrouter interface interface_num Specifies a static connection to a multicast router for the
VLAN.
Note The interface to the router must be in the VLAN
where you are entering the command. The router
and the line protocol must be up.
Step 3 Switch(config)# end Exits configuration mode.
Step 4 Switch# show ip igmp snooping mrouter vlan vlan_ID Verifies the configuration.
Command Purpose
Switch(config)# ip igmp snooping vlan
vlan_ID immediate-leave Enables immediate-leave processing in the
VLAN.
Note This command applies only to IGMPv2
hosts.