华为环网双机接入IPTV网络部署案例

环网双机接入IPTV网络部署案例

组网图形

图2 环网双机场景IPTV基本组网图

  • 方案简介
  • 配置注意事项
  • 组网需求
  • 数据规划
  • 配置思路
  • 操作步骤
  • 配置文件

方案简介

随着IPTV业务的迅速发展,IPTV平台承载的用户也越来越多,用户对IPTV直播业务的可靠性要求越来越高。IPTV作为视频类业务,最终用户对业务体验的连续性要求极高,需要保障日常维护中的用户业务体验连续,在重大事件保障、重大版本升级保障中保证业务的延续性。

如图1所示是某个地区广电基本组网图。为了保证广电直播流的质量,广电组播源服务器发送的直播流需要先转发到MRF转码服务器进行转码,然后由转码服务器再转发给接收者。转码服务器通过环网双机备份的方式接入IPTV组网,提高网络可靠性。

  • 组播源服务器发送的组播流正常转发路径是:Core->PE1->LSW1->CDN->转码服务器。
  • 转码服务器转换后的组播流正常转发路径是:转码服务器->CDN->LSW1->PE1->AGG->ACC1和ACC2。
  • 录制服务器到接收者单播流正常转发路径是:录制服务器->CDN->LSW1->PE1->AGG->ACC1和ACC2。

图1 环网双机接入场景视频流量转发路径

配置注意事项

本举例中Core、PE1和PE2使用框式交换机为例,其他设备以盒式交换机为例。本举例中的交换机可以使用S系列交换机所有产品。

组网需求

如图2所示为某地区IPTV组网图,接收者可以点播直播节目,也可以回看电视节目。具体需求如下:

  • 组播源服务器发送的组播直播流,先转发到CDN服务器转码录制后,再转发给接收者。
  • 接收者也可以通过单播方式回看电视节目。
  • 通过部署三层组播、二三层组播混跑和IGMP Snooping功能,实现组播流转发。
  • 通过OSPF协议实现三层流量互通。LSW1、LSW2与PE1、PE2通过OSPF 1区域1建立邻居关系,Core与PE1、PE2通过OSPF 1区域0建立邻居关系。
  • CDN、LSW1和LSW2部署MSTP破环协议,LSW1和LSW2部署VRRP,提高网络可靠性。
  • 为保证接入安全,LSW1和LSW2通过流策略限制组播源服务器的接入。

数据规划
表1 VLAN规划

参数项

描述

VLAN 33

ACC1下挂用户所属的VLAN。

VLAN 34

ACC2下挂用户所属的VLAN。

VLAN 88

用户回看节目使用的VLAN。

VLAN 301

LSW1和LSW2使用的VLAN。

VLAN 400

组播直播流转码后使用的VLAN。

VLAN 530

组播直播流未转码前使用的VLAN。

表2 IP地址规划

产品名称

参数项

描述

Core

GE1/0/1:66.1.1.3/24

上行连接组播源服务器的三层接口。

GE1/0/2:20.1.1.3/24

连接PE2的三层接口。

GE1/0/3:12.1.1.2/24

连接PE1的三层接口。

LoopBack0:1.1.1.3

-

PE1

GE1/0/2:12.1.1.1/24

上行连接Core的三层接口。

GE1/0/3:60.1.1.1/24

连接PE2的三层接口。

Vlanif10:10.1.1.1/24,对应物理接口是GE1/0/1

连接LSW1的接口。

Vlanif11:11.1.1.1/24,对应物理接口是GE1/0/4

连接AGG的接口。

LoopBack0:1.1.1.1

-

PE2

GE1/0/2:20.1.1.2/24

上行连接Core的三层接口。

GE1/0/3:60.1.1.2/24

连接PE1的三层接口。

Vlanif10:10.1.2.1/24,对应物理接口是GE1/0/1

连接LSW2的接口。

Vlanif22:22.1.1.2/24,对应物理接口是GE1/0/4

连接AGG的接口。

LoopBack0:1.1.1.2

-

AGG

Vlanif11:11.1.1.8/24,对应物理接口是GE0/0/4

连接PE1的接口。

Vlanif22:22.1.1.8/24,对应物理接口是GE0/0/5

连接PE2的接口。

Vlanif33:33.1.1.8/24,对应物理接口是GE0/0/1

连接ACC1的接口。

Vlanif34:34.1.1.8/24,对应物理接口是GE0/0/2

