36
[SwitchA-acl-basic-2001] quit
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] group-policy 2001 vlan 100
[SwitchA-igmp-snooping] quit
# Configure Ethernet 1/0/3 and Ethernet 1/0/4 as simulated hosts for multicast group
224.1.1.1.
[SwitchA] interface ethernet 1/0/3
[SwitchA-Ethernet1/0/3] igmp-snooping host-join 224.1.1.1 vlan 100
[SwitchA-Ethernet1/0/3] quit
[SwitchA] interface ethernet 1/0/4
[SwitchA-Ethernet1/0/4] igmp-snooping host-join 224.1.1.1 vlan 100
[SwitchA-Ethernet1/0/4] quit
Verifying the configuration
# Display detailed IGMP snooping group information in VLAN 100 on Switch A.
[SwitchA] display igmp-snooping group vlan 100 verbose
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Port flags: D-Dynamic port, S-Static port, C-Copy port, P-PIM port
Vlan(id):100.
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Router port(s):total 1 port.
Eth1/0/1 (D) ( 00:01:30 )
IP group(s):the following ip group(s) match to one mac group.
IP group address:224.1.1.1
(0.0.0.0, 224.1.1.1):
Attribute: Host Port
Host port(s):total 2 port.
Eth1/0/3 (D) ( 00:03:23 )
Eth1/0/4 (D) ( 00:04:10 )
MAC group(s):
MAC group address:0100-5e01-0101
Host port(s):total 2 port.
Eth1/0/3
Eth1/0/4
The output shows that Ethernet 1/0/3 and Ethernet 1/0/4 of Switch A has joined multicast group
224.1.1.1.
Static port configuration example
Network requirements
As shown in
, IGMPv2 runs on Router A, and IGMPv2 snooping runs on Switch A, Switch B, and
Switch C. Router A acts as the IGMP querier.