Chapter 21
Configuring IGMP Snooping
Command
Step 4
show ip igmp snooping mrouter [vlan vlan-id] Verify that IGMP snooping is enabled on the VLAN interface.
Step 5
copy running-config startup-config
To remove a multicast router port from the VLAN, use the no ip igmp snooping vlan vlan-id mrouter
interface interface-id global configuration command.
This example shows how to enable a static connection to a multicast router:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 200 mrouter interface gigabitethernet0/2
Switch(config)# end
Configuring a Host Statically to Join a Group
Hosts or Layer 2 ports normally join multicast groups dynamically, but you can also statically configure
a host on an interface.
Beginning in privileged EXEC mode, follow these steps to add a Layer 2 port as a member of a multicast
group:
Command
Step 1
configure terminal
Step 2
ip igmp snooping vlan vlan-id static ip_address
interface interface-id
Step 3
end
Step 4
show ip igmp snooping groups
Step 5
copy running-config startup-config
To remove the Layer 2 port from the multicast group, use the no ip igmp snooping vlan vlan-id static
mac-address interface interface-id global configuration command.
This example shows how to statically configure a host on a port:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 105 static 224.2.4.12 interface gigabitethernet0/1
Switch(config)# end
Enabling IGMP Immediate Leave
When you enable IGMP Immediate Leave, the switch immediately removes a port when it detects an
IGMP Version 2 leave message on that port. You should only use the Immediate-Leave feature when
there is a single receiver present on every port in the VLAN.
OL-23389-01
Purpose
(Optional) Save your entries in the configuration file.
Purpose
Enter global configuration mode.
Statically configure a Layer 2 port as a member of a multicast
group:
vlan-id is the multicast group VLAN ID. The range is 1 to
•
1001 and 1006 to 4094.
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 6).
Return to privileged EXEC mode.
Verify the member port and the IP address.
(Optional) Save your entries in the configuration file.
Catalyst 2928 Switch Software Configuration Guide
Configuring IGMP Snooping
21-9