H3C S9500 Operation Manual-Release1648[v1.24]-04 IP Multicast Volume

HomeSupportSwitchesH3C S9500 Series SwitchesConfigure & DeployConfiguration GuidesH3C S9500 Operation Manual-Release1648[v1.24]-04 IP Multicast Volume
06-Multicast VLAN Configuration
Title Size Download
06-Multicast VLAN Configuration 71.98 KB

Chapter 1  Multicast VLAN Configuration

When configuring IGMP Snooping, go to the following sections for the information you are interested in:

l           Multicast VLAN Overview

l           Configuring Multicast VLAN

l           Multicast VLAN Configuration Examples

l           Introduction to Multicast VLAN PLUS

l           Configuring Multicast VLAN PLUS

l           Multicast VLAN PLUS Configuration Examples

l           Disabling Layer 3 Multicast

1.1  Multicast VLAN Overview

Based on the traditional multicast on demand mode, when users in different VLANs request the service, multicast flow is duplicated in each VLAN and thus a great deal of bandwidth is wasted. To solve this problem, we provide the multicast VLAN feature. With this feature, you can add switch ports to a multicast VLAN and enable IGMP Snooping to allow users in different VLANs to share the same multicast VLAN. In this way, multicast flow is transmitted in one multicast VLAN instead of multiple user VLANs and bandwidth is greatly saved.

As multicast VLAN is isolated from user VLANs, this guarantees both security and enough bandwidth. After you configure the multicast VLAN, multicast information flow can be transmitted to users continuously.

1.2  Configuring Multicast VLAN

Multicast VLAN is based on Layer 2 multicast.

Follow these steps to configure multicast VLAN:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable IGMP Snooping in system view

igmp-snooping enable

Required

Enter VLAN view

vlan vlan-id

Enable IGMP Snooping in VLAN view

igmp-snooping enable

Required

Enable multicast VLAN

service-type multicast

Required

Quit VLAN view

quit

Enter Ethernet port view

interface interface-type interface-number

Define the port type to hybrid

port link-type hybrid

Required

Add the port to corresponding VLANs

port hybrid vlan vlan-id-list untagged

Required

 

&  Note:

l      A port can belong to only one multicast VLAN.

l      A port connected to user terminals must be a hybrid port that untags multicast VLAN packets.

l      The system supports up to three multicast VLANs.

 

1.3  Multicast VLAN Configuration Examples

I. Network requirements

l           Switch A (a Layer 3 device) connects to the multicast workstation through Ethernet 1/1/1 in VLAN 2, and the IP address of VLAN-interface 2 is 168.10.1.1/24.

l           Switch A connects to Switch B through Ethernet 1/1/10 in VLAN 10, and the IP address of VLAN-interface 10 is 168.20.1.1/24.

l           Switch B connects to two multicast receiver hosts in VLAN 2 and VLAN 3 respectively.

l           It is required to configure VLAN 10 as a multicast VLAN, so that multicast traffic is delivered to the two receivers through multicast VLAN 10.

II. Network diagram

Figure 1-1 Network diagram for multicast VLAN configuration

III. Configuration procedure

1)         Configure Switch A

# Configure the IP address of VLAN-interface 2 as 168.10.1.1/24. Enable the PIM-DM protocol.

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] multicast routing-enable

[SwitchA] vlan 2

[SwitchA-vlan2] port interface ethernet1/1/1

[SwitchA-vlan2] quit

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ip address 168.10.1.1 255.255.255.0

[SwitchA-Vlan-interface2] pim dm

[SwitchA-Vlan-interface2] quit

# Configure the IP address of VLAN-interface 10 as 168.20.1.1/24. Enable the PIM-DM and IGMP protocols.

[SwitchA] vlan 10

[SwitchA-vlan10] quit

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] ip address 168.20.1.1 255.255.255.0

[SwitchA-Vlan-interface10] pim dm

[SwitchA-Vlan-interface10] igmp enable

[SwitchA-Vlan-interface10] quit

# Define Ethernet 1/1/10 as a trunk port and add this port to VLAN 10.

[SwitchA] interface ethernet1/1/10

[SwitchA-Ethernet1/1/10] port link-type trunk

[SwitchA-Ethernet1/1/10] port trunk permit vlan 10

2)         Configure Switch B

# Enable IGMP Snooping.

<SwitchB> system-view

System View: return to User View with Ctrl+Z.

[SwitchB] igmp-snooping enable

# Enable IGMP-Snooping on VLAN 2 and VLAN 3.

[SwitchB] vlan 2

[SwitchB-vlan2] igmp-snooping enable

[SwitchB-vlan2] quit

[SwitchB] vlan 3

[SwitchB-vlan3] igmp-snooping enable

[SwitchB-vlan3] quit

# Configure VLAN 10 as multicast VLAN. Enable IGMP Snooping.

