Sunteți pe pagina 1din 11

Operation Manual – Multicast VLAN

Quidway S8500 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 Example............................................................................. 1-2
1.4 Introduction to Multicast VLAN Plus .................................................................................. 1-5
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 Example..................................................................... 1-6
1.7 Disabling Layer 3 Multicast................................................................................................ 1-9
1.7.1 Configuration Prerequisites..................................................................................... 1-9
1.7.2 Disabling Layer-3 Multicast on a Port ..................................................................... 1-9

Huawei Technologies Proprietary

i
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

Chapter 1 Multicast VLAN Configuration

1.1 Multicast VLAN Overview


Based on the traditional multicast on demand, 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 —

interface interface-type
Enter Ethernet port view —
interface-number
Define the port type to hybrid port link-type hybrid Required
port hybrid vlan
Add the port to corresponding VLANs Required
vlan-id-list untagged

Huawei Technologies Proprietary

1-1
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

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

1.3 Multicast VLAN Configuration Example


I. Network requirements

Configure a multicast VLAN, so that users in VLAN 2 and VLAN 3 receive multicast
flows through multicast VLAN 10.

Table 1-1 Device number and description

Device Description Remarks


The IP address of VLAN-interface 2 is
168.10.1.1/24. The port E1/1/1 belongs to VLAN
2 and is connected to the workstation.
Enable PIM-DM on VLAN 2.
Switch A Layer 3 switch
The IP address of VLAN-interface 10 is
168.20.1.1/24. The port E1/1/10 belongs to
VLAN 10 and is connected to Switch B
Enable PIM-DM and IGMP on VLAN 10

VLAN 2 contains the port E1/1/1 and VLAN 3


contains the port E1/1/2. The ports E1/1/1 and
Switch B Layer 2 switch E1/1/2 are connected to PC1 and PC2
respectively.
The port E1/1/10 is connected to Switch A.

PC 1 User 1 PC1 is connected to the port E1/1/1 of Switch B.


PC 2 User 2 PC2 is connected to the port E1/1/2 of Switch B.

Huawei Technologies Proprietary

1-2
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

II. Network diagram

SWITCH A
VLAN 2
E1/1/1 168.10.1.1

VLAN 10
168.20.1.1
WorkStation E1/1/10

SWITCH B

E1/1/1 E1/1/2
VLAN 20 VLAN 30

PC1 PC2

Figure 1-1 Network diagram for multicast VLAN configuration

III. Configuration procedure

1) Configure Switch A
# Configure the IP address of VLAN-interface 2 to 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] 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 to 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

Huawei Technologies Proprietary

1-3
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

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. Make
the port carry no VLAN tag when it transmits 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. Make
the port carry no VLAN tag when it transmits 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

Huawei Technologies Proprietary

1-4
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

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


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
multicast-vlan enable Required
VLAN

Enable IGMP snooping in the


igmp-snooping enable Required
multicast VLAN

Return to system view quit —


Configure a VLAN as a sub-VLAN of a multicast-vlan vlan-id
Required
multicast VLAN subvlan vlan-id
Enter VLAN view vlan vlan-id —

Huawei Technologies Proprietary

1-5
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

To do... Use the command… Remarks


Enable IGMP snooping in the
igmp-snooping enable Required
sub-VLAN

Note:
z A multicast VLAN interconnects with Layer 3 devices.
z Sub-VLANs are connected with users.
z The device supports up to five multicast VLANs.
z The device supports up to 64 sub-VLANs for a multicast VLAN.
z 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.
z A multicast VLAN cannot be a sub-VLAN. A sub-VLAN belongs to only one multicast
VLAN at the same time.
z Before configuring a multicast sub-VLAN, you must configure the corresponding
multicast VLAN.
z Configure a multicast VLAN before enabling IGMP Snooping.
z 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 Example


I. Network requirements

Configure multicast VLAN 10 to enable VLAN 20 and VLAN 30 to receive multicast


traffic through VLAN 10.

Huawei Technologies Proprietary

1-6
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

Table 1-2 Device ID and description

Device Description Remarks


The IP address of VLAN 2 interface is
168.10.1.1/24. E1/1/1 belongs to VLAN 2 and is
connected with a work station.
Switch A Layer-3 switch The IP address of VLAN 10 interface is
168.20.1.1/24. E1/1/10 belongs to VLAN 10 and
is connected with Switch B.
PIM-DM and IGMP are enabled in VLAN 10.

VLAN 20 contains E1/1/1. and VLAN 30


contains E1/1/2. These two ports are connected
Switch B Layer 2 switch with PC1 and PC2 respectively.
E1/1/10 belongs to VLAN 10 (multicast VLAN)
and is connected with Switch A.
PC 1 User 1 Connected with E1/1/1 of Switch B
PC 2 User 2 Connected with E1/1/2 of Switch B

II. Network diagram

SWITCH A
VLAN 2 E1/1/1
168.10.1.1

E1/1/10
VLAN 10
WorkStation 168.20.1.1 E1/1/10

SWITCH B VLAN 10

E1/1/1 E1/1/2
VLAN 20 VLAN 30

PC1 PC2

Figure 1-2 Network diagram for multicast VLAN Plus configuration

III. Configuration procedure

Assume that the IP address has been configured and the devices have been connected
correctly.
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] interface vlan-interface 2

Huawei Technologies Proprietary

1-7
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

[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] 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 Ethernet1/1/1 to VLAN 20 and add Ethernet1/1/2 to VLAN 30.


[SwitchB] vlan 20
[SwitchB-vlan 20] port interface Ethernet1/1/1
[SwitchB-vlan 20]quit

Huawei Technologies Proprietary

1-8
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

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

1.7.1 Configuration Prerequisites

None

1.7.2 Disabling Layer-3 Multicast on a Port

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
interface interface-type
view/RPR logical port Required
interface-number
view
Required
Disable layer-3 multicast By default, whether this
l3multicast disable
in a VLAN on the current function is enabled
[ vlan vlan-id-list ]
port depends on VLAN
configuration.

Huawei Technologies Proprietary

1-9
Operation Manual – Multicast VLAN
Quidway S8500 Series Routing Switches Chapter 1 Multicast VLAN Configuration

Caution:

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

Huawei Technologies Proprietary

1-10

S-ar putea să vă placă și