download
>

Table of Contents

16-Multicast Configuration Guide

Download


Chapter 1  Multicast Configuration Guide

1.1  IGMP Snooping Configuration Examples

1.1.1  Configuring Simulated Joining

I. Network diagram

Figure 1-1 Network diagram for simulated joining configuration

II. Networking and configuration requirements

l           As shown in Figure 1-1, Router A connects to the multicast source through GigabitEthernet 1/0/2 and to Switch A through GigabitEthernet 1/0/1.

l           IGMPv2 is required on Router A, IGMP Snooping version 2 is required on Switch A, and Router A will act as the IGMP querier on the subnet.

l           It is required that multicast data for group 224.1.1.1 can be forwarded through GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 of Switch A even if Host A and Host B accidentally, temporarily stop receiving multicast data.

III. Applicable product matrix

Product

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions

(except S5500-20TP-SI)

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2103

All versions

S7500E Series Ethernet Switches

Release 6100

All versions

 

IV. Configuration procedure

1)         Configure IP addresses

Configure an IP address and subnet mask for each interface as per Figure 1-1. The detailed configuration steps are omitted.

2)         Configure Router A

# Enable IP multicast routing, enable PIM-DM on each interface, and enable IGMPv2 on GigabitEthernet 1/0/1.

<RouterA> system-view

[RouterA] multicast routing-enable

[RouterA] interface GigabitEthernet 1/0/1

[RouterA-GigabitEthernet1/0/1] igmp enable

[RouterA-GigabitEthernet1/0/1] pim dm

[RouterA-GigabitEthernet1/0/1] quit

[RouterA] interface GigabitEthernet 1/0/2

[RouterA-GigabitEthernet1/0/2] pim dm

[RouterA-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 GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to this VLAN, and enable IGMP Snooping in it.

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/4

[SwitchA-vlan100] igmp-snooping enable

[SwitchA-vlan100] quit

# Enable simulated host joining on GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 respectively.

[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

4)         Verify the configuration

# View the detailed information about IGMP Snooping multicast groups 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, A-Aggregation port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):100.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 1 port.

            GE1/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.

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

            GE1/0/4               (D) ( 00:03:23 )

    MAC group(s):

      MAC group address:0100-5e01-0101

          Host port(s):total 2 port.

            GE1/0/3

            GE1/0/4

As shown above, GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 of Switch A have joined multicast group 224.1.1.1.

V. Complete configuration

1)         Configuration on Switch A

#

 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

 igmp-snooping host-join 224.1.1.1 vlan 1

#

interface GigabitEthernet1/0/4

 port access vlan 100

 igmp-snooping host-join 224.1.1.1 vlan 1

#

VI. Configuration guidelines

l           Layer 2 and Layer 3 multicast protocols can run simultaneously on a switch, but a Layer 2 multicast protocol cannot run in a VLAN while a Layer 3 multicast protocol is running on the virtual interface of that VLAN, and vice versa.

l           IGMP Snooping must be enabled globally in system view before it can be enabled in a VLAN.

1.1.2  Configuring Static Ports

I. Network diagram

Figure 1-2 Network diagram for static router port configuration

II. Networking and configuration requirements

l           If receivers are steady on receiving the multicast data addressed to a particular group, you can configure a static port to enhance the reliability of multicast data transmission.

l           As shown in Figure 1-2, Router A connects to a multicast source (Source) through GigabitEthernet 1/0/2, and to Switch A through GigabitEthernet 1/0/1.

l           IGMP is to run between Router A and Switch A, and IGMP Snooping is to run on Switch A, Switch B and Switch C, with Router A acting as the IGMP querier.

l           Suppose STP runs on the network. To avoid data loops, the forwarding path from Switch A to Switch C is blocked under normal conditions, and multicast traffic flows to the receivers, Host A and Host C, attached to Switch C only along the path of Switch A—Switch B—Switch C.

l           Now it is required to configure GigabitEthernet 1/0/3 that connects Switch A to Switch C as a static router port, so that multicast traffic can flow to the receivers nearly uninterruptedly along the path of Switch A—Switch C in the case that the path of Switch A—Switch B—Switch C gets blocked.

l           It is required to configure GigabitEthernet 1/0/3 and GigabitEthernet 1/0/5 on Switch C as static member ports for multicast group 225.1.1.1, so that the attached two receivers can steadily receive multicast data destined for that multicast group.

 

