Sunteți pe pagina 1din 13

i

Table of Contents
1 Multicast VLAN Configuration1-1
Introduction to Multicast VLAN1-1
Multicast VLAN Configuration Task List1-3
Configuring Sub-VLAN-Based Multicast VLAN 1-3
Configuration Prerequisites1-3
Configuring Sub-VLAN-Based Multicast VLAN1-3
Configuring Port-Based Multicast VLAN1-4
Configuration Prerequisites1-4
Configuring User Port Attributes1-4
Configuring Multicast VLAN Ports1-5
Displaying and Maintaining Multicast VLAN1-6
Multicast VLAN Configuration Examples1-6
Sub-VLAN-Based Multicast VLAN Configuration1-6
Port-Based Multicast VLAN Configuration1-9


1-1
1 Multicast VLAN Configuration
When configuring multicast VLAN, go to these sections for information you are interested in:
Introduction to Multicast VLAN
Multicast VLAN Configuration Task List
Configuring Sub-VLAN-Based Multicast VLAN
Configuring Port-Based Multicast VLAN
Displaying and Maintaining Multicast VLAN
Multicast VLAN Configuration Examples
Introduction to Multicast VLAN
As shown in Figure 1-1, in the traditional multicast programs-on-demand mode, when hosts, Host A,
Host B and Host C, belonging to different VLANs require multicast programs on demand service, the
Layer 3 device, Router A, needs to forward a separate copy of the multicast traffic in each user VLAN to
the Layer 2 device, Switch A. This results in not only waste of network bandwidth but also extra burden
on the Layer 3 device.
Figure 1-1 Multicast transmission without multicast VLAN


The multicast VLAN feature configured on the Layer 2 device is the solution to this issue. With the
multicast VLAN feature, the Layer 3 device needs to replicate the multicast traffic only in the multicast
VLAN instead of making a separate copy of the multicast traffic in each user VLAN. This saves the
network bandwidth and lessens the burden of the Layer 3 device.
The multicast VLAN feature can be implemented in two approaches, as described below:
Sub-VLAN-based multicast VLAN
As shown in Figure 1-2, Host A, Host B and Host C are in three different user VLANs. On Switch A,
configure VLAN 10 as a multicast VLAN, configure all the user VLANs as sub-VLANs of this multicast
VLAN, and enable IGMP Snooping in the multicast VLAN.

1-2
Figure 1-2 Sub-VLAN-based multicast VLAN
Source Router A
IGMP querier
VLAN 2
VLAN 3
VLAN 4
Switch A
Receiver
Host A
Receiver
Host B
Receiver
Host C
Multicast packets
VLAN 2
VLAN 3
VLAN 4
VLAN 10 (Multicast VLAN)


After the configuration, IGMP Snooping manages router ports in the multicast VLAN and member ports
in the sub-VLANs. When forwarding multicast data to Switch A, Router A needs to send only one copy
of multicast traffic to Switch A in the multicast VLAN, and Switch A distributes the traffic to the multicast
VLANs sub-VLANs that contain receivers.
Port-based multicast VLAN
As shown in Figure 1-3, Host A, Host B and Host C are in three different user VLANs. All the user ports
(ports with attached hosts) on Switch A are hybrid ports. On Switch A, configure VLAN 10 as a multicast
VLAN, assign all the user ports to this multicast VLAN, and enable IGMP Snooping in the multicast
VLAN and all the user VLANs.
Figure 1-3 Port-based multicast VLAN


After the configuration, upon receiving an IGMP message on a user port, Switch A tags the message
with the multicast VLAN ID and relays it to the IGMP querier, so that IGMP Snooping can uniformly
manage the router ports and member ports in the multicast VLAN. When forwarding multicast data to
Switch A, Router A needs to send only one copy of multicast traffic to Switch A in the multicast VLAN,
and Switch A distributes the traffic to all the member ports in the multicast VLAN.


1-3

For information about IGMP Snooping, router ports, and member ports, refer to IGMP Snooping
Configuration in the IP Multicast Volume.
For information about VLAN tags, refer to VLAN Configuration in the Access Volume.

Multicast VLAN Configuration Task List
Complete the following tasks to configure multicast VLAN:
Task Remarks
Configuring Sub-VLAN-Based Multicast VLAN
Configuring User Port Attributes
Configuring Port-Based
Multicast VLAN
Configuring Multicast VLAN Ports
Required
Use either approach.


