30
# Configure a multicast group policy so that the hosts in VLAN 100 can join only multicast group
224.1.1.1.
[SwitchA] acl number 2001
[SwitchA-acl-basic-2001] rule permit source 224.1.1.1 0
[SwitchA-acl-basic-2001] quit
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] group-policy 2001 vlan 100
[SwitchA-igmp-snooping] quit
# Configure GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 as simulated member hosts of
multicast group 224.1.1.1.
[SwitchA] interface gigabitethernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] igmp-snooping host-join 224.1.1.1 vlan 100
[SwitchA-GigabitEthernet1/0/3] quit
[SwitchA] interface gigabitethernet 1/0/4
[SwitchA-GigabitEthernet1/0/4] igmp-snooping host-join 224.1.1.1 vlan 100
[SwitchA-GigabitEthernet1/0/4] quit
Verifying the configuration
# Send IGMP reports from Host A and Host B to join multicast groups 224.1.1.1 and 224.2.2.2.
(Details not shown.)
# Display dynamic IGMP snooping group entries in VLAN 100 on Switch A.
[SwitchA] display igmp-snooping group vlan 100
Total 1 entries.
VLAN 100: Total 1 entries.
(0.0.0.0, 224.1.1.1)
Host slots (0 in total):
Host ports (2 in total):
GE1/0/3 (00:03:23)
GE1/0/4 (00:04:10)
The output shows the following information:
•
Host A and Host B have joined multicast group 224.1.1.1 through the member ports
GigabitEthernet 1/0/4 and GigabitEthernet 1/0/3 on Switch A, respectively.
•
Host A and Host B have failed to join multicast group 224.2.2.2. It means that the multicast
group policy has taken effect.
Static port configuration example
Network requirements
As shown in
:
•
Router A runs IGMPv2 and acts as the IGMP querier. Switch A, Switch B, and Switch C run
IGMPv2 snooping.
•
Host A and host C are permanent receivers of multicast group 224.1.1.1.
Configure static ports to meet the following requirements:
•
To enhance the reliability of multicast traffic transmission, configure GigabitEthernet 1/0/3 and
GigabitEthernet 1/0/5 on Switch C as static member ports for multicast group 224.1.1.1.
•
Suppose the STP runs on the network, and the forwarding path from Switch A to Switch C is
blocked to avoid data loops. Multicast data flows to the receivers attached to Switch C only