&  Note:

If no static router port is configured, when the path of Switch A—Switch B—Switch C gets blocked, at least one IGMP query-response cycle must be completed before the multicast data can flow to the receivers along the new path of Switch A—Switch C, namely multicast delivery will be interrupted during this process.

 

III. Applicable product matrix

Product

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions

(except S5500-20TP-SI)

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2103

All versions

S7500E Series Ethernet Switches

Release 6100

All versions

 

IV. Configuration procedure

1)         Configure IP addresses

Configure an IP address and subnet mask for each interface as per Figure 1-2. The detailed configuration steps are omitted.

2)         Configure Router A

# Enable IP multicast routing, enable PIM-DM on each interface, and enable IGMP on GigabitEthernet 1/0/1.

<RouterA> system-view

[RouterA] multicast routing-enable

[RouterA] interface GigabitEthernet 1/0/1

[RouterA-GigabitEthernet1/0/1] igmp enable

[RouterA-GigabitEthernet1/0/1] pim dm

[RouterA-GigabitEthernet1/0/1] quit

[RouterA] interface GigabitEthernet 1/0/2

[RouterA-GigabitEthernet1/0/2] pim dm

[RouterA-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 GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to this VLAN, and enable IGMP Snooping in it.

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3

[SwitchA-vlan100] igmp-snooping enable

[SwitchA-vlan100] quit

# Configure GigabitEthernet 1/0/3 to be a static router port.

[SwitchA] interface GigabitEthernet 1/0/3

[SwitchA-GigabitEthernet1/0/3] igmp-snooping static-router-port vlan 100

[SwitchA-GigabitEthernet1/0/3] quit

4)         Configure Switch B

# Enable IGMP Snooping globally.

<SwitchB> system-view

[SwitchB] igmp-snooping

[SwitchB-igmp-snooping] quit

# Create VLAN 100, assign GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to this VLAN, and enable IGMP Snooping in it.

[SwitchB] vlan 100

[SwitchB-vlan100] port GigabitEthernet 1/0/1 GigabitEthernet 1/0/2

[SwitchB-vlan100] igmp-snooping enable

[SwitchB-vlan100] quit

5)         Configure Switch C

# Enable IGMP Snooping globally.

<SwitchC> system-view

[SwitchC] igmp-snooping

[SwitchC-igmp-snooping] quit

# # Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/5 to this VLAN, and enable IGMP Snooping in it.

[SwitchC] vlan 100

[SwitchC-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/5

[SwitchC-vlan100] igmp-snooping enable

[SwitchC-vlan100] quit

# Configure GigabitEthernet 1/0/3 and GigabitEthernet 1/0/5 in VLAN 100 as static member ports for multicast group 225.1.1.1.

[SwitchC] interface GigabitEthernet 1/0/3

[SwitchC-GigabitEthernet1/0/3] igmp-snooping static-group 225.1.1.1 vlan 100

[SwitchC-GigabitEthernet1/0/3] quit

[SwitchC] interface GigabitEthernet 1/0/5

[SwitchC-GigabitEthernet1/0/5] igmp-snooping static-group 225.1.1.1 vlan 100

[SwitchC-GigabitEthernet1/0/5] quit

6)         Verify the configuration

# View the detailed information about IGMP Snooping multicast groups 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, A-Aggregation port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):100.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 2 port.

            GE1/0/1               (D) ( 00:01:30 )

            GE1/0/3               (S)

    IP group(s):the following ip group(s) match to one mac group.

      IP group address:225.1.1.1

        (0.0.0.0, 225.1.1.1):

          Attribute:    Host Port

          Host port(s):total 1 port.

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

    MAC group(s):

      MAC group address:0100-5e01-0101

          Host port(s):total 1 port.

            GE1/0/2

As shown above, GigabitEthernet 1/0/3 of Switch A has become a static router port.

# View the detailed information about IGMP Snooping multicast groups in VLAN 100 on Switch C.

[SwitchC] 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, A-Aggregation port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):100.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 1 port.

            GE1/0/2               (D) ( 00:01:30 )

    IP group(s):the following ip group(s) match to one mac group.

      IP group address:225.1.1.1

        (0.0.0.0, 225.1.1.1):

          Host port(s):total 1 port.

            GE1/0/3               (S)

            GE1/0/5               (S)

    MAC group(s):

      MAC group address:0100-5e01-0101

          Host port(s):total 1 port.

            GE1/0/3

            GE1/0/5