连接ACC2的接口。

LoopBack0:1.1.1.4

-

LSW1

Vlanif10:10.1.1.2/24,对应物理接口是GE0/0/1

连接PE1的接口。

Vlanif88:88.1.1.7/24,对应物理接口是GE0/0/2

用于与录制服务器通信。

Vlanif301:31.1.1.1/24,对应物理接口是GE0/0/3和GE0/0/4

连接LSW2的接口。GE0/0/3和GE0/0/4绑定为Eth-Trunk1。

Vlanif400:4.1.1.2/24,对应物理接口是GE0/0/2

用于与转码后的服务器通信。

Vlanif530:5.1.1.2/24,对应物理接口是GE0/0/2

用于与转码前的服务器通信。

LSW2

Vlanif10:10.1.2.2/24,对应物理接口是GE0/0/1

连接PE2的接口。

Vlanif88:88.1.1.5/24,对应物理接口是GE0/0/2

用于与录制服务器通信。

Vlanif301:31.1.1.2/24,对应物理接口是GE0/0/3和GE0/0/4

连接LSW1的接口。GE0/0/3和GE0/0/4绑定为Eth-Trunk1。

Vlanif400:4.1.1.3/24,对应物理接口是GE0/0/2

用于与转码后的服务器通信。

Vlanif530:5.1.1.3/24,对应物理接口是GE0/0/2

用于与转码前的服务器通信。

配置思路

采用如下的思路进行配置:

  1. 创建VLAN并配置各接口所属VLAN。
  2. 配置STP破环功能。
  3. 配置各VLANIF接口的IP地址。
  4. 配置VRRP功能,实现网关备份。
  5. 配置OSPF功能,实现三层互通。
  6. 配置三层组播功能。
  7. 配置IGMP Snooping二层组播功能。
  8. 配置流策略,控制组播源的接入。

