Example for Connecting to the CDN Server to the IPTV Network Through Two Switches That Form a Dual-Node Cluster on the Ring Network
Solution Overview
With the rapid development of IPTV services, the IPTV platform needs to provide services to a growing number of users, who in turn raise increasingly high requirements on the reliability of the IPTV live broadcast service. IPTV is a type of video service, which means that end users have extremely high requirements on service continuity. Therefore, service continuity must be ensured during routine maintenance as well as in key event assurance and major version upgrade assurance.
Figure 3-118 shows the networking diagram of the broadcast and television network in a region. To ensure the quality of live TV, the live streams sent by the broadcast and television multicast source server must be first forwarded to the MRF transcoding server for transcoding and then forwarded by the transcoding server to receivers. The transcoding server is connected to the IPTV network through two switches that form a dual-node cluster on the ring network, thereby improving network reliability.
- Normal forwarding path for multicast streams sent by the multicast source server: Core -> PE1 -> LSW1 -> CDN -> Transcoding server
- Normal forwarding path for multicast streams transcoded by the transcoding server: Transcoding server -> CDN -> LSW1 -> PE1 -> AGG -> ACC1 and ACC2
- Normal forwarding path for unicast streams sent from the recording server to a receiver: Recording server -> CDN -> LSW1 -> PE1 -> AGG -> ACC1 or ACC2
Configuration Notes
In this example, Core, PE1, and PE2 are modular switches, and the other devices are fixed switches. All S series switch models can be used in this example.
Networking Requirements
Figure 3-119 shows the IPTV network diagram in a region. A receiver can watch live TV programs and catch-up TV programs. The network requirements are as follows:
- Multicast live streams sent by the multicast source server are first forwarded to the CDN server for transcoding and recording and then forwarded to receivers.
- Receivers can also order catch-up TV programs in unicast mode.
- Layer 3 multicast, L2/L3 mixed multicast, and IGMP snooping are deployed to forward multicast traffic.
- OSPF is used to implement traffic forwarding at Layer 3. LSW1 and LSW2 establish neighbor relationships with PE1 and PE2 respectively in area 1 of OSPF process 1. Core establishes neighbor relationships with PE1 and PE2 in area 0 of OSPF process 1.
- MSTP is deployed between CDN, LSW1, and LSW2 to prevent loops; VRRP is deployed on LSW1 and LSW2 to improve network reliability.
- To ensure access security, traffic policies are configured on LSW1 and LSW2 to restrict the access of multicast source servers.
Data Plan
Item |
Description |
---|---|
VLAN 33 |
VLAN to which users connected to ACC1 belong. |
VLAN 34 |
VLAN to which users connected to ACC2 belong. |
VLAN 88 |
VLAN used by a user to watch a catch-up TV program. |
VLAN 301 |
VLAN used by LSW1 and LSW2. |
VLAN 400 |
VLAN used after multicast live streams are transcoded. |
VLAN 530 |
VLAN used before multicast live streams are transcoded. |
Product |
Item |
Description |
---|---|---|
Core |
GE1/0/1: 66.1.1.3/24 |
Layer 3 interface connected to the multicast source server. |
GE1/0/2: 20.1.1.3/24 |
Layer 3 interface connected to PE2. |
|
GE1/0/3: 12.1.1.2/24 |
Layer 3 interface connected to PE1. |
|
LoopBack0: 1.1.1.3 |
- |
|
PE1 |
GE1/0/2: 12.1.1.1/24 |
Layer 3 interface connected to Core. |
GE1/0/3: 60.1.1.1/24 |
Layer 3 interface connected to PE2. |
|
Vlanif10: 10.1.1.1/24 (corresponding to physical interface GE1/0/1) |
Interface connected to LSW1. |
|
Vlanif11: 11.1.1.1/24 (corresponding to physical interface GE1/0/4) |
Interface connected to AGG. |
|
LoopBack0: 1.1.1.1 |
- |
|
PE2 |
GE1/0/2: 20.1.1.2/24 |
Layer 3 interface connected to Core. |
GE1/0/3: 60.1.1.2/24 |
Layer 3 interface connected to PE1. |
|
Vlanif10: 10.1.2.1/24 (corresponding to physical interface GE1/0/1) |
Interface connected to LSW2. |
|
Vlanif22: 22.1.1.2/24 (corresponding to physical interface GE1/0/4) |
Interface connected to AGG. |
|
LoopBack0: 1.1.1.2 |
- |
|
AGG |
Vlanif11: 11.1.1.8/24 (corresponding to physical interface GE0/0/4) |
Interface connected to PE1. |
Vlanif22: 22.1.1.8/24 (corresponding to physical interface GE0/0/5) |
Interface connected to PE2. |
|
Vlanif33: 33.1.1.8/24 (corresponding to physical interface GE0/0/1) |
Interface connected to ACC1. |
|
Vlanif34: 34.1.1.8/24 (corresponding to physical interface GE0/0/2) |
Interface connected to ACC2. |
|
LoopBack0: 1.1.1.4 |
- |
|
LSW1 |
Vlanif10: 10.1.1.2/24 (corresponding to physical interface GE0/0/1) |
Interface connected to PE1. |
Vlanif88: 88.1.1.7/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the recording server. |
|
Vlanif301: 31.1.1.1/24 (corresponding to physical interfaces GE0/0/3 and GE0/0/4) |
Interface connected to LSW2. GE0/0/3 and GE0/0/4 are bundled to form Eth-Trunk1. |
|
Vlanif400: 4.1.1.2/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the CDN server after transcoding. |
|
Vlanif530: 5.1.1.2/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the CDN server before transcoding. |
|
LSW2 |
Vlanif10: 10.1.2.2/24 (corresponding to physical interface GE0/0/1) |
Interface connected to PE2. |
Vlanif88: 88.1.1.5/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the recording server. |
|
Vlanif301: 31.1.1.2/24 (corresponding to physical interfaces GE0/0/3 and GE0/0/4) |
Interface connected to LSW1. GE0/0/3 and GE0/0/4 are bundled to form Eth-Trunk1. |
|
Vlanif400: 4.1.1.3/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the CDN server after transcoding. |
|
Vlanif530: 5.1.1.3/24 (corresponding to physical interface GE0/0/2) |
Interface used for communication with the CDN server before transcoding. |
Configuration Roadmap
The configuration roadmap is as follows:
- Create VLANs and add interfaces to the VLANs.
- Configure MSTP to prevent loops.
- Configure an IP address for each VLANIF interface.
- Configure VRRP to implement gateway redundancy.
- Configure OSPF to implement Layer 3 interworking.
- Configure Layer 3 multicast.
- Configure IGMP snooping to enable Layer 2 multicast.
- Configure traffic policies to control the access of multicast sources.
Procedure
- Create VLANs and add interfaces to the VLANs.# Create a VLAN on ACC1 and add related interfaces to the VLAN.
<HUAWEI> system-view [HUAWEI] sysname ACC1 [ACC1] vlan batch 33 [ACC1] interface gigabitethernet 0/0/1 [ACC1-GigabitEthernet0/0/1] description ACC1***to***AGG [ACC1-GigabitEthernet0/0/1] port link-type trunk [ACC1-GigabitEthernet0/0/1] port trunk allow-pass vlan 33 [ACC1-GigabitEthernet0/0/1] quit [ACC1] interface gigabitethernet 0/0/2 [ACC1-GigabitEthernet0/0/2] port link-type access [ACC1-GigabitEthernet0/0/2] port default vlan 33 [ACC1-GigabitEthernet0/0/2] quit [ACC1] interface gigabitethernet 0/0/3 [ACC1-GigabitEthernet0/0/3] port link-type access [ACC1-GigabitEthernet0/0/3] port default vlan 33 [ACC1-GigabitEthernet0/0/3] quit
# Create a VLAN on ACC2 and add related interfaces to the VLAN.<HUAWEI> system-view [HUAWEI] sysname ACC2 [ACC2] vlan batch 34 [ACC2] interface gigabitethernet 0/0/1 [ACC2-GigabitEthernet0/0/1] description ACC2***to***AGG [ACC2-GigabitEthernet0/0/1] port link-type trunk [ACC2-GigabitEthernet0/0/1] port trunk allow-pass vlan 34 [ACC2-GigabitEthernet0/0/1] quit [ACC2] interface gigabitethernet 0/0/2 [ACC2-GigabitEthernet0/0/2] port link-type access [ACC2-GigabitEthernet0/0/2] port default vlan 34 [ACC2-GigabitEthernet0/0/2] quit [ACC2] interface gigabitethernet 0/0/3 [ACC2-GigabitEthernet0/0/3] port link-type access [ACC2-GigabitEthernet0/0/3] port default vlan 34 [ACC2-GigabitEthernet0/0/3] quit
# Create VLANs on AGG and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname AGG [AGG] vlan batch 11 22 33 to 34 [AGG] interface gigabitethernet 0/0/1 [AGG-GigabitEthernet0/0/1] description AGG***to***ACC1 [AGG-GigabitEthernet0/0/1] port link-type trunk [AGG-GigabitEthernet0/0/1] port trunk allow-pass vlan 33 [AGG-GigabitEthernet0/0/1] quit [AGG] interface gigabitethernet 0/0/2 [AGG-GigabitEthernet0/0/2] description AGG***to***ACC2 [AGG-GigabitEthernet0/0/2] port link-type trunk [AGG-GigabitEthernet0/0/2] port trunk allow-pass vlan 34 [AGG-GigabitEthernet0/0/2] quit [AGG] interface gigabitethernet 0/0/4 [AGG-GigabitEthernet0/0/4] description AGG***to***PE1 [AGG-GigabitEthernet0/0/4] port link-type trunk [AGG-GigabitEthernet0/0/4] port trunk allow-pass vlan 11 [AGG-GigabitEthernet0/0/4] quit [AGG] interface gigabitethernet 0/0/5 [AGG-GigabitEthernet0/0/5] description AGG***to***PE2 [AGG-GigabitEthernet0/0/5] port link-type trunk [AGG-GigabitEthernet0/0/5] port trunk allow-pass vlan 22 [AGG-GigabitEthernet0/0/5] quit
# Create VLANs on PE1 and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname PE1 [PE1] vlan batch 10 to 11 [PE1] interface gigabitethernet 1/0/1 [PE1-GigabitEthernet1/0/1] description PE1***to***LSW1 [PE1-GigabitEthernet1/0/1] port link-type access [PE1-GigabitEthernet1/0/1] port default vlan 10 [PE1-GigabitEthernet1/0/1] quit [PE1] interface gigabitethernet 1/0/4 [PE1-GigabitEthernet1/0/4] description PE1***to***AGG [PE1-GigabitEthernet1/0/4] port link-type trunk [PE1-GigabitEthernet1/0/4] port trunk allow-pass vlan 11 [PE1-GigabitEthernet1/0/4] quit
# Create VLANs on PE2 and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname PE2 [PE2] vlan batch 10 22 [PE2] interface gigabitethernet 1/0/1 [PE2-GigabitEthernet1/0/1] description PE2***to***LSW2 [PE2-GigabitEthernet1/0/1] port link-type access [PE2-GigabitEthernet1/0/1] port default vlan 10 [PE2-GigabitEthernet1/0/1] quit [PE2] interface gigabitethernet 1/0/4 [PE2-GigabitEthernet1/0/4] description PE2***to***AGG [PE2-GigabitEthernet1/0/4] port link-type trunk [PE2-GigabitEthernet1/0/4] port trunk allow-pass vlan 22 [PE2-GigabitEthernet1/0/4] quit
# Create VLANs on LSW1 and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname LSW1 [LSW1] vlan batch 10 88 301 400 530 [LSW1] interface eth-trunk1 [LSW1-Eth-Trunk1] description LSW1***to***LSW2 [LSW1-Eth-Trunk1] port link-type trunk [LSW1-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530 [LSW1-Eth-Trunk1] quit [LSW1] interface gigabitethernet 0/0/3 [LSW1-GigabitEthernet0/0/3] eth-trunk 1 [LSW1-GigabitEthernet0/0/3] quit [LSW1] interface gigabitethernet 0/0/4 [LSW1-GigabitEthernet0/0/4] eth-trunk 1 [LSW1-GigabitEthernet0/0/4] quit [LSW1] interface gigabitethernet 0/0/1 [LSW1-GigabitEthernet0/0/1] description LSW1***to***PE1 [LSW1-GigabitEthernet0/0/1] port link-type access [LSW1-GigabitEthernet0/0/1] port default vlan 10 [LSW1-GigabitEthernet0/0/1] quit [LSW1] interface gigabitethernet 0/0/2 [LSW1-GigabitEthernet0/0/2] description LSW1***to***CDN [LSW1-GigabitEthernet0/0/2] port link-type trunk [LSW1-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530 [LSW1-GigabitEthernet0/0/2] quit
# Create VLANs on LSW2 and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname LSW2 [LSW2] vlan batch 10 88 301 400 530 [LSW2] interface eth-trunk1 [LSW2-Eth-Trunk1] description LSW1***to***LSW2 [LSW2-Eth-Trunk1] port link-type trunk [LSW2-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530 [LSW2-Eth-Trunk1] quit [LSW2] interface gigabitethernet 0/0/3 [LSW2-GigabitEthernet0/0/3] eth-trunk 1 [LSW2-GigabitEthernet0/0/3] quit [LSW2] interface gigabitethernet 0/0/4 [LSW2-GigabitEthernet0/0/4] eth-trunk 1 [LSW2-GigabitEthernet0/0/4] quit [LSW2] interface gigabitethernet 0/0/1 [LSW2-GigabitEthernet0/0/1] description LSW2***to***PE2 [LSW2-GigabitEthernet0/0/1] port link-type access [LSW2-GigabitEthernet0/0/1] port default vlan 10 [LSW2-GigabitEthernet0/0/1] quit [LSW2] interface gigabitethernet 0/0/2 [LSW2-GigabitEthernet0/0/2] description LSW2***to***CDN [LSW2-GigabitEthernet0/0/2] port link-type trunk [LSW2-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530 [LSW2-GigabitEthernet0/0/2] quit
# Create VLANs on CDN and add related interfaces to the VLANs.<HUAWEI> system-view [HUAWEI] sysname CDN [CDN] vlan batch 88 301 400 530 [CDN] interface gigabitethernet 0/0/1 [CDN-GigabitEthernet0/0/1] description CDN***to***LSW2 [CDN-GigabitEthernet0/0/1] port link-type trunk [CDN-GigabitEthernet0/0/1] port trunk allow-pass vlan 88 301 400 530 [CDN-GigabitEthernet0/0/1] quit [CDN] interface gigabitethernet 0/0/2 [CDN-GigabitEthernet0/0/2] description CDN***to***LSW1 [CDN-GigabitEthernet0/0/2] port link-type trunk [CDN-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530 [CDN-GigabitEthernet0/0/2] quit [CDN] interface gigabitethernet 0/0/3 [CDN-GigabitEthernet0/0/3] description CDN***to***HMS-Server [CDN-GigabitEthernet0/0/3] port link-type access [CDN-GigabitEthernet0/0/3] port default vlan 88 [CDN-GigabitEthernet0/0/3] quit [CDN] interface gigabitethernet 0/0/4 [CDN-GigabitEthernet0/0/4] description CDN***to***MRF-IN [CDN-GigabitEthernet0/0/4] port link-type access [CDN-GigabitEthernet0/0/4] port default vlan 400 [CDN-GigabitEthernet0/0/4] quit [CDN] interface gigabitethernet 0/0/5 [CDN-GigabitEthernet0/0/5] description CDN***to***MRF-OUT [CDN-GigabitEthernet0/0/5] port link-type access [CDN-GigabitEthernet0/0/5] port default vlan 530 [CDN-GigabitEthernet0/0/5] quit
- Configure MSTP. LSW1, LSW2, and CDN form a Layer 2 loop, so MSTP is used to break the loop.# Configure an MSTP region on LSW1 and enable MSTP.
[LSW1] stp region-configuration [LSW1-mst-region] region-name IPTV [LSW1-mst-region] instance 1 vlan 530 [LSW1-mst-region] instance 2 vlan 88 301 400 [LSW1-mst-region] active region-configuration [LSW1-mst-region] quit [LSW1] stp instance 1 root primary [LSW1] stp instance 2 root secondary [LSW1] stp enable //By default, MSTP is enabled globally and on interfaces. Therefore, you only need to disable MSTP on the interfaces that do not participate in MSTP calculation. [LSW1] interface gigabitethernet 0/0/1 [LSW1-GigabitEthernet0/0/1] stp disable [LSW1-GigabitEthernet0/0/1] quit
# Configure an MSTP region on LSW2 and enable MSTP.[LSW2] stp region-configuration [LSW2-mst-region] region-name IPTV [LSW2-mst-region] instance 1 vlan 530 [LSW2-mst-region] instance 2 vlan 88 301 400 [LSW2-mst-region] active region-configuration [LSW2-mst-region] quit [LSW2] stp instance 1 root secondary [LSW2] stp instance 2 root primary [LSW2] stp enable //By default, MSTP is enabled globally and on interfaces. Therefore, you only need to disable MSTP on the interfaces that do not participate in MSTP calculation. [LSW2] interface gigabitethernet 0/0/1 [LSW2-GigabitEthernet0/0/1] stp disable [LSW2-GigabitEthernet0/0/1] quit
# Configure an MSTP region on CDN and enable MSTP.[CDN] stp region-configuration [CDN-mst-region] region-name IPTV [CDN-mst-region] instance 1 vlan 530 [CDN-mst-region] instance 2 vlan 88 301 400 [CDN-mst-region] active region-configuration [CDN-mst-region] quit [CDN] stp enable //By default, MSTP is enabled globally and on interfaces. Therefore, you only need to disable MSTP on the interfaces that do not participate in MSTP calculation. [CDN] interface gigabitethernet 0/0/3 [CDN-GigabitEthernet0/0/3] stp disable [CDN-GigabitEthernet0/0/3] quit [CDN] interface gigabitethernet 0/0/4 [CDN-GigabitEthernet0/0/4] stp disable [CDN-GigabitEthernet0/0/4] quit [CDN] interface gigabitethernet 0/0/5 [CDN-GigabitEthernet0/0/4] stp disable [CDN-GigabitEthernet0/0/4] quit
- Assign an IP address to each interface.# Configure IP addresses for the interfaces on Core.
<HUAWEI> system-view [HUAWEI] sysname Core [Core] interface gigabitethernet 1/0/1 [Core-GigabitEthernet1/0/1] undo portswitch [Core-GigabitEthernet1/0/1] description Core***to***Sever [Core-GigabitEthernet1/0/1] ip address 66.1.1.3 255.255.255.0 [Core-GigabitEthernet1/0/1] quit [Core] interface gigabitethernet 1/0/2 [Core-GigabitEthernet1/0/2] undo portswitch [Core-GigabitEthernet1/0/2] description Core***to***PE2 [Core-GigabitEthernet1/0/2] ip address 20.1.1.3 255.255.255.0 [Core-GigabitEthernet1/0/2] quit [Core] interface gigabitethernet 1/0/3 [Core-GigabitEthernet1/0/3] undo portswitch [Core-GigabitEthernet1/0/3] description Core***to***PE1 [Core-GigabitEthernet1/0/3] ip address 12.1.1.2 255.255.255.0 [Core-GigabitEthernet1/0/3] quit [Core] interface LoopBack0 [Core-LoopBack0] ip address 1.1.1.3 255.255.255.255 [Core-LoopBack0] quit
# Configure IP addresses for the interfaces on PE1.[PE1] interface vlanif 10 [PE1-Vlanif10] description to***LSW1 [PE1-Vlanif10] ip address 10.1.1.1 255.255.255.0 [PE1-Vlanif10] quit [PE1] interface vlanif 11 [PE1-Vlanif11] description to***AGG [PE1-Vlanif11] ip address 11.1.1.1 255.255.255.0 [PE1-Vlanif11] quit [PE1] interface gigabitethernet 1/0/2 [PE1-GigabitEthernet1/0/2] undo portswitch [PE1-GigabitEthernet1/0/2] description PE1***to***Core [PE1-GigabitEthernet1/0/2] ip address 12.1.1.1 255.255.255.0 [PE1-GigabitEthernet1/0/2] quit [PE1] interface gigabitethernet 1/0/3 [PE1-GigabitEthernet1/0/3] undo portswitch [PE1-GigabitEthernet1/0/3] description PE1***to***PE2 [PE1-GigabitEthernet1/0/3] ip address 60.1.1.1 255.255.255.0 [PE1-GigabitEthernet1/0/3] quit [PE1] interface LoopBack0 [PE1-LoopBack0] ip address 1.1.1.1 255.255.255.255 [PE1-LoopBack0] quit
# Configure IP addresses for the interfaces on PE2.[PE2] interface vlanif 10 [PE2-Vlanif10] description to***LSW2 [PE2-Vlanif10] ip address 10.1.2.1 255.255.255.0 [PE2-Vlanif10] quit [PE2] interface vlanif 22 [PE2-Vlanif22] description to***AGG [PE2-Vlanif22] ip address 22.1.1.2 255.255.255.0 [PE2-Vlanif22] quit [PE2] interface gigabitethernet 1/0/2 [PE2-GigabitEthernet1/0/2] undo portswitch [PE2-GigabitEthernet1/0/2] description PE2***to***Core [PE2-GigabitEthernet1/0/2] ip address 20.1.1.2 255.255.255.0 [PE2-GigabitEthernet1/0/2] quit [PE2] interface gigabitethernet 1/0/3 [PE2-GigabitEthernet1/0/3] undo portswitch [PE2-GigabitEthernet1/0/3] description PE2***to***PE1 [PE2-GigabitEthernet1/0/3] ip address 60.1.1.2 255.255.255.0 [PE2-GigabitEthernet1/0/3] quit [PE2] interface LoopBack0 [PE2-LoopBack0] ip address 1.1.1.2 255.255.255.255 [PE2-LoopBack0] quit
# Configure IP addresses for the interfaces on AGG.[AGG] interface vlanif 11 [AGG-Vlanif11] description to***PE1 [AGG-Vlanif11] ip address 11.1.1.8 255.255.255.0 [AGG-Vlanif11] quit [AGG] interface vlanif 22 [AGG-Vlanif22] description to***PE2 [AGG-Vlanif22] ip address 22.1.1.8 255.255.255.0 [AGG-Vlanif22] quit [AGG] interface vlanif 33 [AGG-Vlanif33] description to***ACC1 [AGG-Vlanif33] ip address 33.1.1.8 255.255.255.0 [AGG-Vlanif33] quit [AGG] interface vlanif 34 [AGG-Vlanif34] description to***ACC2 [AGG-Vlanif34] ip address 34.1.1.8 255.255.255.0 [AGG-Vlanif34] quit [AGG] interface LoopBack0 [AGG-LoopBack0] ip address 1.1.1.4 255.255.255.255 [AGG-LoopBack0] quit
# Configure IP addresses for the interfaces on LSW1.[LSW1] interface vlanif 10 [LSW1-Vlanif10] description to***PE1 [LSW1-Vlanif10] ip address 10.1.1.2 255.255.255.0 [LSW1-Vlanif10] quit [LSW1] interface vlanif 88 [LSW1-Vlanif88] description to***HMS [LSW1-Vlanif88] ip address 88.1.1.7 255.255.255.0 [LSW1-Vlanif88] quit [LSW1] interface vlanif 301 [LSW1-Vlanif301] description to***LSW2 [LSW1-Vlanif301] ip address 31.1.1.1 255.255.255.0 [LSW1-Vlanif301] quit [LSW1] interface vlanif 400 [LSW1-Vlanif400] description to***MRF IN [LSW1-Vlanif400] ip address 4.1.1.2 255.255.255.0 [LSW1-Vlanif400] quit [LSW1] interface vlanif 530 [LSW1-Vlanif530] description to***MRF OUT [LSW1-Vlanif530] ip address 5.1.1.2 255.255.255.0 [LSW1-Vlanif530] quit
# Configure IP addresses for the interfaces on LSW2.[LSW2] interface vlanif 10 [LSW2-Vlanif10] description to***PE2 [LSW2-Vlanif10] ip address 10.1.2.2 255.255.255.0 [LSW2-Vlanif10] quit [LSW2] interface vlanif 88 [LSW2-Vlanif88] description to***HMS [LSW2-Vlanif88] ip address 88.1.1.5 255.255.255.0 [LSW2-Vlanif88] quit [LSW2] interface vlanif 301 [LSW2-Vlanif301] description to***LSW2 [LSW2-Vlanif301] ip address 31.1.1.2 255.255.255.0 [LSW2-Vlanif301] quit [LSW2] interface vlanif 400 [LSW2-Vlanif400] description to***MRF IN [LSW2-Vlanif400] ip address 4.1.1.3 255.255.255.0 [LSW2-Vlanif400] quit [LSW2] interface vlanif 530 [LSW2-Vlanif530] description to***MRF OUT [LSW2-Vlanif530] ip address 5.1.1.3 255.255.255.0 [LSW2-Vlanif530] quit
- Configure VRRP.# Configure VRRP on LSW1.
[LSW1] interface vlanif 88 [LSW1-Vlanif88] vrrp vrid 2 virtual-ip 88.1.1.100 [LSW1-Vlanif88] vrrp vrid 2 priority 120 [LSW1-Vlanif88] vrrp vrid 2 preempt-mode timer delay 20 [LSW1-Vlanif88] vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 100 [LSW1-Vlanif88] quit [LSW1] interface vlanif 400 [LSW1-Vlanif400] vrrp vrid 40 virtual-ip 4.1.1.10 [LSW1-Vlanif400] vrrp vrid 40 priority 120 [LSW1-Vlanif400] quit [LSW1] interface vlanif 530 [LSW1-Vlanif530] vrrp vrid 53 virtual-ip 5.1.1.10 [LSW1-Vlanif530] vrrp vrid 53 priority 120 [LSW1-Vlanif530] quit
# Configure VRRP on LSW2.[LSW2] interface vlanif 88 [LSW2-Vlanif88] vrrp vrid 2 virtual-ip 88.1.1.100 [LSW2-Vlanif88] quit [LSW2] interface vlanif 400 [LSW2-Vlanif400] vrrp vrid 40 virtual-ip 4.1.1.10 [LSW2-Vlanif400] quit [LSW2] interface vlanif 530 [LSW2-Vlanif530] vrrp vrid 53 virtual-ip 5.1.1.10 [LSW2-Vlanif530] quit
- Configure OSPF.# Configure OSPF on Core.
[Core] ospf 1 [Core-ospf-1] area 0 [Core-ospf-1-area-0.0.0.0] quit [Core-ospf-1] quit [Core] interface gigabitethernet 1/0/1 [Core-GigabitEthernet1/0/1] ospf enable 1 area 0.0.0.0 [Core-GigabitEthernet1/0/1] quit [Core] interface gigabitethernet 1/0/2 [Core-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0 [Core-GigabitEthernet1/0/2] quit [Core] interface gigabitethernet 1/0/3 [Core-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0 [Core-GigabitEthernet1/0/3] quit [Core] interface LoopBack0 [Core-LoopBack0] ospf enable 1 area 0.0.0.0 [Core-LoopBack0] quit
# Configure OSPF on PE1.[PE1] ospf 1 [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] area 1 [PE1-ospf-1-area-0.0.0.1] nssa [PE1-ospf-1-area-0.0.0.1] quit [PE1-ospf-1] quit [PE1] interface vlanif 10 [PE1-Vlanif10] ospf enable 1 area 0.0.0.1 [PE1-Vlanif10] quit [PE1] interface vlanif 11 [PE1-Vlanif11] ospf enable 1 area 0.0.0.0 [PE1-Vlanif11] quit [PE1] interface gigabitethernet 1/0/2 [PE1-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0 [PE1-GigabitEthernet1/0/2] quit [PE1] interface gigabitethernet 1/0/3 [PE1-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0 [PE1-GigabitEthernet1/0/3] quit [PE1] interface LoopBack0 [PE1-LoopBack0] ospf enable 1 area 0.0.0.0 [PE1-LoopBack0] quit
# Configure OSPF on PE2.[PE2] ospf 1 [PE2-ospf-1] area 0 [PE2-ospf-1-area-0.0.0.0] quit [PE2-ospf-1] area 1 [PE2-ospf-1-area-0.0.0.1] nssa [PE2-ospf-1-area-0.0.0.1] quit [PE2-ospf-1] quit [PE2] interface vlanif 10 [PE2-Vlanif10] ospf enable 1 area 0.0.0.1 [PE2-Vlanif10] quit [PE2] interface vlanif 22 [PE2-Vlanif22] ospf enable 1 area 0.0.0.0 [PE2-Vlanif22] quit [PE2] interface gigabitethernet 1/0/2 [PE2-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0 [PE2-GigabitEthernet1/0/2] quit [PE2] interface gigabitethernet 1/0/3 [PE2-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0 [PE2-GigabitEthernet1/0/3] quit [PE2] interface LoopBack0 [PE2-LoopBack0] ospf enable 1 area 0.0.0.0 [PE2-LoopBack0] quit
# Configure OSPF on AGG, and change the cost of the related interface for route backup.[AGG] ospf 1 [AGG-ospf-1] area 0 [AGG-ospf-1-area-0.0.0.0] quit [AGG-ospf-1] quit [AGG] interface vlanif 11 [AGG-Vlanif11] ospf enable 1 area 0.0.0.0 [AGG-Vlanif11] quit [AGG] interface vlanif 22 [AGG-Vlanif22] ospf cost 10000 [AGG-Vlanif22] ospf enable 1 area 0.0.0.0 [AGG-Vlanif22] quit [AGG] interface vlanif 33 [AGG-Vlanif33] ospf enable 1 area 0.0.0.0 [AGG-Vlanif33] quit [AGG] interface vlanif 34 [AGG-Vlanif34] ospf enable 1 area 0.0.0.0 [AGG-Vlanif34] quit [AGG] interface LoopBack0 [AGG-LoopBack0] ospf enable 1 area 0.0.0.0 [AGG-LoopBack0] quit
# Configure OSPF on LSW1.[LSW1] interface vlanif 10 [LSW1-Vlanif10] ospf enable 1 area 0.0.0.1 [LSW1-Vlanif10] quit [LSW1] interface vlanif 301 [LSW1-Vlanif301] ospf network-type p2p [LSW1-Vlanif301] ospf timer hello 1 [LSW1-Vlanif301] quit [LSW1] ospf 1 router-id 192.168.1.1 [LSW1-ospf-1] default-route-advertise [LSW1-ospf-1] silent-interface Vlanif88 [LSW1-ospf-1] silent-interface Vlanif530 [LSW1-ospf-1] silent-interface Vlanif400 [LSW1-ospf-1] area 1 [LSW1-ospf-1-area-0.0.0.1] network 5.1.1.0 0.0.0.255 [LSW1-ospf-1-area-0.0.0.1] network 10.1.1.0 0.0.0.255 [LSW1-ospf-1-area-0.0.0.1] network 31.1.1.0 0.0.0.255 [LSW1-ospf-1-area-0.0.0.1] network 88.1.1.0 0.0.0.255 [LSW1-ospf-1-area-0.0.0.1] nssa [LSW1-ospf-1-area-0.0.0.1] quit [LSW1-ospf-1] quit
# Configure OSPF on LSW2.[LSW2] interface vlanif 10 [LSW2-Vlanif10] ospf enable 1 area 0.0.0.1 [LSW2-Vlanif10] quit [LSW2] interface vlanif 301 [LSW2-Vlanif301] ospf network-type p2p [LSW2-Vlanif301] ospf timer hello 1 [LSW2-Vlanif301] quit [LSW2] ospf 1 router-id 192.168.1.2 [LSW2-ospf-1] default-route-advertise [LSW2-ospf-1] silent-interface Vlanif88 [LSW2-ospf-1] silent-interface Vlanif530 [LSW2-ospf-1] silent-interface Vlanif400 [LSW2-ospf-1] area 1 [LSW2-ospf-1-area-0.0.0.1] network 5.1.1.0 0.0.0.255 [LSW2-ospf-1-area-0.0.0.1] network 10.1.1.0 0.0.0.255 [LSW2-ospf-1-area-0.0.0.1] network 31.1.1.0 0.0.0.255 [LSW2-ospf-1-area-0.0.0.1] network 88.1.1.0 0.0.0.255 [LSW2-ospf-1-area-0.0.0.1] nssa [LSW2-ospf-1-area-0.0.0.1] quit [LSW2-ospf-1] quit
- Configure Layer 3 multicast.# Configure Layer 3 multicast on Core.
[Core] multicast routing-enable [Core] pim [Core-pim] static-rp 1.1.1.2 [Core-pim] quit [Core] interface gigabitethernet 1/0/1 [Core-GigabitEthernet1/0/1] pim sm [Core-GigabitEthernet1/0/1] quit [Core] interface gigabitethernet 1/0/2 [Core-GigabitEthernet1/0/2] pim sm [Core-GigabitEthernet1/0/2] quit [Core] interface gigabitethernet 1/0/3 [Core-GigabitEthernet1/0/3] pim sm [Core-GigabitEthernet1/0/3] quit
# Configure Layer 3 multicast on PE1.[PE1] multicast routing-enable [PE1] pim [PE1-pim] c-bsr LoopBack0 [PE1-pim] c-rp LoopBack0 [PE1-pim] static-rp 1.1.1.2 [PE1-pim] quit [PE1] interface vlanif 10 [PE1-Vlanif10] pim sm [PE1-Vlanif10] quit [PE1] interface vlanif 11 [PE1-Vlanif11] pim sm [PE1-Vlanif11] quit [PE1] interface gigabitethernet 1/0/2 [PE1-GigabitEthernet1/0/2] pim sm [PE1-GigabitEthernet1/0/2] quit [PE1] interface gigabitethernet 1/0/3 [PE1-GigabitEthernet1/0/3] pim sm [PE1-GigabitEthernet1/0/3] quit [PE1] interface LoopBack0 [PE1-LoopBack0] pim sm [PE1-LoopBack0] quit
# Configure Layer 3 multicast on PE2.[PE2] multicast routing-enable [PE2] pim [PE2-pim] static-rp 1.1.1.2 [PE2-pim] quit [PE2] interface vlanif 10 [PE2-Vlanif10] pim sm [PE2-Vlanif10] quit [PE2] interface vlanif 22 [PE2-Vlanif22] pim sm [PE2-Vlanif22] quit [PE2] interface gigabitethernet 1/0/2 [PE2-GigabitEthernet1/0/2] pim sm [PE2-GigabitEthernet1/0/2] quit [PE2] interface gigabitethernet 1/0/3 [PE2-GigabitEthernet1/0/3] pim sm [PE2-GigabitEthernet1/0/3] quit [PE2] interface LoopBack0 [PE2-LoopBack0] pim sm [PE2-LoopBack0] quit
# Configure Layer 3 multicast on AGG.[AGG] multicast routing-enable [AGG] pim [AGG-pim] static-rp 1.1.1.2 [AGG-pim] quit [AGG] interface vlanif 11 [AGG-Vlanif11] pim sm [AGG-Vlanif11] quit [AGG] interface vlanif 22 [AGG-Vlanif22] pim sm [AGG-Vlanif22] quit [AGG] interface vlanif 33 [AGG-Vlanif33] pim sm [AGG-Vlanif33] igmp enable //The interface is connected to users, so IGMP needs to be enabled on it. [AGG-Vlanif33] quit [AGG] interface vlanif 34 [AGG-Vlanif34] pim sm [AGG-Vlanif34] igmp enable [AGG-Vlanif34] quit
# Configure Layer 3 multicast on LSW1.[LSW1] multicast routing-enable [LSW1] pim [LSW1-pim] static-rp 1.1.1.1 [LSW1-pim] quit [LSW1] interface vlanif 10 [LSW1-Vlanif10] pim sm [LSW1-Vlanif10] quit [LSW1] interface vlanif 301 [LSW1-Vlanif301] pim sm [LSW1-Vlanif301] quit [LSW1] interface vlanif 400 [LSW1-Vlanif400] pim hello-option dr-priority 100 //Adjust the priority for DR election to ensure that multicast traffic is preferentially forwarded by LSW1. [LSW1-Vlanif400] pim sm [LSW1-Vlanif400] igmp enable [LSW1-Vlanif400] quit [LSW1] interface vlanif 530 [LSW1-Vlanif530] pim sm [LSW1-Vlanif530] pim hello-option dr-priority 100 [LSW1-Vlanif530] igmp enable //The interface is connected to the decoding server, so IGMP needs to be enabled on the interface. [LSW1-Vlanif530] quit
# Configure Layer 3 multicast on LSW2.[LSW2] multicast routing-enable [LSW2] pim [LSW2-pim] static-rp 1.1.1.1 [LSW2-pim] quit [LSW2] interface vlanif 10 [LSW2-Vlanif10] pim sm [LSW2-Vlanif10] quit [LSW2] interface vlanif 301 [LSW2-Vlanif301] pim sm [LSW2-Vlanif301] quit [LSW2] interface vlanif 400 [LSW2-Vlanif400] pim sm [LSW2-Vlanif400] igmp enable [LSW2-Vlanif400] quit [LSW2] interface vlanif 530 [LSW2-Vlanif530] pim sm [LSW2-Vlanif530] igmp enable [LSW2-Vlanif530] quit
- Configure IGMP snooping to enable Layer 2 multicast.# Enable IGMP snooping on ACC1.
[ACC1] igmp-snooping enable [ACC1] vlan 33 [ACC1-vlan33] igmp-snooping enable [ACC1-vlan33] multicast drop-unknown [ACC1-vlan33] quit
# Enable IGMP snooping on ACC2.[ACC2] igmp-snooping enable [ACC2] vlan 34 [ACC2-vlan34] igmp-snooping enable [ACC2-vlan34] multicast drop-unknown [ACC2-vlan34] quit
# Enable IGMP snooping on LSW1.[LSW1] igmp-snooping enable [LSW1] vlan 301 [LSW1-vlan301] igmp-snooping enable [LSW1-vlan301] quit [LSW1] vlan 530 [LSW1-vlan530] igmp-snooping enable [LSW1-vlan530] quit
# Enable IGMP snooping on LSW2.[LSW2] igmp-snooping enable [LSW2] vlan 301 [LSW2-vlan301] igmp-snooping enable [LSW2-vlan301] quit [LSW2] vlan 530 [LSW2-vlan530] igmp-snooping enable [LSW2-vlan530] quit
- Configure traffic policies to control the access of multicast sources.# Configure traffic policies on LSW1.
[LSW1] acl number 3000 [LSW1-acl-adv-3000] description ***ACL FOR IPTV_Service_IN*** [LSW1-acl-adv-3000] rule 1 permit ip source 66.1.1.0 0.0.0.255 destination 4.1.1.0 0.0.0.127 [LSW1-acl-adv-3000] quit [LSW1] acl number 3998 [LSW1-acl-adv-3998] description ***ACL FOR Multicast Remark*** [LSW1-acl-adv-3998] rule 5 permit ip source 5.1.1.80 0.0.0.15 [LSW1-acl-adv-3998] quit [LSW1] traffic classifier IPTV_Service_IN [LSW1-classifier-IPTV_Service_IN] if-match acl 3000 [LSW1-classifier-IPTV_Service_IN] quit [LSW1] traffic classifier IPTV_Multicast_Remark [LSW1-classifier-IPTV_Multicast_Remark] if-match acl 3998 [LSW1-classifier-IPTV_Multicast_Remark] quit [LSW1] traffic behavior IPTV_Service_IN [LSW1-behavior-IPTV_Service_IN] permit [LSW1-behavior-IPTV_Service_IN] quit [LSW1] traffic behavior IPTV_Multicast_Remark [LSW1-behavior-IPTV_Multicast_Remark] permit [LSW1-behavior-IPTV_Multicast_Remark] remark dscp af41 [LSW1-behavior-IPTV_Multicast_Remark] quit [LSW1] traffic policy IPTV_Service_IN [LSW1-trafficpolicy-IPTV_Service_IN] classifier IPTV_Service_IN behavior IPTV_Service_IN [LSW1-trafficpolicy-IPTV_Service_IN] quit [LSW1] traffic policy IPTV_Multicast_Remark [LSW1-trafficpolicy-IPTV_Multicast_Remark] classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark [LSW1-trafficpolicy-IPTV_Multicast_Remark] quit [LSW1] interface gigabitethernet 0/0/1 [LSW1-GigabitEthernet0/0/1] traffic-policy IPTV_Service_IN inbound [LSW1-GigabitEthernet0/0/1] quit [LSW1] interface gigabitethernet 0/0/2 [LSW1-GigabitEthernet0/0/2] traffic-policy IPTV_Multicast_Remark inbound [LSW1-GigabitEthernet0/0/2] quit
# Configure traffic policies on LSW2.[LSW2] acl number 3000 [LSW2-acl-adv-3000] description ***ACL FOR IPTV_Service_IN*** [LSW2-acl-adv-3000] rule 1 permit ip source 66.1.1.0 0.0.0.255 destination 4.1.1.0 0.0.0.127 [LSW2-acl-adv-3000] quit [LSW2] acl number 3998 [LSW2-acl-adv-3998] description ***ACL FOR Multicast Remark*** [LSW2-acl-adv-3998] rule 5 permit ip source 5.1.1.80 0.0.0.15 [LSW2-acl-adv-3998] quit [LSW2] traffic classifier IPTV_Service_IN [LSW2-classifier-IPTV_Service_IN] if-match acl 3000 [LSW2-classifier-IPTV_Service_IN] quit [LSW2] traffic classifier IPTV_Multicast_Remark [LSW2-classifier-IPTV_Multicast_Remark] if-match acl 3998 [LSW2-classifier-IPTV_Multicast_Remark] quit [LSW2] traffic behavior IPTV_Service_IN [LSW2-behavior-IPTV_Service_IN] permit [LSW2-behavior-IPTV_Service_IN] quit [LSW2] traffic behavior IPTV_Multicast_Remark [LSW2-behavior-IPTV_Multicast_Remark] permit [LSW2-behavior-IPTV_Multicast_Remark] remark dscp af41 [LSW2-behavior-IPTV_Multicast_Remark] quit [LSW2] traffic policy IPTV_Service_IN [LSW2-trafficpolicy-IPTV_Service_IN] classifier IPTV_Service_IN behavior IPTV_Service_IN [LSW2-trafficpolicy-IPTV_Service_IN] quit [LSW2] traffic policy IPTV_Multicast_Remark [LSW2-trafficpolicy-IPTV_Multicast_Remark] classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark [LSW2-trafficpolicy-IPTV_Multicast_Remark] quit [LSW2] interface gigabitethernet 0/0/1 [LSW2-GigabitEthernet0/0/1] traffic-policy IPTV_Service_IN inbound [LSW2-GigabitEthernet0/0/1] quit [LSW2] interface gigabitethernet 0/0/2 [LSW2-GigabitEthernet0/0/2] traffic-policy IPTV_Multicast_Remark inbound [LSW2-GigabitEthernet0/0/2] quit
- Verify the configuration.# After the configuration is complete, PIM neighbor information can be correctly generated on Core, PE1, PE2, and AGG.
[Core] display pim neighbor VPN-Instance: public net Total Number of Neighbors = 2 Neighbor Interface Uptime Expires Dr-Priority BFD-Session 12.1.1.1 GE1/0/3 01:09:01 00:01:43 1 N 20.1.1.2 GE1/0/2 01:06:30 00:01:39 1 N
[PE1] display pim neighbor VPN-Instance: public net Total Number of Neighbors = 4 Neighbor Interface Uptime Expires Dr-Priority BFD-Session 12.1.1.2 GE1/0/2 01:10:48 00:01:27 1 N 60.1.1.2 GE1/0/3 01:08:06 00:01:40 1 N 10.1.1.2 Vlanif10 00:39:38 00:01:21 1 N 11.1.1.8 Vlanif11 01:05:16 00:01:30 1 N
[PE2] display pim neighbor VPN-Instance: public net Total Number of Neighbors = 4 Neighbor Interface Uptime Expires Dr-Priority BFD-Session 20.1.1.3 GE1/0/2 01:11:32 00:01:42 1 N 60.1.1.1 GE1/0/3 01:11:18 00:01:27 1 N 10.1.2.2 Vlanif10 00:41:06 00:01:39 1 N 22.1.1.8 Vlanif22 01:08:28 00:01:42 1 N
[AGG] display pim neighbor VPN-Instance: public net Total Number of Neighbors = 2 Neighbor Interface Uptime Expires Dr-Priority BFD-Session 11.1.1.1 Vlanif11 01:09:30 00:01:20 1 N 22.1.1.2 Vlanif22 01:08:34 00:01:18 1 N
# After users send IGMP Report messages, ACC1 and ACC2 can generate information about multicast group member ports correctly.[ACC1]display igmp-snooping port-info -------------------------------------------------------------------------------- (Source, Group) Port Flag Flag: S:Static D:Dynamic M: Ssm-mapping -------------------------------------------------------------------------------- VLAN 33, 1 Entry(s) (*, 225.1.1.1) GE0/0/2 -D- GE0/0/3 -D- 2 port(s) include --------------------------------------------------------------------------------
[ACC2] display igmp-snooping port-info -------------------------------------------------------------------------------- (Source, Group) Port Flag Flag: S:Static D:Dynamic M: Ssm-mapping -------------------------------------------------------------------------------- VLAN 34, 1 Entry(s) (*, 225.1.1.1) GE0/0/2 -D- GE0/0/3 -D- 2 port(s) include --------------------------------------------------------------------------------
# After the multicast source sends a multicast packet and the decoding server sends a join message, LSW1 and PE1 can generate the multicast routing entry correctly.[LSW1] display pim routing-table VPN-Instance: public net Total 1 (*, G) entry; 0 (S, G) entry (*, 225.0.0.1) RP: 1.1.1.1 Protocol: pim-sm, Flag: WC UpTime: 00:06:50 Upstream interface: Vlanif10 Upstream neighbor: 10.1.1.1 RPF prime neighbor: 10.1.1.1 Downstream interface(s) information: Total number of downstreams: 1 1: Vlanif530 Protocol: igmp, UpTime: 00:01:42, Expires: -
[PE1] display pim routing-table VPN-Instance: public net Total 1 (*, G) entry; 0 (S, G) entry (*, 225.0.0.1) RP: 1.1.1.1 (local) Protocol: pim-sm, Flag: WC UpTime: 00:12:46 Upstream interface: Register Upstream neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Vlanif10 Protocol: pim-sm, UpTime: 00:08:59, Expires: 00:02:31
Configuration Files
Core configuration file
# sysname Core # multicast routing-enable # interface GigabitEthernet1/0/1 undo portswitch description Core***to***Sever ip address 66.1.1.3 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/2 undo portswitch description Core***to***PE2 ip address 20.1.1.3 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/3 undo portswitch description Core***to***PE1 ip address 12.1.1.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface LoopBack0 ip address 1.1.1.3 255.255.255.255 ospf enable 1 area 0.0.0.0 # ospf 1 area 0.0.0.0 # pim static-rp 1.1.1.2 # return
Configuration file of PE devices
PE1 Configuration File
PE2 Configuration File
# sysname PE1 # vlan batch 10 to 11 # multicast routing-enable # interface Vlanif10 description to***LSW1 ip address 10.1.1.1 255.255.255.0 pim sm ospf enable 1 area 0.0.0.1 # interface Vlanif11 description to***AGG ip address 11.1.1.1 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/1 description PE1***to***LSW1 port link-type access port default vlan 10 # interface GigabitEthernet1/0/2 undo portswitch description PE1***to***Core ip address 12.1.1.1 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/3 undo portswitch description PE1***to***PE2 ip address 60.1.1.1 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/4 description PE1***to***AGG port link-type trunk port trunk allow-pass vlan 11 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 pim sm ospf enable 1 area 0.0.0.0 # ospf 1 area 0.0.0.0 area 0.0.0.1 nssa # pim c-bsr LoopBack0 c-rp LoopBack0 static-rp 1.1.1.2 # return
# sysname PE2 # vlan batch 10 22 # multicast routing-enable # interface Vlanif10 description to***LSW2 ip address 10.1.2.1 255.255.255.0 pim sm ospf enable 1 area 0.0.0.1 # interface Vlanif22 description to***AGG ip address 22.1.1.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/1 description PE2***to***LSW2 port link-type access port default vlan 10 # interface GigabitEthernet1/0/2 undo portswitch description PE2***to***Core ip address 20.1.1.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/3 undo portswitch description PE2***to***PE1 ip address 60.1.1.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface GigabitEthernet1/0/4 description PE2***to***AGG port link-type trunk port trunk allow-pass vlan 22 # interface LoopBack0 ip address 1.1.1.2 255.255.255.255 ospf enable 1 area 0.0.0.0 # ospf 1 area 0.0.0.0 area 0.0.0.1 nssa # pim static-rp 1.1.1.2 # return
- LSW configuration files
LSW1 Configuration File
LSW2 Configuration File
# sysname LSW1 # vlan batch 10 88 301 400 530 # stp instance 1 root primary stp instance 2 root secondary # multicast routing-enable # igmp-snooping enable # stp region-configuration region-name IPTV instance 1 vlan 530 instance 2 vlan 88 301 400 active region-configuration # acl number 3000 description ***ACL FOR IPTV_Service_IN*** rule 1 permit ip source 66.1.1.0 0.0.0.255 destination 4.1.1.0 0.0.0.127 acl number 3998 description ***ACL FOR Multicast Remark*** rule 5 permit ip source 5.1.1.80 0.0.0.15 # traffic classifier IPTV_Multicast_Remark operator or if-match acl 3998 traffic classifier IPTV_Service_IN operator or if-match acl 3000 # traffic behavior IPTV_Multicast_Remark permit remark dscp af41 traffic behavior IPTV_Service_IN permit # traffic policy IPTV_Multicast_Remark match-order config classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark traffic policy IPTV_Service_IN match-order config classifier IPTV_Service_IN behavior IPTV_Service_IN # vlan 10 description to***PE1 vlan 301 description to***LSW2 igmp-snooping enable vlan 400 description ***MRF IN*** multicast drop-unknown igmp-snooping enable vlan 530 description ***MRF OUT*** multicast drop-unknown igmp-snooping enable # interface Vlanif10 description to***PE1 ip address 10.1.1.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.1 # interface Vlanif88 description to***HMS ip address 88.1.1.7 255.255.255.0 vrrp vrid 2 virtual-ip 88.1.1.100 vrrp vrid 2 priority 120 vrrp vrid 2 preempt-mode timer delay 20 vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 100 # interface Vlanif301 description LSW1***to***LSW2 ip address 31.1.1.1 255.255.255.0 pim sm ospf network-type p2p ospf timer hello 1 # interface Vlanif400 description to***MRF IN ip address 4.1.1.2 255.255.255.0 vrrp vrid 40 virtual-ip 4.1.1.10 vrrp vrid 40 priority 120 pim hello-option dr-priority 100 pim sm igmp enable # interface Vlanif530 description to***MRF OUT ip address 5.1.1.2 255.255.255.0 vrrp vrid 53 virtual-ip 5.1.1.10 vrrp vrid 53 priority 120 pim hello-option dr-priority 100 pim sm igmp enable # interface Eth-Trunk1 description LSW1***to***LSW2 port link-type trunk port trunk allow-pass vlan 88 301 400 530 # interface GigabitEthernet0/0/1 description LSW1***to***PE1 port link-type access port default vlan 10 stp disable traffic-policy IPTV_Service_IN inbound # interface GigabitEthernet0/0/2 description LSW1***to***CDN port link-type trunk port trunk allow-pass vlan 88 301 400 530 traffic-policy IPTV_Multicast_Remark inbound # interface GigabitEthernet0/0/3 eth-trunk 1 # interface GigabitEthernet0/0/4 eth-trunk 1 # ospf 1 router-id 192.168.1.1 default-route-advertise silent-interface Vlanif88 silent-interface Vlanif530 silent-interface Vlanif400 area 0.0.0.1 network 10.1.1.0 0.0.0.255 network 31.1.1.0 0.0.0.255 network 88.1.1.0 0.0.0.255 network 5.1.1.0 0.0.0.255 nssa # pim static-rp 1.1.1.1 # return
# sysname LSW2 # vlan batch 10 88 301 400 530 # stp instance 1 root secondary stp instance 2 root primary # multicast routing-enable # igmp-snooping enable # stp region-configuration region-name IPTV instance 1 vlan 530 instance 2 vlan 88 301 400 active region-configuration # acl number 3000 description ***ACL FOR IPTV_Service_IN*** rule 1 permit ip source 66.1.1.0 0.0.0.255 destination 4.1.1.0 0.0.0.127 acl number 3998 description ***ACL FOR Multicast Remark*** rule 5 permit ip source 5.1.1.80 0.0.0.15 # traffic classifier IPTV_Multicast_Remark operator or if-match acl 3998 traffic classifier IPTV_Service_IN operator or if-match acl 3000 # traffic behavior IPTV_Multicast_Remark permit remark dscp af41 traffic behavior IPTV_Service_IN permit # traffic policy IPTV_Multicast_Remark match-order config classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark traffic policy IPTV_Service_IN match-order config classifier IPTV_Service_IN behavior IPTV_Service_IN # vlan 10 description to***PE2 vlan 301 description to***LSW1 igmp-snooping enable vlan 400 description ***MRF IN*** multicast drop-unknown igmp-snooping enable vlan 530 description ***MRF OUT*** multicast drop-unknown igmp-snooping enable # interface Vlanif10 description to***PE2 ip address 10.1.2.2 255.255.255.0 pim sm ospf enable 1 area 0.0.0.1 # interface Vlanif88 description to***HMS ip address 88.1.1.5 255.255.255.0 vrrp vrid 2 virtual-ip 88.1.1.100 # interface Vlanif301 description LSW2***to***LSW1 ip address 31.1.1.2 255.255.255.0 pim sm ospf network-type p2p ospf timer hello 1 # interface Vlanif400 description to***MRF IN ip address 4.1.1.3 255.255.255.0 vrrp vrid 40 virtual-ip 4.1.1.10 pim sm igmp enable # interface Vlanif530 description to***MRF OUT ip address 5.1.1.3 255.255.255.0 vrrp vrid 53 virtual-ip 5.1.1.10 pim sm igmp enable # interface Eth-Trunk1 description LSW2***to***LSW1 port link-type trunk port trunk allow-pass vlan 88 301 400 530 # interface GigabitEthernet0/0/1 description LSW2***to***PE2 port link-type access port default vlan 10 stp disable traffic-policy IPTV_Service_IN inbound # interface GigabitEthernet0/0/2 description LSW2***to***CDN port link-type trunk port trunk allow-pass vlan 88 301 400 530 traffic-policy IPTV_Multicast_Remark inbound # interface GigabitEthernet0/0/3 eth-trunk 1 # interface GigabitEthernet0/0/4 eth-trunk 1 # ospf 1 router-id 192.168.1.2 default-route-advertise silent-interface Vlanif88 silent-interface Vlanif530 silent-interface Vlanif400 area 0.0.0.1 network 5.1.1.0 0.0.0.255 network 10.1.1.0 0.0.0.255 network 31.1.1.0 0.0.0.255 network 88.1.1.0 0.0.0.255 nssa # pim static-rp 1.1.1.1 # return
- CDN configuration file
# sysname CDN # vlan batch 88 301 400 530 # stp region-configuration region-name IPTV instance 1 vlan 530 instance 2 vlan 88 301 400 active region-configuration # interface GigabitEthernet0/0/1 description CDN***to***LSW2 port link-type trunk port trunk allow-pass vlan 88 301 400 530 # interface GigabitEthernet0/0/2 description CDN***to***LSW1 port link-type trunk port trunk allow-pass vlan 88 301 400 530 # interface GigabitEthernet0/0/3 description CDN***to***HMS-Server port link-type access port default vlan 88 stp disable # interface GigabitEthernet0/0/4 description CDN***to***MRF-IN port link-type access port default vlan 400 stp disable # interface GigabitEthernet0/0/5 description CDN***to***MRF-OUT port link-type access port default vlan 530 stp disable # return
- AGG configuration file
# sysname AGG # vlan batch 11 22 33 to 34 # multicast routing-enable # interface Vlanif11 description to***PE1 ip address 11.1.1.8 255.255.255.0 pim sm ospf enable 1 area 0.0.0.0 # interface Vlanif22 description to***PE2 ip address 22.1.1.8 255.255.255.0 pim sm ospf cost 10000 ospf enable 1 area 0.0.0.0 # interface Vlanif33 description to***ACC1 ip address 33.1.1.8 255.255.255.0 pim sm igmp enable ospf enable 1 area 0.0.0.0 # interface Vlanif34 description to***ACC2 ip address 34.1.1.8 255.255.255.0 pim sm igmp enable ospf enable 1 area 0.0.0.0 # interface GigabitEthernet0/0/1 description AGG***to***ACC1 port link-type trunk port trunk allow-pass vlan 33 # interface GigabitEthernet0/0/2 description AGG***to***ACC2 port link-type trunk port trunk allow-pass vlan 34 # interface GigabitEthernet0/0/4 description AGG***to***PE1 port link-type trunk port trunk allow-pass vlan 11 # interface GigabitEthernet0/0/5 description AGG***to***PE2 port link-type trunk port trunk allow-pass vlan 22 # interface LoopBack0 ip address 1.1.1.4 255.255.255.255 ospf enable 1 area 0.0.0.0 # ospf 1 area 0.0.0.0 # pim static-rp 1.1.1.2 # return
ACC configuration files
ACC1 Configuration File
ACC2 Configuration File
# sysname ACC1 # vlan batch 33 # igmp-snooping enable # vlan 33 multicast drop-unknown igmp-snooping enable # interface GigabitEthernet0/0/1 description ACC1***to***AGG port link-type trunk port trunk allow-pass vlan 33 # interface GigabitEthernet0/0/2 port link-type access port default vlan 33 # interface GigabitEthernet0/0/3 port link-type access port default vlan 33 # return
# sysname ACC2 # vlan batch 34 # igmp-snooping enable # vlan 34 multicast drop-unknown igmp-snooping enable # interface GigabitEthernet0/0/1 description ACC2***to***AGG port link-type trunk port trunk allow-pass vlan 34 # interface GigabitEthernet0/0/2 port link-type access port default vlan 34 # interface GigabitEthernet0/0/3 port link-type access port default vlan 34 # return