As shown above, GigabitEthernet 1/0/3 and GigabitEthernet 1/0/5 of Switch C have become static member ports for 225.1.1.1.

V. Complete configuration

1)         Configuration on Switch A

#

 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

 igmp-snooping static-router-port vlan 100

#

2)         Configuration on 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

#

3)         Configuration on Switch C

#

 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

 igmp-snooping static-group 225.1.1.1 vlan 100

#

interface GigabitEthernet1/0/4

 port access vlan 100

#

interface GigabitEthernet1/0/5

 port access vlan 100

 igmp-snooping static-group 225.1.1.1 vlan 100

#

VI. Configuration guidelines

None.

1.1.3  Configuring IGMP Snooping Querier

I. Network diagram

Figure 1-3 Network diagram for IGMP Snooping querier configuration

II. Networking and configuration requirements

l           As shown in Figure 1-3, in a Layer 2–only network environment, two multicast sources Source 1 and Source 2 send multicast data to multicast groups 224.1.1.1 and 225.1.1.1 respectively, Host A and Host C are receivers of multicast group 224.1.1.1, while Host B and Host D are receivers of multicast group 225.1.1.1.

l           All the receivers are running IGMPv2, and all the switches need to run IGMP Snooping version 2. Switch A, which is close to the multicast sources, is chosen as the IGMP Snooping querier.

l           To prevent flooding of unknown multicast traffic within the VLAN, it is required to configure all the switches to drop unknown multicast data packets.

l           Because a switch does not enlist a port that has heard an IGMP query with a source IP address of 0.0.0.0 (default) as a dynamic router port, it is required configure a non-all-zero IP address as the source IP address of IGMP queries to ensure normal creation of Layer 2 multicast forwarding entries.

III. Applicable product matrix

Product

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions

(except S5500-20TP-SI)

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2103

All versions

S7500E Series Ethernet Switches

Release 6100

All versions

 

IV. Configuration procedure

1)         Configure Switch A

# Enable IGMP Snooping globally.

<SwitchA> system-view

[SwitchA] igmp-snooping

[SwitchA-igmp-snooping] quit

# Create VLAN 100 and assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 to the VLAN.

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3

# Enable IGMP Snooping and the function of dropping unknown multicast traffic in VLAN 100.

[SwitchA-vlan100] igmp-snooping enable

[SwitchA-vlan100] igmp-snooping drop-unknown

# Enable the IGMP Snooping querier function in VLAN 100

[SwitchA-vlan100] igmp-snooping querier

# Set the source IP address of IGMP general queries and group-specific queries to 192.168.1.1 in VLAN 100.

[SwitchA-vlan100] igmp-snooping general-query source-ip 192.168.1.1

[SwitchA-vlan100] igmp-snooping special-query source-ip 192.168.1.1

2)         Configure Switch B

# Enable IGMP Snooping globally.

<SwitchB> system-view

[SwitchB] igmp-snooping

[SwitchB-igmp-snooping] quit

# Create VLAN 100, and assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to the VLAN.

[SwitchB] vlan 100

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

# Enable IGMP Snooping and the function of dropping unknown multicast traffic in VLAN 100.

[SwitchB-vlan100] igmp-snooping enable

[SwitchB-vlan100] igmp-snooping drop-unknown

[SwitchB-vlan100] quit

Configurations on Switch C and Switch D are similar to the configuration on Switch B.

3)         Verify the configuration

After the IGMP Snooping querier starts to work, all the switches but the querier can receive IGMP general queries. By using the display igmp-snooping statistics command, you can view the statistics information about the IGMP messages received. For example:

# View the IGMP message statistics on Switch B.

[SwitchB-vlan100] display igmp-snooping statistics

  Received IGMP general queries:3.

  Received IGMPv1 reports:0.

  Received IGMPv2 reports:12.

  Received IGMP leaves:0.

  Received IGMPv2 specific queries:0.

  Sent     IGMPv2 specific queries:0.

  Received IGMPv3 reports:0.

  Received IGMPv3 reports with right and wrong records:0.

  Received IGMPv3 specific queries:0.

  Received IGMPv3 specific sg queries:0.

  Sent     IGMPv3 specific queries:0.

  Sent     IGMPv3 specific sg queries:0.

  Received error IGMP messages:0.