操作步骤
  1. 创建VLAN并配置各接口所属VLAN

    # 在ACC1上创建VLAN,并将接口加入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
    # 在ACC2上创建VLAN,并将接口加入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
    # 在AGG上创建VLAN,并将接口加入VLAN。
    <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
    # 在PE1上创建VLAN,并将接口加入VLAN。
    <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
    # 在PE2上创建VLAN,并将接口加入VLAN。
    <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
    # 在LSW1上创建VLAN,并将接口加入VLAN。
    <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
    # 在LSW2上创建VLAN,并将接口加入VLAN。
    <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
    # 在CDN上创建VLAN,并将接口加入VLAN。
    <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

  2. 配置STP。LSW1、LSW2和CDN组成二层环路,通过MSTP进行破环。

    # 在LSW1配置MSTP域并使能STP功能。
    [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 //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    [LSW1] interface gigabitethernet 0/0/1
    [LSW1-GigabitEthernet0/0/1] stp disable
    [LSW1-GigabitEthernet0/0/1] quit
    # 在LSW2配置MSTP域并使能STP功能。
    [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 //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    [LSW2] interface gigabitethernet 0/0/1
    [LSW2-GigabitEthernet0/0/1] stp disable
    [LSW2-GigabitEthernet0/0/1] quit# 在CDN配置MSTP域并使能STP功能。
    [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 //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    [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

  3. 配置各接口的IP地址
    # 在Core配置接口的IP地址。
    <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
    # 在PE1配置接口的IP地址。
    [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
    # 在PE2配置接口的IP地址。
    [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
    # 在AGG配置接口的IP地址。
    [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
    # 在LSW1配置接口的IP地址。
    [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
    # 在LSW2配置接口的IP地址。
    [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

  4. 配置VRRP功能

    # 在LSW1配置VRRP备份功能。
    [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
    # 在LSW2配置VRRP备份功能。
    [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

  5. 配置OSPF功能

    # 在Core配置OSPF功能。
    [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
    # 在PE1配置OSPF功能。
    [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
    # 在PE2配置OSPF功能。
    [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
    # 在AGG配置OSPF功能,同时修改优先级,进行路由备份。
    [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
    # 在LSW1配置OSPF功能。
    [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
    # 在LSW2配置OSPF功能。
    [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

  6. 配置三层组播功能

    # 在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
    # 在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
    # 在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
    # 在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  //与用户相连,需要使能IGMP功能
    [AGG-Vlanif33] quit
    [AGG] interface vlanif 34
    [AGG-Vlanif34] pim sm
    [AGG-Vlanif34] igmp enable
    [AGG-Vlanif34] quit
    # 在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  //调整优先级,保证组播流量优先从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  //与解码服务器相连,需要使能IGMP功能
    [LSW1-Vlanif530] quit
    # 在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

  7. 配置IGMP Snooping二层组播功能

    # 在ACC1上使能IGMP Snooping功能。
    [ACC1] igmp-snooping enable
    [ACC1] vlan 33
    [ACC1-vlan33] igmp-snooping enable
    [ACC1-vlan33] multicast drop-unknown
    [ACC1-vlan33] quit
    # 在ACC2上使能IGMP Snooping功能。
    [ACC2] igmp-snooping enable
    [ACC2] vlan 34
    [ACC2-vlan34] igmp-snooping enable
    [ACC2-vlan34] multicast drop-unknown
    [ACC2-vlan34] quit
    # 在LSW1上使能IGMP Snooping功能。
    [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
    # 在LSW2上使能IGMP Snooping功能。
    [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

  8. 配置流策略限制组播源接入

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

  9. 验证配置结果

    # 配置完成后,Core、PE1、PE2和AGG上可以正常生成PIM邻居信息。
    [Core] display pim neighborVPN-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 neighborVPN-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 neighborVPN-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 neighborVPN-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            # 用户发送IGMP Report报文后,ACC1和ACC2上可以正常生成组播组成员端口信息。
    [ACC1]display igmp-snooping port-info
    --------------------------------------------------------------------------------(Source, Group)  Port                          FlagFlag: 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                          FlagFlag: 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       --------------------------------------------------------------------------------# 组播源发送组播报文,解码服务器发送组播组加入报文后,LSW1和PE1上可以正常生成组播路由表。
    [LSW1] display pim routing-tableVPN-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-tableVPN-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            

配置文件
  • Core的配置文件

    #
    sysname Core
    #
    multicast routing-enable
    #
    interface GigabitEthernet1/0/1undo portswitch description Core***to***Severip address 66.1.1.3 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/2undo portswitch description Core***to***PE2ip address 20.1.1.3 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/3undo 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 LoopBack0ip address 1.1.1.3 255.255.255.255ospf enable 1 area 0.0.0.0
    #
    ospf 1area 0.0.0.0
    #
    pimstatic-rp 1.1.1.2
    #
    return
  • PE的配置文件

    PE1配置文件

    PE2配置文件

    #
    sysname PE1
    #
    vlan batch 10 to 11 
    #
    multicast routing-enable
    #
    interface Vlanif10description to***LSW1ip address 10.1.1.1 255.255.255.0pim smospf enable 1 area 0.0.0.1
    #
    interface Vlanif11description to***AGGip address 11.1.1.1 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/1description PE1***to***LSW1port link-type accessport default vlan 10
    #
    interface GigabitEthernet1/0/2undo portswitchdescription PE1***to***Coreip address 12.1.1.1 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/3undo portswitch description PE1***to***PE2ip address 60.1.1.1 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/4description PE1***to***AGGport link-type trunkport trunk allow-pass vlan 11
    #
    interface LoopBack0ip address 1.1.1.1 255.255.255.255pim smospf enable 1 area 0.0.0.0
    #
    ospf 1area 0.0.0.0area 0.0.0.1nssa
    #
    pimc-bsr LoopBack0c-rp LoopBack0static-rp 1.1.1.2
    #
    return
    #
    sysname PE2
    #
    vlan batch 10 22
    #
    multicast routing-enable
    #
    interface Vlanif10description to***LSW2ip address 10.1.2.1 255.255.255.0pim smospf enable 1 area 0.0.0.1
    #
    interface Vlanif22description to***AGGip address 22.1.1.2 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/1description PE2***to***LSW2port link-type accessport default vlan 10
    #
    interface GigabitEthernet1/0/2undo portswitchdescription PE2***to***Coreip address 20.1.1.2 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/3undo portswitch description PE2***to***PE1ip address 60.1.1.2 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet1/0/4description PE2***to***AGGport link-type trunkport trunk allow-pass vlan 22
    #
    interface LoopBack0ip address 1.1.1.2 255.255.255.255ospf enable 1 area 0.0.0.0
    #
    ospf 1area 0.0.0.0area 0.0.0.1nssa
    #
    pimstatic-rp 1.1.1.2
    #
    return
  • LSW的配置文件

    LSW1的配置文件

    LSW2的配置文件

    #
    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-configurationregion-name IPTVinstance 1 vlan 530instance 2 vlan 88 301 400active region-configuration
    #
    acl number 3000description ***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 3998description ***ACL FOR Multicast Remark***rule 5 permit ip source 5.1.1.80 0.0.0.15
    #
    traffic classifier IPTV_Multicast_Remark operator orif-match acl 3998
    traffic classifier IPTV_Service_IN operator orif-match acl 3000
    #
    traffic behavior IPTV_Multicast_Remarkpermitremark dscp af41
    traffic behavior IPTV_Service_INpermit
    #
    traffic policy IPTV_Multicast_Remark match-order configclassifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
    traffic policy IPTV_Service_IN match-order configclassifier IPTV_Service_IN behavior IPTV_Service_IN
    #
    vlan 10description to***PE1
    vlan 301description to***LSW2igmp-snooping enable
    vlan 400description ***MRF IN***multicast drop-unknownigmp-snooping enable
    vlan 530description ***MRF OUT***multicast drop-unknownigmp-snooping enable
    #
    interface Vlanif10description to***PE1ip address 10.1.1.2 255.255.255.0pim smospf enable 1 area 0.0.0.1
    #
    interface Vlanif88description to***HMSip address 88.1.1.7 255.255.255.0vrrp vrid 2 virtual-ip 88.1.1.100vrrp vrid 2 priority 120vrrp vrid 2 preempt-mode timer delay 20vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 100
    #
    interface Vlanif301description LSW1***to***LSW2ip address 31.1.1.1 255.255.255.0pim smospf network-type p2pospf timer hello 1
    #
    interface Vlanif400description to***MRF INip address 4.1.1.2 255.255.255.0vrrp vrid 40 virtual-ip 4.1.1.10vrrp vrid 40 priority 120pim hello-option dr-priority 100pim smigmp enable
    #
    interface Vlanif530description to***MRF OUTip address 5.1.1.2 255.255.255.0vrrp vrid 53 virtual-ip 5.1.1.10vrrp vrid 53 priority 120pim hello-option dr-priority 100pim smigmp enable
    #
    interface Eth-Trunk1description LSW1***to***LSW2port link-type trunkport trunk allow-pass vlan 88 301 400 530
    #
    interface GigabitEthernet0/0/1description LSW1***to***PE1port link-type accessport default vlan 10stp disabletraffic-policy IPTV_Service_IN inbound
    #
    interface GigabitEthernet0/0/2description LSW1***to***CDNport link-type trunkport trunk allow-pass vlan 88 301 400 530traffic-policy IPTV_Multicast_Remark inbound
    #
    interface GigabitEthernet0/0/3eth-trunk 1
    #
    interface GigabitEthernet0/0/4eth-trunk 1
    #
    ospf 1 router-id 192.168.1.1default-route-advertisesilent-interface Vlanif88silent-interface Vlanif530silent-interface Vlanif400area 0.0.0.1network 10.1.1.0 0.0.0.255network 31.1.1.0 0.0.0.255network 88.1.1.0 0.0.0.255network 5.1.1.0 0.0.0.255nssa
    # 
    pimstatic-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-configurationregion-name IPTVinstance 1 vlan 530instance 2 vlan 88 301 400active region-configuration
    #
    acl number 3000description ***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 3998description ***ACL FOR Multicast Remark***rule 5 permit ip source 5.1.1.80 0.0.0.15
    #
    traffic classifier IPTV_Multicast_Remark operator orif-match acl 3998
    traffic classifier IPTV_Service_IN operator orif-match acl 3000
    #
    traffic behavior IPTV_Multicast_Remarkpermitremark dscp af41
    traffic behavior IPTV_Service_INpermit
    #
    traffic policy IPTV_Multicast_Remark match-order configclassifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
    traffic policy IPTV_Service_IN match-order configclassifier IPTV_Service_IN behavior IPTV_Service_IN
    #
    vlan 10description to***PE2
    vlan 301description to***LSW1igmp-snooping enable
    vlan 400description ***MRF IN***multicast drop-unknownigmp-snooping enable
    vlan 530description ***MRF OUT***multicast drop-unknownigmp-snooping enable
    #
    interface Vlanif10description to***PE2ip address 10.1.2.2 255.255.255.0pim smospf enable 1 area 0.0.0.1
    # 
    interface Vlanif88description  to***HMSip address 88.1.1.5 255.255.255.0vrrp vrid 2 virtual-ip 88.1.1.100
    #
    interface Vlanif301description LSW2***to***LSW1ip address 31.1.1.2 255.255.255.0pim smospf network-type p2pospf timer hello 1
    #
    interface Vlanif400description to***MRF INip address 4.1.1.3 255.255.255.0vrrp vrid 40 virtual-ip 4.1.1.10pim smigmp enable
    #
    interface Vlanif530description to***MRF OUTip address 5.1.1.3 255.255.255.0vrrp vrid 53 virtual-ip 5.1.1.10pim smigmp enable
    #
    interface Eth-Trunk1description LSW2***to***LSW1port link-type trunkport trunk allow-pass vlan 88 301 400 530
    #
    interface GigabitEthernet0/0/1description LSW2***to***PE2port link-type accessport default vlan 10stp disabletraffic-policy IPTV_Service_IN inbound
    #
    interface GigabitEthernet0/0/2description LSW2***to***CDNport link-type trunkport trunk allow-pass vlan 88 301 400 530traffic-policy IPTV_Multicast_Remark inbound
    #
    interface GigabitEthernet0/0/3eth-trunk 1
    #
    interface GigabitEthernet0/0/4eth-trunk 1
    #
    ospf 1 router-id 192.168.1.2default-route-advertisesilent-interface Vlanif88silent-interface Vlanif530silent-interface Vlanif400area 0.0.0.1network 5.1.1.0 0.0.0.255network 10.1.1.0 0.0.0.255network 31.1.1.0 0.0.0.255network 88.1.1.0 0.0.0.255nssa
    #
    pimstatic-rp 1.1.1.1
    #
    return
  • CDN的配置文件
    #
    sysname CDN
    #
    vlan batch 88 301 400 530
    #
    stp region-configurationregion-name IPTVinstance 1 vlan 530instance 2 vlan 88 301 400active region-configuration
    #
    interface GigabitEthernet0/0/1description CDN***to***LSW2port link-type trunkport trunk allow-pass vlan 88 301 400 530
    #
    interface GigabitEthernet0/0/2description CDN***to***LSW1port link-type trunkport trunk allow-pass vlan 88 301 400 530
    #
    interface GigabitEthernet0/0/3description CDN***to***HMS-Serverport link-type accessport default vlan 88stp disable
    #
    interface GigabitEthernet0/0/4description CDN***to***MRF-INport link-type accessport default vlan 400stp disable
    #
    interface GigabitEthernet0/0/5description CDN***to***MRF-OUTport link-type accessport default vlan 530stp disable
    #
    return
  • AGG的配置文件
    #
    sysname AGG
    #
    vlan batch 11 22 33 to 34
    #
    multicast routing-enable
    #
    interface Vlanif11description to***PE1ip address 11.1.1.8 255.255.255.0pim smospf enable 1 area 0.0.0.0
    #
    interface Vlanif22description to***PE2ip address 22.1.1.8 255.255.255.0pim smospf cost 10000ospf enable 1 area 0.0.0.0
    #
    interface Vlanif33description to***ACC1ip address 33.1.1.8 255.255.255.0pim smigmp enableospf enable 1 area 0.0.0.0
    #
    interface Vlanif34description to***ACC2ip address 34.1.1.8 255.255.255.0pim smigmp enableospf enable 1 area 0.0.0.0
    #
    interface GigabitEthernet0/0/1description AGG***to***ACC1port link-type trunkport trunk allow-pass vlan 33
    #
    interface GigabitEthernet0/0/2description AGG***to***ACC2port link-type trunkport trunk allow-pass vlan 34
    #
    interface GigabitEthernet0/0/4description AGG***to***PE1port link-type trunkport trunk allow-pass vlan 11
    #
    interface GigabitEthernet0/0/5description AGG***to***PE2port link-type trunkport trunk allow-pass vlan 22
    #
    interface LoopBack0ip address 1.1.1.4 255.255.255.255ospf enable 1 area 0.0.0.0
    #
    ospf 1area 0.0.0.0
    #
    pimstatic-rp 1.1.1.2
    #
    return
  • ACC的配置文件

    ACC1的配置文件

    ACC2的配置文件

    #
    sysname ACC1
    #
    vlan batch 33
    #
    igmp-snooping enable
    #
    vlan 33multicast drop-unknownigmp-snooping enable
    #
    interface GigabitEthernet0/0/1description ACC1***to***AGGport link-type trunkport trunk allow-pass vlan 33
    #
    interface GigabitEthernet0/0/2port link-type accessport default vlan 33
    #
    interface GigabitEthernet0/0/3port link-type accessport default vlan 33
    #
    return
    #
    sysname ACC2
    #
    vlan batch 34
    #
    igmp-snooping enable
    #
    vlan 34multicast drop-unknownigmp-snooping enable
    #
    interface GigabitEthernet0/0/1description ACC2***to***AGGport link-type trunkport trunk allow-pass vlan 34
    #
    interface GigabitEthernet0/0/2port link-type accessport default vlan 34
    #
    interface GigabitEthernet0/0/3port link-type accessport default vlan 34
    #
    return

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/679204.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

图灵日记--MapSet字符串常量池反射枚举Lambda表达式泛型

目录 搜索树概念实现性能分析和 java 类集的关系 搜索概念及场景模型 Map的使用Map常用方法 Set的说明常见方法说明 哈希表冲突-避免-负载因子调节冲突-解决-闭散列冲突-解决-开散列/哈希桶冲突严重时的解决办法 实现和 java 类集的关系 字符串常量池String对象创建intern方法 …

深入理解Go的垃圾回收机制

导语 如果你是一位Golang的开发者&#xff0c;你一定对于语言特性和详细结构有所了解。但是&#xff0c;你是否曾经停下来深入研究过Golang背后复杂而强大的垃圾回收&#xff08;GC&#xff09;机制&#xff1f;在这篇文章中&#xff0c;我们将具体深入探讨Golang垃圾回收机制…

机器学习系列——(十五)随机森林回归

引言 在机器学习的众多算法中&#xff0c;随机森林以其出色的准确率、对高维数据的处理能力以及对训练数据集的异常值的鲁棒性而广受欢迎。它是一种集成学习方法&#xff0c;通过构建多个决策树来进行预测和分类。本文将重点介绍随机森林在回归问题中的应用&#xff0c;即随机…

DP读书:《openEuler操作系统》(九)从IPC到网卡到卡驱动程序

DP读书&#xff1a;《openEuler操作系统》从IPC到网卡到卡驱动程序&#xff09; 上章回顾_SPI上节回顾_TCP 网卡驱动程序简介1.设备驱动2.总线与设备3.网卡及其抽象 驱动程序的注册与注销1. 注册2. 注销 设备初始化1. 硬件初始化2. 软件初始化 设备的打开与关闭1. 设备的打开2.…

微软和苏黎世联邦理工学院开源SliceGPT创新压缩技术节省大量部署资源;OpenAI成立儿童安全团队,防AI误用

&#x1f989; AI新闻 &#x1f680; 微软和苏黎世联邦理工学院开源SliceGPT创新压缩技术节省大量部署资源 摘要&#xff1a;微软和苏黎世联邦理工学院研究人员开源了SliceGPT&#xff0c;通过对大模型的权重矩阵进行压缩切片&#xff0c;实现了模型紧缩&#xff0c;节省了部…

Spring Boot 笔记 002 整合mybatis做数据库读取

概念 MyBatis 是一款优秀的持久层框架&#xff0c;它支持自定义 SQL、存储过程以及高级映射。MyBatis 免除了几乎所有的 JDBC 代码以及设置参数和获取结果集的工作。MyBatis 可以通过简单的 XML 或注解来配置和映射原始类型、接口和 Java POJO&#xff08;Plain Old Java Objec…

书生谱语-大语言模型测试demo

课程内容简介 1.作业 demo1 demo2 demo3 demo4

【leetcode】206. 反转链表(简单)题解学习

题目描述&#xff1a; 给你单链表的头节点 head &#xff0c;请你反转链表&#xff0c;并返回反转后的链表。 示例 1&#xff1a; 输入&#xff1a;head [1,2,3,4,5] 输出&#xff1a;[5,4,3,2,1]示例 2&#xff1a; 输入&#xff1a;head [1,2] 输出&#xff1a;[2,1]示例 …

【十五】【C++】list的简单实现

list 的迭代器解引用探究 /*list的迭代器解引用探究*/ #if 1 #include <list> #include <vector> #include <iostream> #include <algorithm> using namespace std;class Date {private:int _year;int _month;int _day;public:Date(): _year(2024), _m…

【CC++】内存管理2:new + delete

前言 今天继续来学new和delete operator new 与operator delete函数 new和delete是用户进行动态内存申请和释放的操作符&#xff0c;operator new 和operator delete是系统提供的全局函数&#xff0c;new在底层调用operator new全局函数来申请空间&#xff0c;delete在底层通…

【开源】基于JAVA+Vue+SpringBoot的二手车交易系统

目录 一、摘要1.1 项目介绍1.2 项目录屏 二、功能模块2.1 数据中心模块2.2 二手车档案管理模块2.3 车辆预约管理模块2.4 车辆预定管理模块2.5 车辆留言板管理模块2.6 车辆资讯管理模块 三、系统设计3.1 E-R图设计3.2 可行性分析3.2.1 技术可行性分析3.2.2 操作可行性3.2.3 经济…

Java核心设计模式:代理设计模式

一、生活中常见的代理案例 房地产中介&#xff1a;客户手里没有房源信息&#xff0c;找一个中介帮忙商品代购&#xff1a;代理者一般有好的资源渠道&#xff0c;降低购物成本&#xff08;如海外代购&#xff0c;自己不用为了买东西出国&#xff09; 二、为什么要使用代理 对…

AI修复历史人物 图像转真人 绝密档案

修复李白 开启control 不要点爆炸小按钮 权重建议&#xff1a;0.7-1.2 采样&#xff1a;DPM SDE Karras 如果人眼不好&#xff0c;开启高清修复&#xff0c;进行2次尝试 高难度 修复张居正 softhed 1 lineart_真实 1 适当调整lineart进入值。 如果效果不好&#xff…

CentOS安装MySQL

下载安装MySQL 官网下载MySQL ① 下载&#xff1a;访问链接&#xff1a;MySQL下载 ② 安装&#xff1a;将安装包上传并解压&#xff0c;解压&#xff1a; tar -zxvf mysql-x.x.xx-xxx.tar.gzyum安装MySQL ① 更新yum&#xff1a;sudo yum update ② 下载MySQL的rpm包&#…

【大厂AI课学习笔记】【1.6 人工智能基础知识】(2)机器学习

目录 必须理解的知识点&#xff1a; 举一个草莓的例子&#xff1a; 机器学习的三个类别&#xff1a; 监督学习&#xff1a; 无监督学习&#xff1a; 强化学习&#xff1a; 更多知识背景&#xff1a; 机器学习的诞生需求 监督学习的关键技术与实现步骤 无监督学习的关…

ubuntu篇---ubuntu安装python3.9

ubuntu篇—ubuntu安装python3.9 在ubuntu上安装Python有两种方法:在线安装和源码编译安装。 方法1&#xff1a;使用apt在线安装 1.更新软件包列表并安装必备组件&#xff1a; $ sudo apt update $ sudo apt install software-properties-common2.将Deadsnakes PPA添加到系统…

Keil : Error-Flash Download failed Cortex-M4错误

1.打开魔术棒 2.点击Debug设置 3.查看是否有你使用的板子型号的flash 4.如果没有的话就添加以下

【Python 千题 —— 基础篇】查找年龄

Python 千题持续更新中 …… 脑图地址 👉:⭐https://twilight-fanyi.gitee.io/mind-map/Python千题.html⭐ 题目描述 题目描述 班级中有 Tom、Alan、Bob、Candy、Sandy 五个人,他们组成字典 {Tom: 23, Alan: 24, Bob: 21, Candy: 22, Sandy: 21},字典的键是姓名,字典的…

详细讲解ES6箭头函数语法(附Demo)

目录 前言1. 传统函数2. 箭头函数3. 差异比较彩蛋 前言 讲述箭头函数之前&#xff0c;先了解传统函数的格式&#xff0c;方便做一个对比 1. 传统函数 函数声明&#xff1a; function greet() {console.log("Hello!"); } greet();函数表达式&#xff1a; const s…

Java实现教学资源共享平台 JAVA+Vue+SpringBoot+MySQL

目录 一、摘要1.1 项目介绍1.2 项目录屏 二、功能模块2.1 数据中心模块2.2 课程档案模块2.3 课程资源模块2.4 课程作业模块2.5 课程评价模块 三、系统设计3.1 用例设计3.2 类图设计3.3 数据库设计3.3.1 课程档案表3.3.2 课程资源表3.3.3 课程作业表3.3.4 课程评价表 四、系统展…