
100
4.8.5
CLI Commands of the Multicast Filtering
Command Lines of the multicast filtering configuration
Feature
Command Line
IGMP Snooping
IGMP Snoopi
–g -
Global
Switch(config)# ip igmp snooping
IGMP snooping is enabled globally. Please specify on which
vlans IGMP snooping enables
Switch(config)# ip igmp snooping <?>
immediate-leave leave group when receive a
leave message
last-member-query-interval the interval for which the switch
waits before updating the table entry
source-only-learning Source-Only-Learning
vlan Virtual LAN
IGMP Snoopi
–g - VLAN Switch(config)# ip igmp snooping vlan
VLANLIST allowed vlan list
all all existed vlan
Switch(config)# ip igmp snooping vlan 1-2
IGMP snooping is enabled on vlan 1
IGMP snooping is enabled on vlan 2
Disable IGMP Snoopi
–g
- Global
Switch(config)# no ip igmp snoopin
IGMP snooping is disabled globally ok.
Disable IGMP Snoopi
–g
- VLAN
Switch(config)# no ip igmp snooping vlan 3
IGMP snooping is disabled on VLAN 3.
Display
– IGMP
Snooping Setting
Switch# sh ip igmp
interface vlan1
enabled: Yes
version: IGMPv1
query-interval; 125s
query-max-response-time: 10s
Switch# sh ip igmp snooping
IGMP snooping is globally enabled
Vlan1 is IGMP snooping enabled
immediate-leave is disabled
last-member-query-interval is 100 centiseconds
Vlan2 is IGMP snooping enabled
immediate-leave is disabled
last-member-query-interval is 100 centiseconds
Vlan3 is IGMP snooping disabled
immediate-leave is disabled
last-member-query-interval is 100 centiseconds
Display
– IGMP Table
Switch# sh ip igmp snooping multicast all
VLAN IP Address Type Ports
---- --------------- ------- ------------------------
1 239.192.8.0 IGMP fa6,
1 239.255.255.250 IGMP fa6,
IGMP Query
IGMP Query V1
Switch(config)# int vlan 1 (Go to management VLAN)
Switch(config-if)# ip igmp v1
IGMP Query V2
Switch(config)# int vlan 1 (Go to management VLAN)
Switch(config-if)# ip igmp