V. Complete configuration

1)         Configuration on Switch A

#

 igmp-snooping

#

vlan 100

 igmp-snooping enable

 igmp-snooping drop-unknown

 igmp-snooping querier

 igmp-snooping general-query source-ip 192.168.1.1

 igmp-snooping special-query source-ip 192.168.1.1

#

interface GigabitEthernet1/0/1

 port access vlan 100

#

interface GigabitEthernet1/0/2

 port access vlan 100

#

interface GigabitEthernet1/0/3

 port access vlan 100

#

 

2)         Configuration on Switch B

#

 igmp-snooping

#

vlan 100

 igmp-snooping enable

 igmp-snooping drop-unknown

 

#

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

#

The configuration on Switch C and Switch D is similar to the configuration on Switch B.

1.2  MLD Snooping Configuration Examples

1.2.1  Configuring Simulated Joining

I. Network diagram

Figure 1-4 Network diagram for simulated joining configuration

II. Networking and configuration requirements

l           As shown in Figure 1-4, Router A connects to the IPv6 multicast source through GigabitEthernet 1/0/2 and to Switch A through GigabitEthernet 1/0/1.

l           MLDv1 is required on Router A, MLD Snooping version 1 is required on Switch A, and Router A will act as the MLD querier on the subnet.

l           It is required that the receivers, Host A and Host B, attached to Switch A can receive IPv6 multicast traffic; multicast traffic can be forwarded through GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 of Switch A even if Host A and Host B accidentally, temporarily stop receiving IPv6 multicast data.

III. Applicable product matrix

Product

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions

(except S5500-20TP-SI)

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2103

All versions

 

IV. Configuration procedure

1)         Configure IPv6 addresses

Enable IPv6 forwarding and configure an IPv6 address and prefix length for each interface as per Figure 1-4. The detailed configuration steps are omitted.

2)         Configure Router A

# Enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface, and enable MLDv1 on GigabitEthernet 1/0/1.

<RouterA> system-view

[RouterA] multicast ipv6 routing-enable

[RouterA] interface GigabitEthernet 1/0/1

[RouterA-GigabitEthernet1/0/1] mld enable

[RouterA-GigabitEthernet1/0/1] pim ipv6 dm

[RouterA-GigabitEthernet1/0/1] quit

[RouterA] interface GigabitEthernet 1/0/2

[RouterA-GigabitEthernet1/0/2] pim ipv6 dm

[RouterA-GigabitEthernet1/0/2] quit

3)         Configure Switch A

# Enable MLD Snooping globally.

<SwitchA> system-view

[SwitchA] mld-snooping

[SwitchA-mld-snooping] quit

# Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to this VLAN, and enable MLD Snooping in it.

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/4

[SwitchA-vlan100] mld-snooping enable

[SwitchA-vlan100] quit

# Configure GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 as simulated hosts for IPv6 multicast group FF1E::101.

[SwitchA] interface GigabitEthernet 1/0/3

[SwitchA-GigabitEthernet1/0/3] mld-snooping host-join ff1e::101 vlan 100

[SwitchA-GigabitEthernet1/0/3] quit

[SwitchA] interface GigabitEthernet 1/0/4

[SwitchA-GigabitEthernet1/0/4] mld-snooping host-join ff1e::101 vlan 100

[SwitchA-GigabitEthernet1/0/4] quit

4)         Verify the configuration

# View the detailed information about MLD Snooping multicast groups in VLAN 100 on Switch A.

[SwitchA] display mld-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, A-Aggregation port, C-Copy port

  Subvlan flags: R-Real VLAN, C-Copy VLAN

  Vlan(id):100.

    Total 1 IP Group(s).

    Total 1 IP Source(s).

    Total 1 MAC Group(s).

    Router port(s):total 1 port.

            GE1/0/1               (D) ( 00:01:30 )

    IP group(s):the following ip group(s) match to one mac group.

      IP group address:FF1E::101

        (::, FF1E::101):

          Attribute:    Host Port

          Host port(s):total 2 port.

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

            GE1/0/4               (D) ( 00:03:23 )

    MAC group(s):

      MAC group address:3333-0000-1001

          Host port(s):total 2 port.

            GE1/0/3