If you have configured both sub-VLAN-based multicast VLAN and port-based multicast VLAN on a
device, the port-based multicast VLAN configuration is given preference.

Configuring Sub-VLAN-Based Multicast VLAN
Configuration Prerequisites
Before configuring sub-VLAN-based multicast VLAN, complete the following tasks:
Create VLANs as required
Enable IGMP Snooping in the VLAN to be configured as a multicast VLAN
Configuring Sub-VLAN-Based Multicast VLAN
In this approach, you need to configure a VLAN as a multicast VLAN, and then configure user VLANs as
sub-VLANs of the multicast VLAN.
Follow these steps to configure sub-VLAN-based multicast VLAN:
To do Use the command Remarks
Enter system view system-view
Configure the specified VLAN
as a multicast VLAN and enter
multicast VLAN view
multicast-vlan vlan-id
Required
Not a multicast VLAN by default
Configure the specified
VLAN(s) as sub-VLAN(s) of the
multicast VLAN
subvlan vlan-list
Required
By default, a multicast VLAN
has no sub-VLANs.


1-4

You cannot configure multicast VLAN on a device with IP multicast routing enabled.
The VLAN to be configured as a multicast VLAN must exist.
The VLANs to be configured as sub-VLANs of the multicast VLAN must exist and must not be
sub-VLANs of another multicast VLAN.
The total number of sub-VLANs of a multicast VLAN must not exceed the maximum number the
system can support (an S7500E series Ethernet switch supports up to five multicast VLANs, and
supports up to 4000 sub-VLANs for each multicast VLAN. The total number of sub-VLANs for all
multicast VLANs on the switch cannot exceed 4000.).

Configuring Port-Based Multicast VLAN
When configuring port-based multicast VLAN, you need to configure the attributes of each user port and
then assign the ports to the multicast VLAN.


A user port can be configured as a multicast VLAN port only if it is of the Ethernet or Layer 2 aggregate
interface type.

Configuration Prerequisites
Before configuring port-based multicast VLAN, complete the following tasks:
Create VLANs as required
Enable IGMP Snooping in the VLAN to be configured as a multicast VLAN
Enable IGMP Snooping in all the user VLANs
Configuring User Port Attributes
Configure the user ports as hybrid ports that permit packets of the specified user VLAN to pass, and
configure the user VLAN to which the user ports belong as the default VLAN.
Configure the user ports to permit packets of the multicast VLAN to pass and untag the packets. Thus,
upon receiving multicast packets tagged with the multicast VLAN ID from the upstream device, the
Layer 2 device untags the multicast packets and forwards them to its downstream device.
Follow these steps to configure user port attributes:

1-5
To do... Use the command... Remarks
Enter system view system-view
interface interface-type
interface-number
Enter interface view or port
group view
port-group {manual
port-group-name |
aggregation agg-id }
Required
Use either command
Configure the user port link
type as hybrid
port link-type hybrid
Required
Access by default
Specify the user VLAN that
comprises the current user
port(s) as the default VLAN
port hybrid pvid vlan vlan-id
Required
VLAN 1 by default
Configure the current user
port(s) to permit packets of the
specified multicast VLAN(s) to
pass and untag the packets
port hybrid vlan vlan-id-list
untagged
Required
By default, a hybrid port permits
only packets of VLAN 1 to pass.


For details about the port link-type, port hybrid pvid vlan, and port hybrid vlan commands, refer to
VLAN Commands in the Access Volume.

Configuring Multicast VLAN Ports
In this approach, you need to configure a VLAN as a multicast VLAN and then assign user ports to this
multicast VLAN.
Follow these steps to configure multicast VLAN ports:
To do... Use the command... Remarks
Enter system view system-view
Configure the specified VLAN
as a multicast VLAN and enter
multicast VLAN view
multicast-vlan vlan-id
Required
Not a multicast VLAN by default
Assign ports to the multicast
VLAN
port interface-list
Required
By default, a multicast VLAN has no
ports.


You cannot configure multicast VLAN on a device with multicast routing enabled.
The VLAN to be configured as a multicast VLAN must exist.
A port can belong to only one multicast VLAN.


1-6
Displaying and Maintaining Multicast VLAN
To do Use the command Remarks
Display information about a
multicast VLAN
display multicast-vlan
[ vlan-id ]
Available in any view