[SwitchB] vlan 10

[SwitchB-vlan10] igmp-snooping enable

[SwitchB-vlan10] service-type multicast

[SwitchB-vlan10] quit

# Define Ethernet 1/1/10 as a trunk port and add the port to VLAN 10.

[SwitchB] interface ethernet 1/1/10

[SwitchB-Ethernet 1/1/10] port link-type trunk

[SwitchB-Ethernet 1/1/10] port trunk permit vlan 10

[SwitchB-Ethernet 1/1/10] quit

# Define Ethernet 1/1/1 as a hybrid port. Add the port to VLAN 2 and VLAN 10. Configure the port to untag the packets of VLAN 2 and VLAN 10. Set the default VLAN ID of the port to VLAN 2.

[SwitchB] interface ethernet 1/1/1

[SwitchB-Ethernet 1/1/1] port link-type hybrid

[SwitchB-Ethernet 1/1/1] port hybrid vlan 2 10 untagged

[SwitchB-Ethernet 1/1/1] port hybrid pvid vlan 2

[SwitchB-Ethernet 1/1/1] quit

# Define Ethernet 1/1/2 as a hybrid port. Add the port to VLAN 3 and VLAN 10. Configure the port to untag the packets of VLAN 3 and VLAN 10. Set the default VLAN ID of the port to VLAN 3.

[SwitchB] interface ethernet 1/1/2

[SwitchB-Ethernet 1/1/2] port link-type hybrid

[SwitchB-Ethernet 1/1/2] port hybrid vlan 3 10 untagged

[SwitchB-Ethernet 1/1/2] port hybrid pvid vlan 3

[SwitchB-Ethernet 1/1/2] quit

1.4  Introduction to Multicast VLAN PLUS

 

&  Note:

Multicast VLAN and multicast VLAN PLUS are different features.

 

Based on Layer 2 multicast protocol configuration, multicast VLAN PLUS is a technique that forwards multicast packets by leveraging the Layer 3 multicast forwarding table.

Multicast switches serving as residential access devices must support Layer 3 multicast. However, the configuration of Layer 3 multicast on current devices is sophisticated and can be implemented only by special professionals.

To address this situation, the multicast VLAN PLUS feature was developed, which provides a user interface for Layer 2 multicast configuration while supporting Layer 3 multicast forwarding.

After multicast VLAN PLUS is enabled, the upstream device sends data only to the multicast VLAN, without replicating the multicast data for each VLAN. The multicast VLAN PLUS–enabled switch replicates data of the users in the multicast sub-VLANs.

1.5  Configuring Multicast VLAN PLUS

 

&  Note:

Unless otherwise specified, the multicast VLAN feature mentioned in this section refers to multicast VLAN PLUS.

 

1.5.1  Configuration Prerequisites

Before configuring multicast VLAN PLUS, you must enable IGMP Snooping first.

1.5.2  Configuring Multicast VLAN PLUS

Follow these steps to configure multicast VLAN PLUS:

To do...

Use the command…

Remarks

Enter system view

system-view

Enable IGMP snooping

igmp-snooping enable

Required

Enter VLAN view

vlan vlan-id

Configure the VLAN as a multicast VLAN

multicast-vlan enable

Required

Enable IGMP snooping in the multicast VLAN

igmp-snooping enable

Required

Return to system view

quit

Configure a VLAN as a sub-VLAN of a multicast VLAN

multicast-vlan vlan-id subvlan vlan-id

Required

Enter VLAN view

vlan vlan-id

Enable IGMP snooping in the sub-VLAN

igmp-snooping enable

Required

 

&  Note:

l      A multicast VLAN interconnects with Layer 3 devices.

l      Sub-VLANs are connected with users.

l      The device supports up to five multicast VLANs.

l      The device supports up to 64 sub-VLANs for a multicast VLAN.

l      Layer-3 multicast protocols must not be configured in multicast VLANs or sub-VLANs. VLANs with layer-3 multicast protocols enabled cannot be configured as multicast VLANs or sub-VLANs.

l      A multicast VLAN cannot be a sub-VLAN. A sub-VLAN belongs to only one multicast VLAN at the same time.

l      Before configuring a multicast sub-VLAN, you must configure the corresponding multicast VLAN.

l      Configure a multicast VLAN before enabling IGMP Snooping.

l      With multicast VLAN PLUS enabled, you need to configure a querier only in the multicast VLAN and not in sub-VLANs. The querier configured in a sub-VLAN does not send general queries. But after the sub-VLAN becomes a normal VLAN or multicast VLAN, the configured querier sends general queries.

 

1.6  Multicast VLAN PLUS Configuration Examples

I. Network requirements

l           Switch A (a Layer 3 device) connects to the multicast workstation through Ethernet 1/1/1 in VLAN 2, and the IP address of VLAN-interface 2 is 168.10.1.1/24.

