06-IP Multicast Configuration Examples

HomeSupportSwitchesH3C S12500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C S12500 Typical Configuration Example-R7328P02-6W10006-IP Multicast Configuration Examples
01-H3C S12500 IGMP Configuration Examples
Title Size Download
01-H3C S12500 IGMP Configuration Examples 91.96 KB

Introduction

This document provides IGMP configuration examples.

Prerequisites

The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.

This document assumes that you have basic knowledge of IGMP.

Example: Configuring basic IGMP features

Network requirements

As shown in Figure 1:

·     OSPF and PIM-DM run on the network.

·     VOD streams are sent to receiver hosts in multicast. Receiver hosts of different organizations form stub networks N1 and N2. Host A and Host C are receiver hosts in N1 and N2, respectively.

·     IGMPv2 runs between Switch A and N1, and between the other two switches and N2. Switch A acts as the IGMP querier in N1. Switch B acts as the IGMP querier in N2 because it has a lower IP address.

Configure basic IGMP features on the switches to meet the following requirements:

·     Multicast receivers in N1 can join any multicast groups.

·     Multicast receivers in N2 can join only the multicast group 224.1.1.1.

Figure 1 Network diagram

 

Requirements analysis

To limit the multicast groups that multicast receivers can join, create an IPv4 basic ACL and specify the multicast groups that the receivers can join.

Software version used

This configuration example was created and verified on S12500-CMW710-R7328P02.

Configuration restrictions and guidelines

When you configure basic IGMP features, follow these restrictions and guidelines:

·     The protocol packets of different IGMP versions are different in structures and types. You must enable the same IGMP version for all switches on the same subnet. Otherwise, IGMP cannot operate correctly.

·     You must configure the same multicast group policy for all switches on the same subnet.

·     By default, Ethernet interfaces, VLAN interfaces, and aggregate interfaces are shut down. You must first use the undo shutdown command to bring them up. This example assumes that all these interfaces are already up.

Configuration procedures

1.     Assign an IP address and subnet mask to each interface according to Figure 1. (Details not shown.)

2.     Configure OSPF on the switches in the PIM-DM domain. (Details not shown.)

3.     Configure Switch A:

# Enable IP multicast routing.

<SwitchA> system-view

[SwitchA] multicast routing

[SwitchA-mrib] quit

# Enable IGMP on the receiver-side interface VLAN-interface 100.

[SwitchA] interface vlan-interface 100

[SwitchA-Vlan-interface100] igmp enable

[SwitchA-Vlan-interface100] quit

# Enable PIM-DM on VLAN-interface 101.

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] pim dm

[SwitchA-Vlan-interface101] quit

4.     Configure Switch B:

# Create ACL 2001 to permit IGMP reports for the multicast group 224.1.1.1.

<SwitchB> system-view

[SwitchB] acl number 2001

[SwitchB-acl-basic-2001] rule permit source 224.1.1.1 0

[SwitchB-acl-basic-2001] quit

# Enable IP multicast routing.

[SwitchB] multicast routing

[SwitchB-mrib] quit

# Enable IGMP on the receiver-side interface VLAN-interface 200.

[SwitchB] interface vlan-interface 200

[SwitchB-Vlan-interface200] igmp enable

# Configure a multicast group policy referencing ACL 2001 so that multicast receivers attached to the interface can join only the group 224.1.1.1.

[SwitchB-Vlan-interface200] igmp group-policy 2001

[SwitchB-Vlan-interface200] quit

# Enable PIM-DM on VLAN-interface 201.

[SwitchB] interface vlan-interface 201

[SwitchB-Vlan-interface201] pim dm

[SwitchB-Vlan-interface201] quit

5.     Configure Switch C:

# Create ACL 2001 to permit IGMP reports for the multicast group 224.1.1.1.

<SwitchC> system-view

[SwitchC] acl number 2001

[SwitchC-acl-basic-2001] rule permit source 224.1.1.1 0

[SwitchC-acl-basic-2001] quit

# Enable IP multicast routing.

[SwitchC] multicast routing

[SwitchC-mrib] quit

# Enable IGMP on the receiver-side interface VLAN-interface 200.

[SwitchC] interface vlan-interface 200

[SwitchC-Vlan-interface200] igmp enable

# Configure a multicast group policy referencing ACL 2001 so that multicast receivers attached to the interface can join only the group 224.1.1.1.

[SwitchC-Vlan-interface200] igmp group-policy 2001

[SwitchC-Vlan-interface200] quit

# Enable PIM-DM on VLAN-interface 202.

[SwitchC] interface vlan-interface 202

[SwitchC-Vlan-interface202] pim dm

[SwitchC-Vlan-interface202] quit

Verifying the configuration

# Send IGMP reports from Host C (10.110.2.10) to join the multicast groups 224.1.1.1 and 224.1.1.2. (Details not shown.)

# Display IGMP information about multicast groups on Switch B.

[SwitchB] display igmp group

IGMP groups in total: 1

 Vlan-interface200(10.110.2.1):

  IGMP groups reported in total: 1

   Group address   Last reporter   Uptime      Expires

   224.1.1.1       10.110.2.10     04:36:03    00:01:23

# Display IGMP information about multicast groups on Switch C.

[SwitchC] display igmp group

IGMP groups in total: 1

 Vlan-interface200(10.110.2.2):

  IGMP groups reported in total: 1

   Group address   Last reporter   Uptime      Expires

   224.1.1.1       10.110.2.10     04:21:03    00:01:13

The output shows that Switch B and Switch C each have IGMP information about only the multicast group, 224.1.1.1. The multicast group policy has taken effect, and multicast receivers in N2 can join only the multicast group 224.1.1.1.

Configuration files

·     Switch A:

#

 ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

vlan 100 to 101

#

interface Vlan-interface100

 ip address 10.110.1.1 255.255.255.0

 pim dm

 igmp enable

#

interface Vlan-interface101

 ip address 10.111.1.1 255.255.255.0

 pim dm

#

 interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 100

#

 interface Ten-GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 101

#

multicast routing

#

·     Switch B:

#

ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

acl number 2001

 rule 0 permit source 224.1.1.1 0

#

vlan 200 to 201

#

interface Vlan-interface200

 ip address 10.110.2.1 255.255.255.0

 pim dm

 igmp enable

 igmp group-policy 2001

#

interface Vlan-interface201

 ip address 10.111.2.1 255.255.255.0

 pim dm

#

 interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 200

#

 interface Ten-GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 201

#

multicast routing

#

·     Switch C:

#

ospf 1

 area 0.0.0.0

  network 10.0.0.0 0.255.255.255

#

acl number 2001

 rule 0 permit source 224.1.1.1 0

#

vlan 200

#

vlan 202

#

interface Vlan-interface200

 ip address 10.110.2.2 255.255.255.0

 pim dm

 igmp enable

 igmp group-policy 2001

#

interface Vlan-interface202

 ip address 10.111.3.1 255.255.255.0

 pim dm

#

 interface Ten-GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 200

#

 interface Ten-GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 202

#

 multicast routing

#

Related documentation

·     H3C S12500 Routing Switch Series IP Multicast Command Reference Release 7328

·     H3C S12500 Routing Switch Series IP Multicast Configuration Guide Release 7328

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