Multicast VLAN Configuration Examples
Sub-VLAN-Based Multicast VLAN Configuration
Network requirements
Router A connects to a multicast source through GigabitEthernet 1/0/1 and to Switch A, through
GigabitEthernet 1/0/2.
IGMPv2 is required on Router A, and IGMPv2 Snooping is required on Switch A. Router A is the
IGMP querier.
Switch As GigabitEthernet 2/0/1 belongs to VLAN 10, GigabitEthernet 2/0/2 through
GigabitEthernet 2/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host C
are attached to GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 of Switch A respectively.
The multicast source sends multicast data to multicast group 224.1.1.1. Host A, Host B, and Host C
are receivers of the multicast group.
Configure the sub-VLAN-based multicast VLAN feature so that Router A just sends multicast data
to Switch A through the multicast VLAN and Switch A forwards the traffic to the receivers that
belong to different user VLANs.
Network diagram
Figure 1-4 Network diagram for sub-VLAN-based multicast VLAN configuration
Source
Receiver
Host A
VLAN 2
GE2/0/2
GE2/0/3
GE2/0/4
Switch A
IGMP querier
Router A
GE2/0/1
1.1.1.2/24
GE2/0/2
10.110.1.1/24
1.1.1.1/24
Receiver
Host B
VLAN 3
Receiver
Host C
VLAN 4
GE2/0/1


Configuration procedure
1) Configure IP addresses

1-7
Configure an IP address and subnet mask for each interface as per Figure 1-4. The detailed
configuration steps are omitted here.
2) Configure Router A
#Enable IP multicast routing, enable PIM-DM on each interface and enable IGMP on the host-side
interface GigabitEthernet 2/0/2.
<Rout er A> syst em- vi ew
[ Rout er A] mul t i cast r out i ng- enabl e
[ Rout er A] i nt er f ace gi gabi t et her net 2/ 0/ 1
[ Rout er A- Gi gabi t Et her net 2/ 0/ 1] pi mdm
[ Rout er A- Gi gabi t Et her net 2/ 0/ 1] qui t
[ Rout er A] i nt er f ace gi gabi t et her net 2/ 0/ 2
[ Rout er A- Gi gabi t Et her net 2/ 0/ 2] pi mdm
[ Rout er A- Gi gabi t Et her net 2/ 0/ 2] i gmp enabl e
3) Configure Switch A
#Enable IGMP Snooping globally.
<Swi t chA> syst em- vi ew
[ Swi t chA] i gmp- snoopi ng
[ Swi t chA- i gmp- snoopi ng] qui t
#Create VLAN 2 and assign GigabitEthernet 2/0/2 to this VLAN.
[ Swi t chA] vl an 2
[ Swi t chA- vl an2] por t gi gabi t et her net 2/ 0/ 2
[ Swi t chA- vl an2] qui t
The configuration for VLAN 3 and VLAN 4 is similar to the configuration for VLAN 2.
#Create VLAN 10, assign GigabitEthernet 2/0/1 to this VLAN and enable IGMP Snooping in the VLAN.
[ Swi t chA] vl an 10
[ Swi t chA- vl an10] por t gi gabi t et her net 2/ 0/ 1
[ Swi t chA- vl an10] i gmp- snoopi ng enabl e
[ Swi t chA- vl an10] qui t
#Configure VLAN 10 as a multicast VLAN and configure VLAN 2 through VLAN 4 as its sub-VLANs.
[ Swi t chA] mul t i cast - vl an 10
[ Swi t chA- mvl an- 10] subvl an 2 t o 4
[ Swi t chA- mvl an- 10] qui t
4) Verify the configuration
#Display information about the multicast VLAN.
[ Swi t chA] di spl ay mul t i cast - vl an
Tot al 1 mul t i cast - vl an( s)

Mul t i cast vl an 10
subvl an l i st :
vl an 2- 4
por t l i st :
no por t
#View the IGMP Snooping multicast group information on Switch A.
[ Swi t chA] di spl ay i gmp- snoopi ng gr oup

1-8
Tot al 4 I P Gr oup( s) .
Tot al 4 I P Sour ce( s) .
Tot al 4 MAC Gr oup( s) .