l           Switch A connects to Switch B through Ethernet 1/1/10 in VLAN 10, and the IP address of VLAN-interface 10 is 168.20.1.1/24.

l           Switch B connects to two multicast receiver hosts in VLAN 20 and VLAN 30 respectively.

l           It is required to configure the multicast VLAN PLUS, so that multicast traffic is delivered to the two receivers through multicast VLAN 10.

II. Network diagram

Figure 1-2 Network diagram for multicast VLAN PLUS configuration

III. Configuration procedure

1)         Configure Switch A.

# Configure the IP address of VLAN-interface 2 as 168.10.1.1/24 and enable PIM-DM.

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] multicast routing-enable

[SwitchA] vlan 2

[SwitchA-vlan2] port interface ethernet1/1/1

[SwitchA-vlan2] quit

[SwitchA] interface vlan-interface 2

[SwitchA-Vlan-interface2] ip address 168.10.1.1 255.255.255.0

[SwitchA-Vlan-interface2] pim dm

[SwitchA-Vlan-interface2] quit

# Configure the IP address of VLAN-interface 10 as 168.20.1.1/24, and enable PIM-DM and IGMP.

[SwitchA] vlan 10

[SwitchA-vlan10] quit

[SwitchA] interface vlan-interface 10

[SwitchA-Vlan-interface10] ip address 168.20.1.1 255.255.255.0

[SwitchA-Vlan-interface10] pim dm

[SwitchA-Vlan-interface10] igmp enable

[SwitchA-Vlan-interface10] quit

# Add Ethernet 1/1/10 to VLAN 10.

[SwitchA-vlan10] port interface ethernet1/1/10

2)         Configure switch B.

# Enabling IGMP snooping.

<SwitchB> system-view

System View: return to User View with Ctrl+Z.

[SwitchB] igmp-snooping enable

[SwitchB] vlan 10 20 30

# Configure VLAN 10 as a multicast VLAN and enable IGMP Snooping.

[SwitchB] vlan 10

[SwitchB-vlan10] multicast-vlan enable

[SwitchB-vlan10] igmp-snooping enable

[SwitchB-vlan10] quit

# Add Ethernet 1/1/10 to VLAN 10.

[SwitchB-vlan10] port interface ethernet1/1/10

# Enable IGMP Snooping in VLAN 20 and VLAN 30 respectively.

[SwitchB] vlan 20

[SwitchB-vlan 20] igmp-snooping enable

[SwitchB-vlan 20] quit

[SwitchB] vlan 30

[SwitchB-vlan 30] igmp-snooping enable

[SwitchB-vlan 30] quit

# Configure VLAN 20 and VLAN 30 as sub-VLANs of VLAN 10.

[SwitchB] multicast-vlan 10 subvlan 20 30

# Add Ethernet 1/1/1 to VLAN 20 and add Ethernet 1/1/2 to VLAN 30.

[SwitchB] vlan 20

[SwitchB-vlan 20] port interface ethernet1/1/1

[SwitchB-vlan 20]quit

[SwitchB] vlan 30

[SwitchB-vlan 30] port interface ethernet1/1/2

1.7  Disabling Layer 3 Multicast

For a switch, Layer 3 multicast is configured in VLAN interface view, so the configuration has effect on all the ports in this VLAN. But in some cases, you need to disable multicast in a specific VLAN on a specific port. For example, in a ring network with multicast VLAN PLUS enabled, inter-VLAN forwarding is implemented by Layer 3 multicast. If a multicast VLAN is configured on two devices on the ring network, the same multicast stream is forwarded to the multicast sub-VLANs on different devices. As a result, duplicate multicast streams will occur in the same ring. To avoid such redundant multicast streams, you can disable the multicast function in a VLAN on a specific port, so that a multicast stream can be flooded only in one multicast VLAN.

Follow these steps to disable Layer-3 multicast on a port:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet port view/RPR logical port view

interface interface-type interface-number

Required

Disable layer-3 multicast in a VLAN on the current port

l3multicast disable [ vlan vlan-id-list ]

Required

By default, whether this function is enabled depends on VLAN configuration.

 

  Caution:

l      Boards with the suffix B or D and Type C boards with FE ports do not support vlan vlan-id-list in this command. The l3multicast disable command disables layer-3 multicast in all the VLANs on the current port.

l      For aggregation ports, you need to synchronize configuration manually.

l      This command does not check validity of VLANs. Even if the specified VLAN does not exist or the port does not belong to the specified VLAN, this command can be successfully configured.

l      If you configure this command on a port of an XP4 board, this configuration takes effect also on neighboring ports (ports 1 and 2 are neighboring ports; and port 3 and 4 are neighboring ports).

 

  • 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 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
新华三官网