H3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101

HomeSupportQuick StartH3C Campus Fixed-Port Switches CLI-Based Quick Start Configuration Guide-6W101
Table of Contents
Related Documents
22-IGMP Snooping Quick Start Configuration Guide

IGMP snooping Quick Start Configuration Guide

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2022 New H3C Technologies Co., Ltd. All rights reserved.

No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.

Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.

The information in this document is subject to change without notice.



Configuring IGMP snooping

Introduction

The following information uses an example to describe the basic procedure for configuring IGMP snooping.

Network configuration

As shown in Figure 1:

·     The network is a Layer 2-only network.

·     The multicast source sends multicast data to multicast group 224.1.1.1.

·     Host A and Host B are receivers of multicast group 224.1.1.1, and Host C is not a receiver of multicast group 224.1.1.1.

·     All host receivers run IGMPv2, and all switches run IGMPv2 snooping. Switch A (which is close to the multicast sources) acts as the IGMP snooping querier.

To send multicast data only to Host A and Host B in the Layer 2-only network, enable IGMP snooping on Switch B.

Figure 1 Network diagram

 

Procedure

Configuring Switch A

# Enable the IGMP snooping feature.

<SwitchA> system-view

[SwitchA] igmp-snooping

[SwitchA-igmp-snooping] quit

# Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/2 to the VLAN, enable IGMP snooping for VLAN 100.

[SwitchA] vlan 100

[SwitchA-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/2

[SwitchA-vlan100] igmp-snooping enable

# Configure Switch A as the IGMP snooping querier.

[SwitchA-vlan100] igmp-snooping querier

[SwitchA-vlan100] quit

# Set the configuration.

[SwitchA] save

Configuring Switch B

# Enable the IGMP snooping feature.

<SwitchB> system-view

[SwitchB] igmp-snooping

[SwitchB-igmp-snooping] quit

# Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to the VLAN, enable IGMP snooping for VLAN 100.

[SwitchB] vlan 100

[SwitchB-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4

[SwitchB-vlan100] igmp-snooping enable

[SwitchB-vlan100] quit

Verify the configuration

# Display dynamic IGMP snooping group entries on Switch B.

<SwitchB> display igmp-snooping group

Total 2 entries.

 

VLAN 100: Total 2 entries.

  (0.0.0.0, 224.1.1.1)

    Host ports (2 in total):

      GE1/0/2                           (00:03:23)

      GE1/0/3                           (00:03:23)

The output shows that GE1/0/4 of Host C is not in the multicast group. Multicast data is not sent to Host.

Configuration files

·     Switch A:

#

igmp-snooping

#

vlan 100

 igmp-snooping enable

 igmp-snooping querier

#

interface GigabitEthernet1/0/1

 port access vlan 100

#

interface GigabitEthernet1/0/2

 port access vlan 100

#

·     Switch B:

#

igmp-snooping

#

vlan 100

 igmp-snooping enable

#

interface GigabitEthernet1/0/1

 port access vlan 100

#

interface GigabitEthernet1/0/2

 port access vlan 100

#

interface GigabitEthernet1/0/3

 port access vlan 100

#

interface GigabitEthernet1/0/4

 port access vlan 100

#

Related documentation

·     IGMP snooping configuration in the IP multicast configuration guide for the device.

·     IGMP snooping commands in the IP multicast command reference for the device.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网