Por t f l ags: D- Dynami c por t , S- St at i c por t , C- Copy por t
Subvl an f l ags: R- Real VLAN, C- Copy VLAN
Vl an( i d) : 2.
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .
Rout er por t ( s) : t ot al 0 por t .
I P gr oup( s) : t he f ol l owi ng i p gr oup( s) mat ch t o one mac gr oup.
I P gr oup addr ess: 224. 1. 1. 1
( 0. 0. 0. 0, 224. 1. 1. 1) :
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 2 ( D)
MAC gr oup( s) :
MAC gr oup addr ess: 0100- 5e01- 0101
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 2

Vl an( i d) : 3.
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .
Rout er por t ( s) : t ot al 0 por t .
I P gr oup( s) : t he f ol l owi ng i p gr oup( s) mat ch t o one mac gr oup.
I P gr oup addr ess: 224. 1. 1. 1
( 0. 0. 0. 0, 224. 1. 1. 1) :
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 3 ( D)
MAC gr oup( s) :
MAC gr oup addr ess: 0100- 5e01- 0101
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 3

Vl an( i d) : 4.
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .
Rout er por t ( s) : t ot al 0 por t .
I P gr oup( s) : t he f ol l owi ng i p gr oup( s) mat ch t o one mac gr oup.
I P gr oup addr ess: 224. 1. 1. 1
( 0. 0. 0. 0, 224. 1. 1. 1) :
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 4 ( D)
MAC gr oup( s) :
MAC gr oup addr ess: 0100- 5e01- 0101

1-9
Host por t ( s) : t ot al 1 por t .
GE2/ 0/ 4

Vl an( i d) : 10.
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .
Rout er por t ( s) : t ot al 1 por t .
GE2/ 0/ 1 ( D)
I P gr oup( s) : t he f ol l owi ng i p gr oup( s) mat ch t o one mac gr oup.
I P gr oup addr ess: 224. 1. 1. 1
( 0. 0. 0. 0, 224. 1. 1. 1) :
Host por t ( s) : t ot al 0 por t .
MAC gr oup( s) :
MAC gr oup addr ess: 0100- 5e01- 0101
Host por t ( s) : t ot al 0 por t .
As shown above, IGMP Snooping is maintaining the router port in the multicast VLAN (VLAN 10) and
the member ports in the sub-VLANs (VLAN 2 through VLAN 4).
Port-Based Multicast VLAN Configuration
Network requirements
As shown in Figure 1-5, Router A connects to a multicast source (Source) through GigabitEthernet
2/0/1, and to Switch A through GigabitEthernet 2/0/2.
IGMPv2 is required on Router A. IGMPv2 Snooping is required on Switch A. Router A acts as the
IGMP querier.
Switch As GigabitEthernet 2/0/1 belongs to VLAN 10, GigabitEthernet 2/0/2 through
GigabitEthernet 2/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host C
are attached to GigabitEthernet 2/0/2 through GigabitEthernet 2/0/4 of Switch A respectively.
The multicast source sends multicast data to multicast group 224.1.1.1. Host A, Host B, and Host C
are receivers of the multicast group.
Configure the port-based multicast VLAN feature so that Router A just sends multicast data to
Switch A through the multicast VLAN and Switch A forwards the multicast data to the receivers that
belong to different user VLANs.

1-10
Network diagram
Figure 1-5 Network diagram for port-based multicast VLAN configuration
Source
Receiver
Host A
VLAN 2
GE2/0/2
GE2/0/3
GE2/0/4
Switch A
IGMP querier
Router A
GE2/0/1
1.1.1.2/24
GE2/0/2
10.110.1.1/24
1.1.1.1/24
Receiver
Host B
VLAN 3
Receiver
Host C
VLAN 4
GE2/0/1


