当前位置:   article > 正文

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

华为环网双机接入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

    1. # 在ACC1上创建VLAN,并将接口加入VLAN
    2. <HUAWEI> system-view
    3. [HUAWEI] sysname ACC1
    4. [ACC1] vlan batch 33
    5. [ACC1] interface gigabitethernet 0/0/1
    6. [ACC1-GigabitEthernet0/0/1] description ACC1***to***AGG
    7. [ACC1-GigabitEthernet0/0/1] port link-type trunk
    8. [ACC1-GigabitEthernet0/0/1] port trunk allow-pass vlan 33
    9. [ACC1-GigabitEthernet0/0/1] quit
    10. [ACC1] interface gigabitethernet 0/0/2
    11. [ACC1-GigabitEthernet0/0/2] port link-type access
    12. [ACC1-GigabitEthernet0/0/2] port default vlan 33
    13. [ACC1-GigabitEthernet0/0/2] quit
    14. [ACC1] interface gigabitethernet 0/0/3
    15. [ACC1-GigabitEthernet0/0/3] port link-type access
    16. [ACC1-GigabitEthernet0/0/3] port default vlan 33
    17. [ACC1-GigabitEthernet0/0/3] quit
    18. # 在ACC2上创建VLAN,并将接口加入VLAN
    19. <HUAWEI> system-view
    20. [HUAWEI] sysname ACC2
    21. [ACC2] vlan batch 34
    22. [ACC2] interface gigabitethernet 0/0/1
    23. [ACC2-GigabitEthernet0/0/1] description ACC2***to***AGG
    24. [ACC2-GigabitEthernet0/0/1] port link-type trunk
    25. [ACC2-GigabitEthernet0/0/1] port trunk allow-pass vlan 34
    26. [ACC2-GigabitEthernet0/0/1] quit
    27. [ACC2] interface gigabitethernet 0/0/2
    28. [ACC2-GigabitEthernet0/0/2] port link-type access
    29. [ACC2-GigabitEthernet0/0/2] port default vlan 34
    30. [ACC2-GigabitEthernet0/0/2] quit
    31. [ACC2] interface gigabitethernet 0/0/3
    32. [ACC2-GigabitEthernet0/0/3] port link-type access
    33. [ACC2-GigabitEthernet0/0/3] port default vlan 34
    34. [ACC2-GigabitEthernet0/0/3] quit
    35. # 在AGG上创建VLAN,并将接口加入VLAN
    36. <HUAWEI> system-view
    37. [HUAWEI] sysname AGG
    38. [AGG] vlan batch 11 22 33 to 34
    39. [AGG] interface gigabitethernet 0/0/1
    40. [AGG-GigabitEthernet0/0/1] description AGG***to***ACC1
    41. [AGG-GigabitEthernet0/0/1] port link-type trunk
    42. [AGG-GigabitEthernet0/0/1] port trunk allow-pass vlan 33
    43. [AGG-GigabitEthernet0/0/1] quit
    44. [AGG] interface gigabitethernet 0/0/2
    45. [AGG-GigabitEthernet0/0/2] description AGG***to***ACC2
    46. [AGG-GigabitEthernet0/0/2] port link-type trunk
    47. [AGG-GigabitEthernet0/0/2] port trunk allow-pass vlan 34
    48. [AGG-GigabitEthernet0/0/2] quit
    49. [AGG] interface gigabitethernet 0/0/4
    50. [AGG-GigabitEthernet0/0/4] description AGG***to***PE1
    51. [AGG-GigabitEthernet0/0/4] port link-type trunk
    52. [AGG-GigabitEthernet0/0/4] port trunk allow-pass vlan 11
    53. [AGG-GigabitEthernet0/0/4] quit
    54. [AGG] interface gigabitethernet 0/0/5
    55. [AGG-GigabitEthernet0/0/5] description AGG***to***PE2
    56. [AGG-GigabitEthernet0/0/5] port link-type trunk
    57. [AGG-GigabitEthernet0/0/5] port trunk allow-pass vlan 22
    58. [AGG-GigabitEthernet0/0/5] quit
    59. # 在PE1上创建VLAN,并将接口加入VLAN
    60. <HUAWEI> system-view
    61. [HUAWEI] sysname PE1
    62. [PE1] vlan batch 10 to 11
    63. [PE1] interface gigabitethernet 1/0/1
    64. [PE1-GigabitEthernet1/0/1] description PE1***to***LSW1
    65. [PE1-GigabitEthernet1/0/1] port link-type access
    66. [PE1-GigabitEthernet1/0/1] port default vlan 10
    67. [PE1-GigabitEthernet1/0/1] quit
    68. [PE1] interface gigabitethernet 1/0/4
    69. [PE1-GigabitEthernet1/0/4] description PE1***to***AGG
    70. [PE1-GigabitEthernet1/0/4] port link-type trunk
    71. [PE1-GigabitEthernet1/0/4] port trunk allow-pass vlan 11
    72. [PE1-GigabitEthernet1/0/4] quit
    73. # 在PE2上创建VLAN,并将接口加入VLAN
    74. <HUAWEI> system-view
    75. [HUAWEI] sysname PE2
    76. [PE2] vlan batch 10 22
    77. [PE2] interface gigabitethernet 1/0/1
    78. [PE2-GigabitEthernet1/0/1] description PE2***to***LSW2
    79. [PE2-GigabitEthernet1/0/1] port link-type access
    80. [PE2-GigabitEthernet1/0/1] port default vlan 10
    81. [PE2-GigabitEthernet1/0/1] quit
    82. [PE2] interface gigabitethernet 1/0/4
    83. [PE2-GigabitEthernet1/0/4] description PE2***to***AGG
    84. [PE2-GigabitEthernet1/0/4] port link-type trunk
    85. [PE2-GigabitEthernet1/0/4] port trunk allow-pass vlan 22
    86. [PE2-GigabitEthernet1/0/4] quit
    87. # 在LSW1上创建VLAN,并将接口加入VLAN
    88. <HUAWEI> system-view
    89. [HUAWEI] sysname LSW1
    90. [LSW1] vlan batch 10 88 301 400 530
    91. [LSW1] interface eth-trunk1
    92. [LSW1-Eth-Trunk1] description LSW1***to***LSW2
    93. [LSW1-Eth-Trunk1] port link-type trunk
    94. [LSW1-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530
    95. [LSW1-Eth-Trunk1] quit
    96. [LSW1] interface gigabitethernet 0/0/3
    97. [LSW1-GigabitEthernet0/0/3] eth-trunk 1
    98. [LSW1-GigabitEthernet0/0/3] quit
    99. [LSW1] interface gigabitethernet 0/0/4
    100. [LSW1-GigabitEthernet0/0/4] eth-trunk 1
    101. [LSW1-GigabitEthernet0/0/4] quit
    102. [LSW1] interface gigabitethernet 0/0/1
    103. [LSW1-GigabitEthernet0/0/1] description LSW1***to***PE1
    104. [LSW1-GigabitEthernet0/0/1] port link-type access
    105. [LSW1-GigabitEthernet0/0/1] port default vlan 10
    106. [LSW1-GigabitEthernet0/0/1] quit
    107. [LSW1] interface gigabitethernet 0/0/2
    108. [LSW1-GigabitEthernet0/0/2] description LSW1***to***CDN
    109. [LSW1-GigabitEthernet0/0/2] port link-type trunk
    110. [LSW1-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530
    111. [LSW1-GigabitEthernet0/0/2] quit
    112. # 在LSW2上创建VLAN,并将接口加入VLAN
    113. <HUAWEI> system-view
    114. [HUAWEI] sysname LSW2
    115. [LSW2] vlan batch 10 88 301 400 530
    116. [LSW2] interface eth-trunk1
    117. [LSW2-Eth-Trunk1] description LSW1***to***LSW2
    118. [LSW2-Eth-Trunk1] port link-type trunk
    119. [LSW2-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530
    120. [LSW2-Eth-Trunk1] quit
    121. [LSW2] interface gigabitethernet 0/0/3
    122. [LSW2-GigabitEthernet0/0/3] eth-trunk 1
    123. [LSW2-GigabitEthernet0/0/3] quit
    124. [LSW2] interface gigabitethernet 0/0/4
    125. [LSW2-GigabitEthernet0/0/4] eth-trunk 1
    126. [LSW2-GigabitEthernet0/0/4] quit
    127. [LSW2] interface gigabitethernet 0/0/1
    128. [LSW2-GigabitEthernet0/0/1] description LSW2***to***PE2
    129. [LSW2-GigabitEthernet0/0/1] port link-type access
    130. [LSW2-GigabitEthernet0/0/1] port default vlan 10
    131. [LSW2-GigabitEthernet0/0/1] quit
    132. [LSW2] interface gigabitethernet 0/0/2
    133. [LSW2-GigabitEthernet0/0/2] description LSW2***to***CDN
    134. [LSW2-GigabitEthernet0/0/2] port link-type trunk
    135. [LSW2-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530
    136. [LSW2-GigabitEthernet0/0/2] quit
    137. # 在CDN上创建VLAN,并将接口加入VLAN
    138. <HUAWEI> system-view
    139. [HUAWEI] sysname CDN
    140. [CDN] vlan batch 88 301 400 530
    141. [CDN] interface gigabitethernet 0/0/1
    142. [CDN-GigabitEthernet0/0/1] description CDN***to***LSW2
    143. [CDN-GigabitEthernet0/0/1] port link-type trunk
    144. [CDN-GigabitEthernet0/0/1] port trunk allow-pass vlan 88 301 400 530
    145. [CDN-GigabitEthernet0/0/1] quit
    146. [CDN] interface gigabitethernet 0/0/2
    147. [CDN-GigabitEthernet0/0/2] description CDN***to***LSW1
    148. [CDN-GigabitEthernet0/0/2] port link-type trunk
    149. [CDN-GigabitEthernet0/0/2] port trunk allow-pass vlan 88 301 400 530
    150. [CDN-GigabitEthernet0/0/2] quit
    151. [CDN] interface gigabitethernet 0/0/3
    152. [CDN-GigabitEthernet0/0/3] description CDN***to***HMS-Server
    153. [CDN-GigabitEthernet0/0/3] port link-type access
    154. [CDN-GigabitEthernet0/0/3] port default vlan 88
    155. [CDN-GigabitEthernet0/0/3] quit
    156. [CDN] interface gigabitethernet 0/0/4
    157. [CDN-GigabitEthernet0/0/4] description CDN***to***MRF-IN
    158. [CDN-GigabitEthernet0/0/4] port link-type access
    159. [CDN-GigabitEthernet0/0/4] port default vlan 400
    160. [CDN-GigabitEthernet0/0/4] quit
    161. [CDN] interface gigabitethernet 0/0/5
    162. [CDN-GigabitEthernet0/0/5] description CDN***to***MRF-OUT
    163. [CDN-GigabitEthernet0/0/5] port link-type access
    164. [CDN-GigabitEthernet0/0/5] port default vlan 530
    165. [CDN-GigabitEthernet0/0/5] quit

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

    1. # 在LSW1配置MSTP域并使能STP功能。
    2. [LSW1] stp region-configuration
    3. [LSW1-mst-region] region-name IPTV
    4. [LSW1-mst-region] instance 1 vlan 530
    5. [LSW1-mst-region] instance 2 vlan 88 301 400
    6. [LSW1-mst-region] active region-configuration
    7. [LSW1-mst-region] quit
    8. [LSW1] stp instance 1 root primary
    9. [LSW1] stp instance 2 root secondary
    10. [LSW1] stp enable //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    11. [LSW1] interface gigabitethernet 0/0/1
    12. [LSW1-GigabitEthernet0/0/1] stp disable
    13. [LSW1-GigabitEthernet0/0/1] quit
    14. # 在LSW2配置MSTP域并使能STP功能。
    15. [LSW2] stp region-configuration
    16. [LSW2-mst-region] region-name IPTV
    17. [LSW2-mst-region] instance 1 vlan 530
    18. [LSW2-mst-region] instance 2 vlan 88 301 400
    19. [LSW2-mst-region] active region-configuration
    20. [LSW2-mst-region] quit
    21. [LSW2] stp instance 1 root secondary
    22. [LSW2] stp instance 2 root primary
    23. [LSW2] stp enable //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    24. [LSW2] interface gigabitethernet 0/0/1
    25. [LSW2-GigabitEthernet0/0/1] stp disable
    26. [LSW2-GigabitEthernet0/0/1] quit
    27. # 在CDN配置MSTP域并使能STP功能。
    28. [CDN] stp region-configuration
    29. [CDN-mst-region] region-name IPTV
    30. [CDN-mst-region] instance 1 vlan 530
    31. [CDN-mst-region] instance 2 vlan 88 301 400
    32. [CDN-mst-region] active region-configuration
    33. [CDN-mst-region] quit
    34. [CDN] stp enable //缺省情况下,交换机全局和接口下都已使能STP功能。下面仅需要将不需要参与STP计算的接口去使能STP功能。
    35. [CDN] interface gigabitethernet 0/0/3
    36. [CDN-GigabitEthernet0/0/3] stp disable
    37. [CDN-GigabitEthernet0/0/3] quit
    38. [CDN] interface gigabitethernet 0/0/4
    39. [CDN-GigabitEthernet0/0/4] stp disable
    40. [CDN-GigabitEthernet0/0/4] quit
    41. [CDN] interface gigabitethernet 0/0/5
    42. [CDN-GigabitEthernet0/0/4] stp disable
    43. [CDN-GigabitEthernet0/0/4] quit

  3. 配置各接口的IP地址
    1. # 在Core配置接口的IP地址。
    2. <HUAWEI> system-view
    3. [HUAWEI] sysname Core
    4. [Core] interface gigabitethernet 1/0/1
    5. [Core-GigabitEthernet1/0/1] undo portswitch
    6. [Core-GigabitEthernet1/0/1] description Core***to***Sever
    7. [Core-GigabitEthernet1/0/1] ip address 66.1.1.3 255.255.255.0
    8. [Core-GigabitEthernet1/0/1] quit
    9. [Core] interface gigabitethernet 1/0/2
    10. [Core-GigabitEthernet1/0/2] undo portswitch
    11. [Core-GigabitEthernet1/0/2] description Core***to***PE2
    12. [Core-GigabitEthernet1/0/2] ip address 20.1.1.3 255.255.255.0
    13. [Core-GigabitEthernet1/0/2] quit
    14. [Core] interface gigabitethernet 1/0/3
    15. [Core-GigabitEthernet1/0/3] undo portswitch
    16. [Core-GigabitEthernet1/0/3] description Core***to***PE1
    17. [Core-GigabitEthernet1/0/3] ip address 12.1.1.2 255.255.255.0
    18. [Core-GigabitEthernet1/0/3] quit
    19. [Core] interface LoopBack0
    20. [Core-LoopBack0] ip address 1.1.1.3 255.255.255.255
    21. [Core-LoopBack0] quit
    22. # 在PE1配置接口的IP地址。
    23. [PE1] interface vlanif 10
    24. [PE1-Vlanif10] description to***LSW1
    25. [PE1-Vlanif10] ip address 10.1.1.1 255.255.255.0
    26. [PE1-Vlanif10] quit
    27. [PE1] interface vlanif 11
    28. [PE1-Vlanif11] description to***AGG
    29. [PE1-Vlanif11] ip address 11.1.1.1 255.255.255.0
    30. [PE1-Vlanif11] quit
    31. [PE1] interface gigabitethernet 1/0/2
    32. [PE1-GigabitEthernet1/0/2] undo portswitch
    33. [PE1-GigabitEthernet1/0/2] description PE1***to***Core
    34. [PE1-GigabitEthernet1/0/2] ip address 12.1.1.1 255.255.255.0
    35. [PE1-GigabitEthernet1/0/2] quit
    36. [PE1] interface gigabitethernet 1/0/3
    37. [PE1-GigabitEthernet1/0/3] undo portswitch
    38. [PE1-GigabitEthernet1/0/3] description PE1***to***PE2
    39. [PE1-GigabitEthernet1/0/3] ip address 60.1.1.1 255.255.255.0
    40. [PE1-GigabitEthernet1/0/3] quit
    41. [PE1] interface LoopBack0
    42. [PE1-LoopBack0] ip address 1.1.1.1 255.255.255.255
    43. [PE1-LoopBack0] quit
    44. # 在PE2配置接口的IP地址。
    45. [PE2] interface vlanif 10
    46. [PE2-Vlanif10] description to***LSW2
    47. [PE2-Vlanif10] ip address 10.1.2.1 255.255.255.0
    48. [PE2-Vlanif10] quit
    49. [PE2] interface vlanif 22
    50. [PE2-Vlanif22] description to***AGG
    51. [PE2-Vlanif22] ip address 22.1.1.2 255.255.255.0
    52. [PE2-Vlanif22] quit
    53. [PE2] interface gigabitethernet 1/0/2
    54. [PE2-GigabitEthernet1/0/2] undo portswitch
    55. [PE2-GigabitEthernet1/0/2] description PE2***to***Core
    56. [PE2-GigabitEthernet1/0/2] ip address 20.1.1.2 255.255.255.0
    57. [PE2-GigabitEthernet1/0/2] quit
    58. [PE2] interface gigabitethernet 1/0/3
    59. [PE2-GigabitEthernet1/0/3] undo portswitch
    60. [PE2-GigabitEthernet1/0/3] description PE2***to***PE1
    61. [PE2-GigabitEthernet1/0/3] ip address 60.1.1.2 255.255.255.0
    62. [PE2-GigabitEthernet1/0/3] quit
    63. [PE2] interface LoopBack0
    64. [PE2-LoopBack0] ip address 1.1.1.2 255.255.255.255
    65. [PE2-LoopBack0] quit
    66. # 在AGG配置接口的IP地址。
    67. [AGG] interface vlanif 11
    68. [AGG-Vlanif11] description to***PE1
    69. [AGG-Vlanif11] ip address 11.1.1.8 255.255.255.0
    70. [AGG-Vlanif11] quit
    71. [AGG] interface vlanif 22
    72. [AGG-Vlanif22] description to***PE2
    73. [AGG-Vlanif22] ip address 22.1.1.8 255.255.255.0
    74. [AGG-Vlanif22] quit
    75. [AGG] interface vlanif 33
    76. [AGG-Vlanif33] description to***ACC1
    77. [AGG-Vlanif33] ip address 33.1.1.8 255.255.255.0
    78. [AGG-Vlanif33] quit
    79. [AGG] interface vlanif 34
    80. [AGG-Vlanif34] description to***ACC2
    81. [AGG-Vlanif34] ip address 34.1.1.8 255.255.255.0
    82. [AGG-Vlanif34] quit
    83. [AGG] interface LoopBack0
    84. [AGG-LoopBack0] ip address 1.1.1.4 255.255.255.255
    85. [AGG-LoopBack0] quit
    86. # 在LSW1配置接口的IP地址。
    87. [LSW1] interface vlanif 10
    88. [LSW1-Vlanif10] description to***PE1
    89. [LSW1-Vlanif10] ip address 10.1.1.2 255.255.255.0
    90. [LSW1-Vlanif10] quit
    91. [LSW1] interface vlanif 88
    92. [LSW1-Vlanif88] description to***HMS
    93. [LSW1-Vlanif88] ip address 88.1.1.7 255.255.255.0
    94. [LSW1-Vlanif88] quit
    95. [LSW1] interface vlanif 301
    96. [LSW1-Vlanif301] description to***LSW2
    97. [LSW1-Vlanif301] ip address 31.1.1.1 255.255.255.0
    98. [LSW1-Vlanif301] quit
    99. [LSW1] interface vlanif 400
    100. [LSW1-Vlanif400] description to***MRF IN
    101. [LSW1-Vlanif400] ip address 4.1.1.2 255.255.255.0
    102. [LSW1-Vlanif400] quit
    103. [LSW1] interface vlanif 530
    104. [LSW1-Vlanif530] description to***MRF OUT
    105. [LSW1-Vlanif530] ip address 5.1.1.2 255.255.255.0
    106. [LSW1-Vlanif530] quit
    107. # 在LSW2配置接口的IP地址。
    108. [LSW2] interface vlanif 10
    109. [LSW2-Vlanif10] description to***PE2
    110. [LSW2-Vlanif10] ip address 10.1.2.2 255.255.255.0
    111. [LSW2-Vlanif10] quit
    112. [LSW2] interface vlanif 88
    113. [LSW2-Vlanif88] description to***HMS
    114. [LSW2-Vlanif88] ip address 88.1.1.5 255.255.255.0
    115. [LSW2-Vlanif88] quit
    116. [LSW2] interface vlanif 301
    117. [LSW2-Vlanif301] description to***LSW2
    118. [LSW2-Vlanif301] ip address 31.1.1.2 255.255.255.0
    119. [LSW2-Vlanif301] quit
    120. [LSW2] interface vlanif 400
    121. [LSW2-Vlanif400] description to***MRF IN
    122. [LSW2-Vlanif400] ip address 4.1.1.3 255.255.255.0
    123. [LSW2-Vlanif400] quit
    124. [LSW2] interface vlanif 530
    125. [LSW2-Vlanif530] description to***MRF OUT
    126. [LSW2-Vlanif530] ip address 5.1.1.3 255.255.255.0
    127. [LSW2-Vlanif530] quit

  4. 配置VRRP功能

    1. # 在LSW1配置VRRP备份功能。
    2. [LSW1] interface vlanif 88
    3. [LSW1-Vlanif88] vrrp vrid 2 virtual-ip 88.1.1.100
    4. [LSW1-Vlanif88] vrrp vrid 2 priority 120
    5. [LSW1-Vlanif88] vrrp vrid 2 preempt-mode timer delay 20
    6. [LSW1-Vlanif88] vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 100
    7. [LSW1-Vlanif88] quit
    8. [LSW1] interface vlanif 400
    9. [LSW1-Vlanif400] vrrp vrid 40 virtual-ip 4.1.1.10
    10. [LSW1-Vlanif400] vrrp vrid 40 priority 120
    11. [LSW1-Vlanif400] quit
    12. [LSW1] interface vlanif 530
    13. [LSW1-Vlanif530] vrrp vrid 53 virtual-ip 5.1.1.10
    14. [LSW1-Vlanif530] vrrp vrid 53 priority 120
    15. [LSW1-Vlanif530] quit
    16. # 在LSW2配置VRRP备份功能。
    17. [LSW2] interface vlanif 88
    18. [LSW2-Vlanif88] vrrp vrid 2 virtual-ip 88.1.1.100
    19. [LSW2-Vlanif88] quit
    20. [LSW2] interface vlanif 400
    21. [LSW2-Vlanif400] vrrp vrid 40 virtual-ip 4.1.1.10
    22. [LSW2-Vlanif400] quit
    23. [LSW2] interface vlanif 530
    24. [LSW2-Vlanif530] vrrp vrid 53 virtual-ip 5.1.1.10
    25. [LSW2-Vlanif530] quit

  5. 配置OSPF功能

    1. # 在Core配置OSPF功能。
    2. [Core] ospf 1
    3. [Core-ospf-1] area 0
    4. [Core-ospf-1-area-0.0.0.0] quit
    5. [Core-ospf-1] quit
    6. [Core] interface gigabitethernet 1/0/1
    7. [Core-GigabitEthernet1/0/1] ospf enable 1 area 0.0.0.0
    8. [Core-GigabitEthernet1/0/1] quit
    9. [Core] interface gigabitethernet 1/0/2
    10. [Core-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
    11. [Core-GigabitEthernet1/0/2] quit
    12. [Core] interface gigabitethernet 1/0/3
    13. [Core-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
    14. [Core-GigabitEthernet1/0/3] quit
    15. [Core] interface LoopBack0
    16. [Core-LoopBack0] ospf enable 1 area 0.0.0.0
    17. [Core-LoopBack0] quit
    18. # 在PE1配置OSPF功能。
    19. [PE1] ospf 1
    20. [PE1-ospf-1] area 0
    21. [PE1-ospf-1-area-0.0.0.0] quit
    22. [PE1-ospf-1] area 1
    23. [PE1-ospf-1-area-0.0.0.1] nssa
    24. [PE1-ospf-1-area-0.0.0.1] quit
    25. [PE1-ospf-1] quit
    26. [PE1] interface vlanif 10
    27. [PE1-Vlanif10] ospf enable 1 area 0.0.0.1
    28. [PE1-Vlanif10] quit
    29. [PE1] interface vlanif 11
    30. [PE1-Vlanif11] ospf enable 1 area 0.0.0.0
    31. [PE1-Vlanif11] quit
    32. [PE1] interface gigabitethernet 1/0/2
    33. [PE1-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
    34. [PE1-GigabitEthernet1/0/2] quit
    35. [PE1] interface gigabitethernet 1/0/3
    36. [PE1-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
    37. [PE1-GigabitEthernet1/0/3] quit
    38. [PE1] interface LoopBack0
    39. [PE1-LoopBack0] ospf enable 1 area 0.0.0.0
    40. [PE1-LoopBack0] quit
    41. # 在PE2配置OSPF功能。
    42. [PE2] ospf 1
    43. [PE2-ospf-1] area 0
    44. [PE2-ospf-1-area-0.0.0.0] quit
    45. [PE2-ospf-1] area 1
    46. [PE2-ospf-1-area-0.0.0.1] nssa
    47. [PE2-ospf-1-area-0.0.0.1] quit
    48. [PE2-ospf-1] quit
    49. [PE2] interface vlanif 10
    50. [PE2-Vlanif10] ospf enable 1 area 0.0.0.1
    51. [PE2-Vlanif10] quit
    52. [PE2] interface vlanif 22
    53. [PE2-Vlanif22] ospf enable 1 area 0.0.0.0
    54. [PE2-Vlanif22] quit
    55. [PE2] interface gigabitethernet 1/0/2
    56. [PE2-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
    57. [PE2-GigabitEthernet1/0/2] quit
    58. [PE2] interface gigabitethernet 1/0/3
    59. [PE2-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
    60. [PE2-GigabitEthernet1/0/3] quit
    61. [PE2] interface LoopBack0
    62. [PE2-LoopBack0] ospf enable 1 area 0.0.0.0
    63. [PE2-LoopBack0] quit
    64. # 在AGG配置OSPF功能,同时修改优先级,进行路由备份。
    65. [AGG] ospf 1
    66. [AGG-ospf-1] area 0
    67. [AGG-ospf-1-area-0.0.0.0] quit
    68. [AGG-ospf-1] quit
    69. [AGG] interface vlanif 11
    70. [AGG-Vlanif11] ospf enable 1 area 0.0.0.0
    71. [AGG-Vlanif11] quit
    72. [AGG] interface vlanif 22
    73. [AGG-Vlanif22] ospf cost 10000
    74. [AGG-Vlanif22] ospf enable 1 area 0.0.0.0
    75. [AGG-Vlanif22] quit
    76. [AGG] interface vlanif 33
    77. [AGG-Vlanif33] ospf enable 1 area 0.0.0.0
    78. [AGG-Vlanif33] quit
    79. [AGG] interface vlanif 34
    80. [AGG-Vlanif34] ospf enable 1 area 0.0.0.0
    81. [AGG-Vlanif34] quit
    82. [AGG] interface LoopBack0
    83. [AGG-LoopBack0] ospf enable 1 area 0.0.0.0
    84. [AGG-LoopBack0] quit
    85. # 在LSW1配置OSPF功能。
    86. [LSW1] interface vlanif 10
    87. [LSW1-Vlanif10] ospf enable 1 area 0.0.0.1
    88. [LSW1-Vlanif10] quit
    89. [LSW1] interface vlanif 301
    90. [LSW1-Vlanif301] ospf network-type p2p
    91. [LSW1-Vlanif301] ospf timer hello 1
    92. [LSW1-Vlanif301] quit
    93. [LSW1] ospf 1 router-id 192.168.1.1
    94. [LSW1-ospf-1] default-route-advertise
    95. [LSW1-ospf-1] silent-interface Vlanif88
    96. [LSW1-ospf-1] silent-interface Vlanif530
    97. [LSW1-ospf-1] silent-interface Vlanif400
    98. [LSW1-ospf-1] area 1
    99. [LSW1-ospf-1-area-0.0.0.1] network 5.1.1.0 0.0.0.255
    100. [LSW1-ospf-1-area-0.0.0.1] network 10.1.1.0 0.0.0.255
    101. [LSW1-ospf-1-area-0.0.0.1] network 31.1.1.0 0.0.0.255
    102. [LSW1-ospf-1-area-0.0.0.1] network 88.1.1.0 0.0.0.255
    103. [LSW1-ospf-1-area-0.0.0.1] nssa
    104. [LSW1-ospf-1-area-0.0.0.1] quit
    105. [LSW1-ospf-1] quit
    106. # 在LSW2配置OSPF功能。
    107. [LSW2] interface vlanif 10
    108. [LSW2-Vlanif10] ospf enable 1 area 0.0.0.1
    109. [LSW2-Vlanif10] quit
    110. [LSW2] interface vlanif 301
    111. [LSW2-Vlanif301] ospf network-type p2p
    112. [LSW2-Vlanif301] ospf timer hello 1
    113. [LSW2-Vlanif301] quit
    114. [LSW2] ospf 1 router-id 192.168.1.2
    115. [LSW2-ospf-1] default-route-advertise
    116. [LSW2-ospf-1] silent-interface Vlanif88
    117. [LSW2-ospf-1] silent-interface Vlanif530
    118. [LSW2-ospf-1] silent-interface Vlanif400
    119. [LSW2-ospf-1] area 1
    120. [LSW2-ospf-1-area-0.0.0.1] network 5.1.1.0 0.0.0.255
    121. [LSW2-ospf-1-area-0.0.0.1] network 10.1.1.0 0.0.0.255
    122. [LSW2-ospf-1-area-0.0.0.1] network 31.1.1.0 0.0.0.255
    123. [LSW2-ospf-1-area-0.0.0.1] network 88.1.1.0 0.0.0.255
    124. [LSW2-ospf-1-area-0.0.0.1] nssa
    125. [LSW2-ospf-1-area-0.0.0.1] quit
    126. [LSW2-ospf-1] quit

  6. 配置三层组播功能

    1. # 在Core配置三层组播功能。
    2. [Core] multicast routing-enable
    3. [Core] pim
    4. [Core-pim] static-rp 1.1.1.2
    5. [Core-pim] quit
    6. [Core] interface gigabitethernet 1/0/1
    7. [Core-GigabitEthernet1/0/1] pim sm
    8. [Core-GigabitEthernet1/0/1] quit
    9. [Core] interface gigabitethernet 1/0/2
    10. [Core-GigabitEthernet1/0/2] pim sm
    11. [Core-GigabitEthernet1/0/2] quit
    12. [Core] interface gigabitethernet 1/0/3
    13. [Core-GigabitEthernet1/0/3] pim sm
    14. [Core-GigabitEthernet1/0/3] quit
    15. # 在PE1配置三层组播功能。
    16. [PE1] multicast routing-enable
    17. [PE1] pim
    18. [PE1-pim] c-bsr LoopBack0
    19. [PE1-pim] c-rp LoopBack0
    20. [PE1-pim] static-rp 1.1.1.2
    21. [PE1-pim] quit
    22. [PE1] interface vlanif 10
    23. [PE1-Vlanif10] pim sm
    24. [PE1-Vlanif10] quit
    25. [PE1] interface vlanif 11
    26. [PE1-Vlanif11] pim sm
    27. [PE1-Vlanif11] quit
    28. [PE1] interface gigabitethernet 1/0/2
    29. [PE1-GigabitEthernet1/0/2] pim sm
    30. [PE1-GigabitEthernet1/0/2] quit
    31. [PE1] interface gigabitethernet 1/0/3
    32. [PE1-GigabitEthernet1/0/3] pim sm
    33. [PE1-GigabitEthernet1/0/3] quit
    34. [PE1] interface LoopBack0
    35. [PE1-LoopBack0] pim sm
    36. [PE1-LoopBack0] quit
    37. # 在PE2配置三层组播功能。
    38. [PE2] multicast routing-enable
    39. [PE2] pim
    40. [PE2-pim] static-rp 1.1.1.2
    41. [PE2-pim] quit
    42. [PE2] interface vlanif 10
    43. [PE2-Vlanif10] pim sm
    44. [PE2-Vlanif10] quit
    45. [PE2] interface vlanif 22
    46. [PE2-Vlanif22] pim sm
    47. [PE2-Vlanif22] quit
    48. [PE2] interface gigabitethernet 1/0/2
    49. [PE2-GigabitEthernet1/0/2] pim sm
    50. [PE2-GigabitEthernet1/0/2] quit
    51. [PE2] interface gigabitethernet 1/0/3
    52. [PE2-GigabitEthernet1/0/3] pim sm
    53. [PE2-GigabitEthernet1/0/3] quit
    54. [PE2] interface LoopBack0
    55. [PE2-LoopBack0] pim sm
    56. [PE2-LoopBack0] quit
    57. # 在AGG配置三层组播功能。
    58. [AGG] multicast routing-enable
    59. [AGG] pim
    60. [AGG-pim] static-rp 1.1.1.2
    61. [AGG-pim] quit
    62. [AGG] interface vlanif 11
    63. [AGG-Vlanif11] pim sm
    64. [AGG-Vlanif11] quit
    65. [AGG] interface vlanif 22
    66. [AGG-Vlanif22] pim sm
    67. [AGG-Vlanif22] quit
    68. [AGG] interface vlanif 33
    69. [AGG-Vlanif33] pim sm
    70. [AGG-Vlanif33] igmp enable //与用户相连,需要使能IGMP功能
    71. [AGG-Vlanif33] quit
    72. [AGG] interface vlanif 34
    73. [AGG-Vlanif34] pim sm
    74. [AGG-Vlanif34] igmp enable
    75. [AGG-Vlanif34] quit
    76. # 在LSW1配置三层组播功能。
    77. [LSW1] multicast routing-enable
    78. [LSW1] pim
    79. [LSW1-pim] static-rp 1.1.1.1
    80. [LSW1-pim] quit
    81. [LSW1] interface vlanif 10
    82. [LSW1-Vlanif10] pim sm
    83. [LSW1-Vlanif10] quit
    84. [LSW1] interface vlanif 301
    85. [LSW1-Vlanif301] pim sm
    86. [LSW1-Vlanif301] quit
    87. [LSW1] interface vlanif 400
    88. [LSW1-Vlanif400] pim hello-option dr-priority 100 //调整优先级,保证组播流量优先从LSW1转发
    89. [LSW1-Vlanif400] pim sm
    90. [LSW1-Vlanif400] igmp enable
    91. [LSW1-Vlanif400] quit
    92. [LSW1] interface vlanif 530
    93. [LSW1-Vlanif530] pim sm
    94. [LSW1-Vlanif530] pim hello-option dr-priority 100
    95. [LSW1-Vlanif530] igmp enable //与解码服务器相连,需要使能IGMP功能
    96. [LSW1-Vlanif530] quit
    97. # 在LSW2配置三层组播功能。
    98. [LSW2] multicast routing-enable
    99. [LSW2] pim
    100. [LSW2-pim] static-rp 1.1.1.1
    101. [LSW2-pim] quit
    102. [LSW2] interface vlanif 10
    103. [LSW2-Vlanif10] pim sm
    104. [LSW2-Vlanif10] quit
    105. [LSW2] interface vlanif 301
    106. [LSW2-Vlanif301] pim sm
    107. [LSW2-Vlanif301] quit
    108. [LSW2] interface vlanif 400
    109. [LSW2-Vlanif400] pim sm
    110. [LSW2-Vlanif400] igmp enable
    111. [LSW2-Vlanif400] quit
    112. [LSW2] interface vlanif 530
    113. [LSW2-Vlanif530] pim sm
    114. [LSW2-Vlanif530] igmp enable
    115. [LSW2-Vlanif530] quit

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

    1. # 在ACC1上使能IGMP Snooping功能。
    2. [ACC1] igmp-snooping enable
    3. [ACC1] vlan 33
    4. [ACC1-vlan33] igmp-snooping enable
    5. [ACC1-vlan33] multicast drop-unknown
    6. [ACC1-vlan33] quit
    7. # 在ACC2上使能IGMP Snooping功能。
    8. [ACC2] igmp-snooping enable
    9. [ACC2] vlan 34
    10. [ACC2-vlan34] igmp-snooping enable
    11. [ACC2-vlan34] multicast drop-unknown
    12. [ACC2-vlan34] quit
    13. # 在LSW1上使能IGMP Snooping功能。
    14. [LSW1] igmp-snooping enable
    15. [LSW1] vlan 301
    16. [LSW1-vlan301] igmp-snooping enable
    17. [LSW1-vlan301] quit
    18. [LSW1] vlan 530
    19. [LSW1-vlan530] igmp-snooping enable
    20. [LSW1-vlan530] quit
    21. # 在LSW2上使能IGMP Snooping功能。
    22. [LSW2] igmp-snooping enable
    23. [LSW2] vlan 301
    24. [LSW2-vlan301] igmp-snooping enable
    25. [LSW2-vlan301] quit
    26. [LSW2] vlan 530
    27. [LSW2-vlan530] igmp-snooping enable
    28. [LSW2-vlan530] quit

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

    1. # 在LSW1上配置流策略。
    2. [LSW1] acl number 3000
    3. [LSW1-acl-adv-3000] description ***ACL FOR IPTV_Service_IN***
    4. [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
    5. [LSW1-acl-adv-3000] quit
    6. [LSW1] acl number 3998
    7. [LSW1-acl-adv-3998] description ***ACL FOR Multicast Remark***
    8. [LSW1-acl-adv-3998] rule 5 permit ip source 5.1.1.80 0.0.0.15
    9. [LSW1-acl-adv-3998] quit
    10. [LSW1] traffic classifier IPTV_Service_IN
    11. [LSW1-classifier-IPTV_Service_IN] if-match acl 3000
    12. [LSW1-classifier-IPTV_Service_IN] quit
    13. [LSW1] traffic classifier IPTV_Multicast_Remark
    14. [LSW1-classifier-IPTV_Multicast_Remark] if-match acl 3998
    15. [LSW1-classifier-IPTV_Multicast_Remark] quit
    16. [LSW1] traffic behavior IPTV_Service_IN
    17. [LSW1-behavior-IPTV_Service_IN] permit
    18. [LSW1-behavior-IPTV_Service_IN] quit
    19. [LSW1] traffic behavior IPTV_Multicast_Remark
    20. [LSW1-behavior-IPTV_Multicast_Remark] permit
    21. [LSW1-behavior-IPTV_Multicast_Remark] remark dscp af41
    22. [LSW1-behavior-IPTV_Multicast_Remark] quit
    23. [LSW1] traffic policy IPTV_Service_IN
    24. [LSW1-trafficpolicy-IPTV_Service_IN] classifier IPTV_Service_IN behavior IPTV_Service_IN
    25. [LSW1-trafficpolicy-IPTV_Service_IN] quit
    26. [LSW1] traffic policy IPTV_Multicast_Remark
    27. [LSW1-trafficpolicy-IPTV_Multicast_Remark] classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
    28. [LSW1-trafficpolicy-IPTV_Multicast_Remark] quit
    29. [LSW1] interface gigabitethernet 0/0/1
    30. [LSW1-GigabitEthernet0/0/1] traffic-policy IPTV_Service_IN inbound
    31. [LSW1-GigabitEthernet0/0/1] quit
    32. [LSW1] interface gigabitethernet 0/0/2
    33. [LSW1-GigabitEthernet0/0/2] traffic-policy IPTV_Multicast_Remark inbound
    34. [LSW1-GigabitEthernet0/0/2] quit
    35. # 在LSW2上配置流策略。
    36. [LSW2] acl number 3000
    37. [LSW2-acl-adv-3000] description ***ACL FOR IPTV_Service_IN***
    38. [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
    39. [LSW2-acl-adv-3000] quit
    40. [LSW2] acl number 3998
    41. [LSW2-acl-adv-3998] description ***ACL FOR Multicast Remark***
    42. [LSW2-acl-adv-3998] rule 5 permit ip source 5.1.1.80 0.0.0.15
    43. [LSW2-acl-adv-3998] quit
    44. [LSW2] traffic classifier IPTV_Service_IN
    45. [LSW2-classifier-IPTV_Service_IN] if-match acl 3000
    46. [LSW2-classifier-IPTV_Service_IN] quit
    47. [LSW2] traffic classifier IPTV_Multicast_Remark
    48. [LSW2-classifier-IPTV_Multicast_Remark] if-match acl 3998
    49. [LSW2-classifier-IPTV_Multicast_Remark] quit
    50. [LSW2] traffic behavior IPTV_Service_IN
    51. [LSW2-behavior-IPTV_Service_IN] permit
    52. [LSW2-behavior-IPTV_Service_IN] quit
    53. [LSW2] traffic behavior IPTV_Multicast_Remark
    54. [LSW2-behavior-IPTV_Multicast_Remark] permit
    55. [LSW2-behavior-IPTV_Multicast_Remark] remark dscp af41
    56. [LSW2-behavior-IPTV_Multicast_Remark] quit
    57. [LSW2] traffic policy IPTV_Service_IN
    58. [LSW2-trafficpolicy-IPTV_Service_IN] classifier IPTV_Service_IN behavior IPTV_Service_IN
    59. [LSW2-trafficpolicy-IPTV_Service_IN] quit
    60. [LSW2] traffic policy IPTV_Multicast_Remark
    61. [LSW2-trafficpolicy-IPTV_Multicast_Remark] classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
    62. [LSW2-trafficpolicy-IPTV_Multicast_Remark] quit
    63. [LSW2] interface gigabitethernet 0/0/1
    64. [LSW2-GigabitEthernet0/0/1] traffic-policy IPTV_Service_IN inbound
    65. [LSW2-GigabitEthernet0/0/1] quit
    66. [LSW2] interface gigabitethernet 0/0/2
    67. [LSW2-GigabitEthernet0/0/2] traffic-policy IPTV_Multicast_Remark inbound
    68. [LSW2-GigabitEthernet0/0/2] quit

  9. 验证配置结果

    1. # 配置完成后,CorePE1PE2AGG上可以正常生成PIM邻居信息。
    2. [Core] display pim neighbor
    3. VPN-Instance: public net
    4. Total Number of Neighbors = 2
    5. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
    6. 12.1.1.1 GE1/0/3 01:09:01 00:01:43 1 N
    7. 20.1.1.2 GE1/0/2 01:06:30 00:01:39 1 N
    8. [PE1] display pim neighbor
    9. VPN-Instance: public net
    10. Total Number of Neighbors = 4
    11. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
    12. 12.1.1.2 GE1/0/2 01:10:48 00:01:27 1 N
    13. 60.1.1.2 GE1/0/3 01:08:06 00:01:40 1 N
    14. 10.1.1.2 Vlanif10 00:39:38 00:01:21 1 N
    15. 11.1.1.8 Vlanif11 01:05:16 00:01:30 1 N
    16. [PE2] display pim neighbor
    17. VPN-Instance: public net
    18. Total Number of Neighbors = 4
    19. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
    20. 20.1.1.3 GE1/0/2 01:11:32 00:01:42 1 N
    21. 60.1.1.1 GE1/0/3 01:11:18 00:01:27 1 N
    22. 10.1.2.2 Vlanif10 00:41:06 00:01:39 1 N
    23. 22.1.1.8 Vlanif22 01:08:28 00:01:42 1 N
    24. [AGG] display pim neighbor
    25. VPN-Instance: public net
    26. Total Number of Neighbors = 2
    27. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
    28. 11.1.1.1 Vlanif11 01:09:30 00:01:20 1 N
    29. 22.1.1.2 Vlanif22 01:08:34 00:01:18 1 N
    30. # 用户发送IGMP Report报文后,ACC1ACC2上可以正常生成组播组成员端口信息。
    31. [ACC1]display igmp-snooping port-info
    32. --------------------------------------------------------------------------------
    33. (Source, Group) Port Flag
    34. Flag: S:Static D:Dynamic M: Ssm-mapping
    35. --------------------------------------------------------------------------------
    36. VLAN 33, 1 Entry(s)
    37. (*, 225.1.1.1) GE0/0/2 -D-
    38. GE0/0/3 -D-
    39. 2 port(s) include
    40. --------------------------------------------------------------------------------
    41. [ACC2] display igmp-snooping port-info
    42. --------------------------------------------------------------------------------
    43. (Source, Group) Port Flag
    44. Flag: S:Static D:Dynamic M: Ssm-mapping
    45. --------------------------------------------------------------------------------
    46. VLAN 34, 1 Entry(s)
    47. (*, 225.1.1.1) GE0/0/2 -D-
    48. GE0/0/3 -D-
    49. 2 port(s) include
    50. --------------------------------------------------------------------------------
    51. # 组播源发送组播报文,解码服务器发送组播组加入报文后,LSW1PE1上可以正常生成组播路由表。
    52. [LSW1] display pim routing-table
    53. VPN-Instance: public net
    54. Total 1 (*, G) entry; 0 (S, G) entry
    55. (*, 225.0.0.1)
    56. RP: 1.1.1.1
    57. Protocol: pim-sm, Flag: WC
    58. UpTime: 00:06:50
    59. Upstream interface: Vlanif10
    60. Upstream neighbor: 10.1.1.1
    61. RPF prime neighbor: 10.1.1.1
    62. Downstream interface(s) information:
    63. Total number of downstreams: 1
    64. 1: Vlanif530
    65. Protocol: igmp, UpTime: 00:01:42, Expires: -
    66. [PE1] display pim routing-table
    67. VPN-Instance: public net
    68. Total 1 (*, G) entry; 0 (S, G) entry
    69. (*, 225.0.0.1)
    70. RP: 1.1.1.1 (local)
    71. Protocol: pim-sm, Flag: WC
    72. UpTime: 00:12:46
    73. Upstream interface: Register
    74. Upstream neighbor: NULL
    75. RPF prime neighbor: NULL
    76. Downstream interface(s) information:
    77. Total number of downstreams: 1
    78. 1: Vlanif10
    79. Protocol: pim-sm, UpTime: 00:08:59, Expires: 00:02:31

配置文件
  • Core的配置文件

    #
    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
  • PE的配置文件

    PE1配置文件

    PE2配置文件

    #
    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的配置文件

    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-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的配置文件
    #
    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的配置文件
    #
    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的配置文件

    ACC1的配置文件

    ACC2的配置文件

    #
    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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/88626
推荐阅读
相关标签
  

闽ICP备14008679号