ip igmp snooping query-interval
ip igmp snooping query-max-response time
ip igmp snooping query-time-out
This switch uses IGMP (Internet Group Management Protocol) to query for any
attached hosts that want to receive a specific multicast service. It identifies
the ports containing hosts requesting a service and sends data out to those
ports only. It then propagates the service request up to any neighboring multicast
switch/router to ensure that it will continue to receive the multicast service.
Use this command to enable IGMP snooping on this switch. Use the no form to disable it.
Command Syntax
ip igmp snooping
no ip igmp snooping
Default Setting
Enabled
Command Mode
Global Configuration
Example
The following example enables IGMP snooping.
(config)#ip igmp snooping
(config)#
Use this command to statically configure a multicast router port. Use the no form to remove the configuration.
Command Syntax
ip igmp snooping vlan vlan-id mrouter interface
no ip igmp snooping vlan vlan-id mrouter interface
- vlan-id - VLAN ID (1-4094)
- interface
- ethernet unit/port
- unit - This is device 1.
- port - Port number.
- port-channel channel-id (Range: 1-6)
Default Setting
No static multicast router ports are configured.
Command Mode
Global Configuration
Command Usage
Depending on your network connections, IGMP snooping may not always be able to locate the IGMP querier. Therefore, if the IGMP querier is a known multicast router/switch connected over the network to an interface (port or trunk) on your switch, you can manually configure that interface to join all the current multicast groups.
Example
The following shows how to configure port 11 as a multicast router port within VLAN 1:
(config)#ip igmp snooping vlan 1 mrouter ethernet 1/11
(config)#
Use this command to add a port to a multicast group. Use the no form to remove the port.
Command Syntax
ip igmp snooping vlan vlan-id static ip-address interface
no ip igmp snooping vlan vlan-id static ip-address interface
- vlan-id - VLAN ID (Range: 1-4094)
- ip-address - IP address for multicast group
- interface
- ethernet unit/port
- unit - This is device 1.
- port - Port number.
- port-channel channel-id (Range: 1-6)
Default Setting
None
Command Mode
Global Configuration
Example
The following shows how to statically configure a multicast group on a port:
(config)#ip igmp snooping vlan 1 static 224.0.0.12 ethernet 1/5
(config)#
Use this command to enable the switch as an IGMP snooping querier. Use the no form to disable it.
Command Syntax
ip igmp snooping querier
no ip igmp snooping querier
Default Setting
Enabled
Command Mode
Global Configuration
Command Usage
If enabled, the switch will serve as querier if elected. The querier is responsible for asking hosts if they want to receive multicast traffic.
Example
(config)#ip igmp snooping querier
(config)#
Use this command to configure the query count. Use the no form to restore the default.
Command Syntax
ip igmp snooping query-count count
no ip igmp snooping query-count
count - The maximum number of queries issued for which there has been no response before the switch takes action to solicit reports. (Range: 2-10)
Default Setting
2 times
Command Mode
Global Configuration
Example
The following shows how to configure the query count to 10:
(config)#ip igmp snooping query-count 10
(config)#
Use this command to configure the snooping query interval. Use the no form to restore the default.
Command Syntax
ip igmp snooping query-interval seconds
no ip igmp snooping query-interval
seconds - The frequency at which the switch sends IGMP host-query messages. (Range: 60-125)
Default Setting
125 seconds
Command Mode
Global Configuration
Example
The following shows how to configure the query interval to 100 seconds:
(config)#ip igmp snooping query-interval 100
(config)#
Use this command to configure the snooping report delay. Use the no form of this command to restore the default.
Command Syntax
ip igmp snooping query-max-response time seconds
no ip igmp snooping query-max-response time
seconds - The delay between receiving the last report and removing an entry. (Range: 5-30)
Default Setting
10 seconds
Command Mode
Global Configuration
Command Usage
Example
The following shows how to configure the maximum response time to 20 seconds:
(config)#ip igmp snooping query-max-response-time 20
(config)#
Related Commands
Use this command to configure the snooping query-timeout. Use the no form of this command to restore the default.
Command Syntax
ip igmp snooping query-time-out seconds
no ip igmp snooping query-time-out
seconds - The time the switch waits after the previous querier has stopped querying before it takes over as the querier. (Range: 300-500)
Default Setting
300 seconds
Command Mode
Global Configuration
Command Usage
The switch must be using IGMPv2 for this command to take effect.
Example
The following shows how to configure the default timeout to 300 seconds:
(config)#ip igmp snooping query-time-out 300
(config)#
Related Commands
Use this command to configure the IGMP snooping version. Use the no form to restore the default.
Command Syntax
ip igmp snooping version {1 | 2}
no ip igmp snooping version
- 1 - IGMP Version 1
- 2 - IGMP Version 2
Default Setting
IGMP Version 2
Command Mode
Global Configuration
Command Usage
Example
The following configures the switch to use IGMP Version 1:
(config)#ip igmp snooping version 1
(config)#
Use this command to show the IGMP snooping configuration.
Default Setting
None
Command Mode
Privileged Exec
Example
The following shows the current IGMP snooping configuration:
#show ip igmp snooping
Service status: Enabled
Querier status: Enabled
Query count: 2
Query interval: 125 sec
Query max response time: 10 sec
Query time-out: 300 sec
IGMP snooping version: Version 2
#
Use this command to display information on statically configured and dynamically learned multicast router ports.
Command Syntax
show ip igmp snooping mrouter [vlan vlan-id]
vlan-id - VLAN ID (Range: 1-4094)
Default Setting
Displays multicast router ports for all configured VLANs.
Command Mode
Privileged Exec
Example
The following shows the ports in VLAN 1 which are attached to multicast routers:
#show ip igmp snooping mrouter vlan 1
VLAN M'cast Router Port Type
---- ------------------ -------
1 Eth 1/11 Static
#
Use this command to show the multicast list with MAC and IP addresses.
Command Syntax
show bridge bridge-group multicast [vlan vlan-id] [user | igmp-snooping]
- bridge-group - Bridge group index.
- vlan-id - VLAN ID (1 to 4094)
- user - Display only the user-configured multicast entries.
- igmp-snooping - Display only entries learned through IGMP snooping.
Default Setting
None
Command Mode
Privileged Exec
Example
The following shows the multicast entries learned through IGMP snooping for bridge group 1, VLAN 5:
#show bridge 1 multicast vlan 5 igmp-snooping
VLAN M'cast IP addr. Member ports Type
---- --------------- ------------ -------
5 224.1.2.3 Eth1/11 User
#