Verifying the configuration, Enabling igmp snooping fast-leave processing – H3C Technologies H3C S12500-X Series Switches User Manual
Page 40
30
[RouterA-Ten-GigabitEthernet1/0/1] igmp enable
[RouterA-Ten-GigabitEthernet1/0/1] quit
# Enable PIM-DM on Ten-GigabitEthernet 1/0/2.
[RouterA] interface ten-gigabitethernet 1/0/2
[RouterA-Ten-GigabitEthernet1/0/2] pim dm
[RouterA-Ten-GigabitEthernet1/0/2] quit
3.
Configure Switch A:
# Enable IGMP snooping globally.
<SwitchA> system-view
[SwitchA] igmp-snooping
[SwitchA-igmp-snooping] quit
# Create VLAN 100, assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/4 to
the VLAN, and enable IGMP snooping and the function of dropping unknown multicast data for
the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
[SwitchA-vlan100] igmp-snooping enable
[SwitchA-vlan100] igmp-snooping drop-unknown
[SwitchA-vlan100] quit
# Configure a multicast group filter so that the hosts in VLAN 100 can join only the 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
Verifying the configuration
Assume that Host A and Host B want to join the multicast groups 224.1.1.1 and 224.2.2.2 to receive the
multicast data from the multicast source.
# Display information about the dynamic IGMP snooping forwarding 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 (1 in total):
1
Host ports (2 in total):
XGE1/0/3
XGE1/0/4
The output shows that Host A and Host B have joined the multicast group 224.1.1.1 through the member
ports Ten-GigabitEthernet 1/0/4 and Ten-GigabitEthernet 1/0/3 on Switch A, respectively, but the two
hosts have failed to join the multicast group 224.2.2.2. It means that the multicast group filter has taken
effect.