Configuring IGMP Snooping
This example shows how to enable a static connection to a multicast router and verify the configuration:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 200 mrouter interface gigabitethernet0/2
Switch(config)# end
Switch# show ip igmp snooping mrouter vlan 200
Vlan
-----+----------------------------------------
200
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 multicast
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 and verify the configuration:
Switch# configure terminal
Switch(config)# ip igmp snooping vlan 1 static 224.1.2.3 interface gigabitethernet0/1
Switch(config)# end
Switch# show ip igmp snooping multicast
Vlan
----
1
Enabling IGMP Immediate-Leave Processing
When you enable IGMP Immediate-Leave processing, the switch immediately removes a port when it
detects an IGMP version 2 leave message on that port. You should use the Immediate-Leave feature only
when there is a single receiver present on every port in the VLAN.
Catalyst 3560 Switch Software Configuration Guide
19-10
ports
Gi0/2(static)
Group Address
Type
-------------
----
224.1.2.3
USER
Chapter 19
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.
ip-address is the group IP address.
•
interface-id is the member port. It can be a physical
•
interface or port channel (1 to 12).
Return to privileged EXEC mode.
Verify the member port and the IP address.
(Optional) Save your entries in the configuration file.
Ports
-----
Gi0/1
Configuring IGMP Snooping and MVR
78-16156-01