Configuration procedure
1) Configure IP addresses
Configure the IP address and subnet mask for each interface as per Figure 1-5. The detailed
configuration steps are omitted here.
2) Configure Router A
#Enable IP multicast routing, enable PIM-DM on each interface, and enable IGMP on the host-side
interface GigabitEthernet 2/0/2.
<Rout er A> syst em- vi ew
[ Rout er A] mul t i cast r out i ng- enabl e
[ Rout er A] i nt er f ace gi gabi t et her net 2/ 0/ 1
[ Rout er A- Gi gabi t Et her net 2/ 0/ 1] pi mdm
[ Rout er A- Gi gabi t Et her net 2/ 0/ 1] qui t
[ Rout er A] i nt er f ace gi gabi t et her net 2/ 0/ 2
[ Rout er A- Gi gabi t Et her net 2/ 0/ 2] pi mdm
[ Rout er A- Gi gabi t Et her net 2/ 0/ 2] i gmp enabl e
3) Configure Switch A
#Enable IGMP Snooping globally.
<Swi t chA> syst em- vi ew
[ Swi t chA] i gmp- snoopi ng
[ Swi t chA- i gmp- snoopi ng] qui t
#Create VLAN 10, assign GigabitEthernet 2/0/1 to VLAN 10, and enable IGMP Snooping in this VLAN.
[ Swi t chA] vl an 10
[ Swi t chA- vl an10] por t gi gabi t et her net 2/ 0/ 1
[ Swi t chA- vl an10] i gmp- snoopi ng enabl e
[ Swi t chA- vl an10] qui t
#Create VLAN 2 and enable IGMP Snooping in the VLAN.

1-11
[ Swi t chA] vl an 2
[ Swi t chA- vl an2] i gmp- snoopi ng enabl e
[ Swi t chA- vl an2] qui t
The configuration for VLAN 3 and VLAN 4 is similar. The detailed configuration steps are omitted.
#Configure GigabitEthernet 2/0/2 as a hybrid port. Configure VLAN 2 as the default VLAN. Configure
GigabitEthernet 2/0/2 to permit packets of VLAN 2 and VLAN 10 to pass and untag the packets when
forwarding them.
[ Swi t chA] i nt er f ace gi gabi t et her net 2/ 0/ 2
[ Swi t chA- Gi gabi t Et her net 2/ 0/ 2] por t l i nk- t ype hybr i d
[ Swi t chA- Gi gabi t Et her net 2/ 0/ 2] por t hybr i d pvi d vl an 2
[ Swi t chA- Gi gabi t Et her net 2/ 0/ 2] por t hybr i d vl an 2 unt agged
[ Swi t chA- Gi gabi t Et her net 2/ 0/ 2] por t hybr i d vl an 10 unt agged
[ Swi t chA- Gi gabi t Et her net 2/ 0/ 2] qui t
The configuration for GigabitEthernet 2/0/3 and GigabitEthernet 2/0/4 is similar. The detailed
configuration steps are omitted.
#Configure VLAN 10 as a multicast VLAN.
[ Swi t chA] mul t i cast - vl an 10
#Assign GigabitEthernet 2/0/2 and GigabitEthernet 2/0/4 to VLAN 10.
[ Swi t chA- mvl an- 10] por t gi gabi t et her net 2/ 0/ 2 t o gi gabi t et her net 2/ 0/ 4
[ Swi t chA- mvl an- 10] qui t
4) Verify the configuration
#View the multicast VLAN information on Switch A.
[ Swi t chA] di spl ay mul t i cast - vl an
Tot al 1 mul t i cast - vl an( s)

Mul t i cast vl an 10
subvl an l i st :
no subvl an
por t l i st :
GE2/ 0/ 2 GE2/ 0/ 3 GE2/ 0/ 4
#View the IGMP Snooping multicast group information on Switch A.
[ Swi t chA] di spl ay i gmp- snoopi ng gr oup
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .

Por t f l ags: D- Dynami c por t , S- St at i c por t , C- Copy por t
Subvl an f l ags: R- Real VLAN, C- Copy VLAN
Vl an( i d) : 10.
Tot al 1 I P Gr oup( s) .
Tot al 1 I P Sour ce( s) .
Tot al 1 MAC Gr oup( s) .
Rout er por t ( s) : t ot al 1 por t .
GE2/ 0/ 1 ( D)
I P gr oup( s) : t he f ol l owi ng i p gr oup( s) mat ch t o one mac gr oup.

1-12
I P gr oup addr ess: 224. 1. 1. 1
( 0. 0. 0. 0, 224. 1. 1. 1) :
Host por t ( s) : t ot al 3 por t .
GE2/ 0/ 2 ( D)
GE2/ 0/ 3 ( D)
GE2/ 0/ 4 ( D)
MAC gr oup( s) :
MAC gr oup addr ess: 0100- 5e01- 0101
Host por t ( s) : t ot al 3 por t .
GE2/ 0/ 2
GE2/ 0/ 3
GE2/ 0/ 4
As shown above, IGMP Snooping is maintaining the router ports and member ports in VLAN 10.

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