Professional Documents
Culture Documents
06-Multicast VLAN Configuration
06-Multicast VLAN Configuration
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
1-1
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
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.
Switch A
WorkStation
Eth1/1/ 10
Eth1/1/ 10
Switch B
Eth1/1/1 Eth1/1/2
Receiver VLAN 2
Receiver VLAN 3
1-2
# 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
1-3
# 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
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
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.
Note: Unless otherwise specified, the multicast VLAN feature mentioned in this section refers to multicast VLAN PLUS.
1-5
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
Switch A
WorkStation
Eth1/1/ 10
Eth1/1/ 10
Switch B
Eth1/1/1 Eth1/1/2
Receiver VLAN 20
Receiver VLAN 30
# 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
2)
Configure switch B.
1-7
# 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
To do Enter system view Enter Ethernet port view/RPR logical port view Disable layer-3 multicast in a VLAN on the current port
Remarks
Required Required
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