You are on page 1of 10

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Table of Contents

Table of Contents
Chapter 1 Multicast VLAN Configuration.................................................................................... 1-1 1.1 Multicast VLAN Overview .................................................................................................. 1-1 1.2 Configuring Multicast VLAN............................................................................................... 1-1 1.3 Multicast VLAN Configuration Examples........................................................................... 1-2 1.4 Introduction to Multicast VLAN PLUS ................................................................................ 1-4 1.5 Configuring Multicast VLAN PLUS .................................................................................... 1-5 1.5.1 Configuration Prerequisites..................................................................................... 1-5 1.5.2 Configuring Multicast VLAN PLUS.......................................................................... 1-5 1.6 Multicast VLAN PLUS Configuration Examples ................................................................ 1-6 1.7 Disabling Layer 3 Multicast................................................................................................ 1-8

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

Chapter 1 Multicast VLAN Configuration


When configuring IGMP Snooping, go to the following sections for the information you are interested in: Multicast VLAN Overview Configuring Multicast VLAN Multicast VLAN Configuration Examples Introduction to Multicast VLAN PLUS Configuring Multicast VLAN PLUS Multicast VLAN PLUS Configuration Examples 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 Enter system view Enable IGMP Snooping in system view Enter VLAN view Enable IGMP Snooping in VLAN view Enable multicast VLAN Quit VLAN view Enter Ethernet port view Use the command system-view igmp-snooping enable vlan vlan-id igmp-snooping enable service-type multicast quit interface interface-type interface-number Remarks Required Required Required

1-1

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

To do Define the port type to hybrid Add the port to corresponding VLANs

Use the command port link-type hybrid port hybrid vlan vlan-id-list untagged

Remarks Required Required

Note: A port can belong to only one multicast VLAN. A port connected to user terminals must be a hybrid port that untags multicast VLAN packets. The system supports up to three multicast VLANs.

1.3 Multicast VLAN Configuration Examples


I. Network requirements
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. 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. Switch B connects to two multicast receiver hosts in VLAN 2 and VLAN 3 respectively. 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


Eth1/1/1

Switch A
WorkStation

Eth1/1/ 10

Eth1/1/ 10

Switch B
Eth1/1/1 Eth1/1/2

Receiver VLAN 2

Receiver VLAN 3

Figure 1-1 Network diagram for multicast VLAN configuration

1-2

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 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

1-3

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

# 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.

1-4

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

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 PLUSenabled 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... Enter system view Enable IGMP snooping Enter VLAN view Configure the VLAN as a multicast VLAN Enable IGMP snooping in the multicast VLAN Return to system view Configure a VLAN as a sub-VLAN of a multicast VLAN Enter VLAN view Enable IGMP snooping in the sub-VLAN Use the command system-view igmp-snooping enable vlan vlan-id multicast-vlan enable igmp-snooping enable quit multicast-vlan vlan-id subvlan vlan-id vlan vlan-id igmp-snooping enable Required Required Required Required Required Remarks

1-5

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

Note: A multicast VLAN interconnects with Layer 3 devices. Sub-VLANs are connected with users. The device supports up to five multicast VLANs. The device supports up to 64 sub-VLANs for a multicast VLAN. 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. A multicast VLAN cannot be a sub-VLAN. A sub-VLAN belongs to only one multicast VLAN at the same time. Before configuring a multicast sub-VLAN, you must configure the corresponding multicast VLAN. Configure a multicast VLAN before enabling IGMP Snooping. 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
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. 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. Switch B connects to two multicast receiver hosts in VLAN 20 and VLAN 30 respectively. It is required to configure the multicast VLAN PLUS, so that multicast traffic is delivered to the two receivers through multicast VLAN 10.

1-6

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

II. Network diagram


Eth1/1/1

Switch A
WorkStation

Eth1/1/ 10

Eth1/1/ 10

Switch B
Eth1/1/1 Eth1/1/2

Receiver VLAN 20

Receiver VLAN 30

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.
1-7

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

# 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:
1-8

Operation Manual Multicast VLAN H3C S9500 Series Routing Switches

Chapter 1 Multicast VLAN Configuration

To do Enter system view Enter Ethernet port view/RPR logical port view Disable layer-3 multicast in a VLAN on the current port

Use the command system-view interface interface-type interface-number

Remarks

Required Required

l3multicast disable [ vlan vlan-id-list ]

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

Caution: 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. For aggregation ports, you need to synchronize configuration manually. 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. 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).

1-9

You might also like