当前位置:   article > 正文

华为Eth-Trunk级联堆叠接入IPTV网络部署案例

华为Eth-Trunk级联堆叠接入IPTV网络部署案例

Eth-Trunk级联堆叠接入IPTV网络部署案例

组网图形

图2 Eth-Trunk级联堆叠IPTV基本组网图

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

方案简介

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

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

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

图1 Eth-Trunk级联堆叠场景视频流量转发路径

配置注意事项

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

组网需求

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

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

数据规划
表1 VLAN规划

参数项

描述

VLAN 33

ACC1下挂用户所属的VLAN。

VLAN 34

ACC2下挂用户所属的VLAN。

VLAN 88

用户回看节目使用的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,对应的接口是Eth-Trunk2

连接Stack的接口。Eth-Trunk2绑定的物理接口是GE1/0/6和GE1/0/7。

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的三层接口。

Vlanif21:21.1.1.1/24,对应的接口是Eth-Trunk3

连接Stack的接口。Eth-Trunk3绑定的物理接口是GE1/0/6和GE1/0/7

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

-

Stack

Vlanif10:10.1.1.2/24,对应的接口是Eth-Trunk2

连接PE1的接口。Eth-Trunk2绑定的物理接口是GE0/0/6和GE1/0/6。

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

用于与录制服务器通信。

Vlanif21:21.1.1.2/24,对应的接口是Eth-Trunk3

连接PE2的接口。Eth-Trunk3绑定的物理接口是GE0/0/8和GE1/0/8。

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

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

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

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

配置思路

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

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

操作步骤
  1. 创建VLAN并配置各接口所属VLAN
  2. # 在ACC1上创建VLAN,并将接口加入VLAN
  3. <HUAWEI> system-view
  4. [HUAWEI] sysname ACC1
  5. [ACC1] vlan batch 33
  6. [ACC1] interface gigabitethernet 0/0/1
  7. [ACC1-GigabitEthernet0/0/1] description ACC1***to***AGG
  8. [ACC1-GigabitEthernet0/0/1] port link-type trunk
  9. [ACC1-GigabitEthernet0/0/1] port trunk allow-pass vlan 33
  10. [ACC1-GigabitEthernet0/0/1] quit
  11. [ACC1] interface gigabitethernet 0/0/2
  12. [ACC1-GigabitEthernet0/0/2] port link-type access
  13. [ACC1-GigabitEthernet0/0/2] port default vlan 33
  14. [ACC1-GigabitEthernet0/0/2] quit
  15. [ACC1] interface gigabitethernet 0/0/3
  16. [ACC1-GigabitEthernet0/0/3] port link-type access
  17. [ACC1-GigabitEthernet0/0/3] port default vlan 33
  18. [ACC1-GigabitEthernet0/0/3] quit
  19. # 在ACC2上创建VLAN,并将接口加入VLAN
  20. <HUAWEI> system-view
  21. [HUAWEI] sysname ACC2
  22. [ACC2] vlan batch 34
  23. [ACC2] interface gigabitethernet 0/0/1
  24. [ACC2-GigabitEthernet0/0/1] description ACC2***to***AGG
  25. [ACC2-GigabitEthernet0/0/1] port link-type trunk
  26. [ACC2-GigabitEthernet0/0/1] port trunk allow-pass vlan 34
  27. [ACC2-GigabitEthernet0/0/1] quit
  28. [ACC2] interface gigabitethernet 0/0/2
  29. [ACC2-GigabitEthernet0/0/2] port link-type access
  30. [ACC2-GigabitEthernet0/0/2] port default vlan 34
  31. [ACC2-GigabitEthernet0/0/2] quit
  32. [ACC2] interface gigabitethernet 0/0/3
  33. [ACC2-GigabitEthernet0/0/3] port link-type access
  34. [ACC2-GigabitEthernet0/0/3] port default vlan 34
  35. [ACC2-GigabitEthernet0/0/3] quit
  36. # 在AGG上创建VLAN,并将接口加入VLAN
  37. <HUAWEI> system-view
  38. [HUAWEI] sysname AGG
  39. [AGG] vlan batch 11 22 33 34
  40. [AGG] interface gigabitethernet 0/0/1
  41. [AGG-GigabitEthernet0/0/1] description AGG***to***ACC1
  42. [AGG-GigabitEthernet0/0/1] port link-type trunk
  43. [AGG-GigabitEthernet0/0/1] port trunk allow-pass vlan 33
  44. [AGG-GigabitEthernet0/0/1] quit
  45. [AGG] interface gigabitethernet 0/0/2
  46. [AGG-GigabitEthernet0/0/2] description AGG***to***ACC2
  47. [AGG-GigabitEthernet0/0/2] port link-type trunk
  48. [AGG-GigabitEthernet0/0/2] port trunk allow-pass vlan 34
  49. [AGG-GigabitEthernet0/0/2] quit
  50. [AGG] interface gigabitethernet 0/0/4
  51. [AGG-GigabitEthernet0/0/4] description AGG***to***PE1
  52. [AGG-GigabitEthernet0/0/4] port link-type trunk
  53. [AGG-GigabitEthernet0/0/4] port trunk allow-pass vlan 11
  54. [AGG-GigabitEthernet0/0/4] quit
  55. [AGG] interface gigabitethernet 0/0/4
  56. [AGG-GigabitEthernet0/0/4] description AGG***to***PE2
  57. [AGG-GigabitEthernet0/0/4] port link-type trunk
  58. [AGG-GigabitEthernet0/0/4] port trunk allow-pass vlan 22
  59. [AGG-GigabitEthernet0/0/4] quit
  60. # 在PE1上创建VLAN,并将接口加入VLAN
  61. <HUAWEI> system-view
  62. [HUAWEI] sysname PE1
  63. [PE1] vlan batch 10 11
  64. [PE1] interface eth-trunk2
  65. [PE1-Eth-Trunk1] description PE1***to***Stack
  66. [PE1-Eth-Trunk1] port link-type access
  67. [PE1-Eth-Trunk1] port default vlan 10
  68. [PE1-Eth-Trunk1] trunkport gigabitethernet 1/0/6
  69. [PE1-Eth-Trunk1] trunkport gigabitethernet 1/0/7
  70. [PE1-Eth-Trunk1] quit
  71. [PE1] interface gigabitethernet 1/0/4
  72. [PE1-GigabitEthernet1/0/4] description PE1***to***AGG
  73. [PE1-GigabitEthernet1/0/4] port link-type trunk
  74. [PE1-GigabitEthernet1/0/4] port trunk allow-pass vlan 11
  75. [PE1-GigabitEthernet1/0/4] quit
  76. # 在PE2上创建VLAN,并将接口加入VLAN
  77. <HUAWEI> system-view
  78. [HUAWEI] sysname PE2
  79. [PE2] vlan batch 21 22
  80. [PE2] interface eth-trunk2
  81. [PE2-Eth-Trunk1] description PE2***to***Stack
  82. [PE2-Eth-Trunk1] port link-type access
  83. [PE2-Eth-Trunk1] port default vlan 21
  84. [PE2-Eth-Trunk1] trunkport gigabitethernet 1/0/6
  85. [PE2-Eth-Trunk1] trunkport gigabitethernet 1/0/7
  86. [PE2-Eth-Trunk1] quit
  87. [PE2] interface gigabitethernet 1/0/4
  88. [PE2-GigabitEthernet1/0/4] description PE2***to***AGG
  89. [PE2-GigabitEthernet1/0/4] port link-type trunk
  90. [PE2-GigabitEthernet1/0/4] port trunk allow-pass vlan 22
  91. [PE2-GigabitEthernet1/0/4] quit
  92. # 在Stack上创建VLAN,并将接口加入VLAN
  93. <HUAWEI> system-view
  94. [HUAWEI] sysname Stack
  95. [Stack] vlan batch 10 21 88 301 400 530
  96. [Stack] interface eth-trunk1
  97. [Stack-Eth-Trunk1] description Stack***to***CDN
  98. [Stack-Eth-Trunk1] port link-type trunk
  99. [Stack-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530
  100. [Stack-Eth-Trunk1] trunkport gigabitethernet 0/0/1
  101. [Stack-Eth-Trunk1] trunkport gigabitethernet 1/0/1
  102. [Stack-Eth-Trunk1] quit
  103. [Stack] interface eth-trunk2
  104. [Stack-Eth-Trunk2] description Stack***to***PE1
  105. [Stack-Eth-Trunk2] port link-type access
  106. [Stack-Eth-Trunk2] port default vlan 10
  107. [Stack-Eth-Trunk2] trunkport gigabitethernet 0/0/6
  108. [Stack-Eth-Trunk2] trunkport gigabitethernet 1/0/6
  109. [Stack-Eth-Trunk2] quit
  110. [Stack] interface eth-trunk3
  111. [Stack-Eth-Trunk3] description Stack***to***PE2
  112. [Stack-Eth-Trunk3] port link-type access
  113. [Stack-Eth-Trunk3] port default vlan 21
  114. [Stack-Eth-Trunk3] trunkport gigabitethernet
  115. [Stack-Eth-Trunk3] trunkport gigabitethernet 1/0/8
  116. [Stack-Eth-Trunk3] quit
  117. # 在CDN上创建VLAN,并将接口加入VLAN
  118. <HUAWEI> system-view
  119. [HUAWEI] sysname CDN
  120. [CDN] vlan batch 88 301 400 530
  121. [CDN] interface eth-trunk1
  122. [CDN-Eth-Trunk1] description CDN***to***Stack
  123. [CDN-Eth-Trunk1] port link-type trunk
  124. [CDN-Eth-Trunk1] port trunk allow-pass vlan 88 301 400 530
  125. [CDN-Eth-Trunk1] trunkport gigabitethernet 0/0/1
  126. [CDN-Eth-Trunk1] trunkport gigabitethernet 0/0/2
  127. [CDN-Eth-Trunk1] quit
  128. [CDN] interface gigabitethernet 0/0/3
  129. [CDN-GigabitEthernet0/0/3] description CDN***to***HMS-Server
  130. [CDN-GigabitEthernet0/0/3] port link-type access
  131. [CDN-GigabitEthernet0/0/3] port default vlan 88
  132. [CDN-GigabitEthernet0/0/3] quit
  133. [CDN] interface gigabitethernet 0/0/4
  134. [CDN-GigabitEthernet0/0/4] description CDN***to***MRF-IN
  135. [CDN-GigabitEthernet0/0/4] port link-type access
  136. [CDN-GigabitEthernet0/0/4] port default vlan 400
  137. [CDN-GigabitEthernet0/0/4] quit
  138. [CDN] interface gigabitethernet 0/0/4
  139. [CDN-GigabitEthernet0/0/4] description CDN***to***MRF-OUT
  140. [CDN-GigabitEthernet0/0/4] port link-type access
  141. [CDN-GigabitEthernet0/0/4] port default vlan 530
  142. [CDN-GigabitEthernet0/0/4] quit
  143. 配置各接口的IP地址
  144. # 在Core配置接口的IP地址。
  145. <HUAWEI> system-view
  146. [HUAWEI] sysname Core
  147. [Core] interface gigabitethernet 1/0/1
  148. [Core-GigabitEthernet1/0/1] undo portswitch
  149. [Core-GigabitEthernet1/0/1] description Core***to***Sever
  150. [Core-GigabitEthernet1/0/1] ip address 66.1.1.3 255.255.255.0
  151. [Core-GigabitEthernet1/0/1] quit
  152. [Core] interface gigabitethernet 1/0/2
  153. [Core-GigabitEthernet1/0/2] undo portswitch
  154. [Core-GigabitEthernet1/0/2] description Core***to***PE2
  155. [Core-GigabitEthernet1/0/2] ip address 20.1.1.3 255.255.255.0
  156. [Core-GigabitEthernet1/0/2] quit
  157. [Core] interface gigabitethernet 1/0/3
  158. [Core-GigabitEthernet1/0/3] undo portswitch
  159. [Core-GigabitEthernet1/0/3] description Core***to***PE1
  160. [Core-GigabitEthernet1/0/3] ip address 12.1.1.2 255.255.255.0
  161. [Core-GigabitEthernet1/0/3] quit
  162. [Core] interface LoopBack0
  163. [Core-LoopBack0] ip address 1.1.1.3 255.255.255.255
  164. [Core-LoopBack0] quit
  165. # 在PE1配置接口的IP地址。
  166. [PE1] interface vlanif 10
  167. [PE1-Vlanif10] description to***Stack
  168. [PE1-Vlanif10] ip address 10.1.1.1 255.255.255.0
  169. [PE1-Vlanif10] quit
  170. [PE1] interface vlanif 11
  171. [PE1-Vlanif11] description to***AGG
  172. [PE1-Vlanif11] ip address 11.1.1.1 255.255.255.0
  173. [PE1-Vlanif11] quit
  174. [PE1] interface gigabitethernet 1/0/2
  175. [PE1-GigabitEthernet1/0/2] undo portswitch
  176. [PE1-GigabitEthernet1/0/2] description PE1***to***Core
  177. [PE1-GigabitEthernet1/0/2] ip address 12.1.1.1 255.255.255.0
  178. [PE1-GigabitEthernet1/0/2] quit
  179. [PE1] interface gigabitethernet 1/0/3
  180. [PE1-GigabitEthernet1/0/3] undo portswitch
  181. [PE1-GigabitEthernet1/0/3] description PE1***to***PE2
  182. [PE1-GigabitEthernet1/0/3] ip address 60.1.1.1 255.255.255.0
  183. [PE1-GigabitEthernet1/0/3] quit
  184. [PE1] interface LoopBack0
  185. [PE1-LoopBack0] ip address 1.1.1.1 255.255.255.255
  186. [PE1-LoopBack0] quit
  187. # 在PE2配置接口的IP地址。
  188. [PE2] interface vlanif 21
  189. [PE2-Vlanif10] description to***Stack
  190. [PE2-Vlanif10] ip address 21.1.1.1 255.255.255.0
  191. [PE2-Vlanif10] quit
  192. [PE2] interface vlanif 22
  193. [PE2-Vlanif22] description to***AGG
  194. [PE2-Vlanif22] ip address 22.1.1.2 255.255.255.0
  195. [PE2-Vlanif22] quit
  196. [PE2] interface gigabitethernet 1/0/2
  197. [PE2-GigabitEthernet1/0/2] undo portswitch
  198. [PE2-GigabitEthernet1/0/2] description PE2***to***Core
  199. [PE2-GigabitEthernet1/0/2] ip address 20.1.1.2 255.255.255.0
  200. [PE2-GigabitEthernet1/0/2] quit
  201. [PE2] interface gigabitethernet 1/0/3
  202. [PE2-GigabitEthernet1/0/3] undo portswitch
  203. [PE2-GigabitEthernet1/0/3] description PE2***to***PE1
  204. [PE2-GigabitEthernet1/0/3] ip address 60.1.1.2 255.255.255.0
  205. [PE2-GigabitEthernet1/0/3] quit
  206. [PE2] interface LoopBack0
  207. [PE2-LoopBack0] ip address 1.1.1.2 255.255.255.255
  208. [PE2-LoopBack0] quit
  209. # 在AGG配置接口的IP地址。
  210. [AGG] interface vlanif 11
  211. [AGG-Vlanif11] description to***PE1
  212. [AGG-Vlanif11] ip address 11.1.1.8 255.255.255.0
  213. [AGG-Vlanif11] quit
  214. [AGG] interface vlanif 22
  215. [AGG-Vlanif22] description to***PE2
  216. [AGG-Vlanif22] ip address 22.1.1.8 255.255.255.0
  217. [AGG-Vlanif22] quit
  218. [AGG] interface vlanif 33
  219. [AGG-Vlanif33] description to***ACC1
  220. [AGG-Vlanif33] ip address 33.1.1.8 255.255.255.0
  221. [AGG-Vlanif33] quit
  222. [AGG] interface vlanif 34
  223. [AGG-Vlanif34] description to***ACC2
  224. [AGG-Vlanif34] ip address 34.1.1.8 255.255.255.0
  225. [AGG-Vlanif34] quit
  226. [AGG] interface LoopBack0
  227. [AGG-LoopBack0] ip address 1.1.1.4 255.255.255.255
  228. [AGG-LoopBack0] quit
  229. # 在Stack配置接口的IP地址。
  230. [Stack] interface vlanif 10
  231. [Stack-Vlanif10] description to***PE1
  232. [Stack-Vlanif10] ip address 10.1.1.2 255.255.255.0
  233. [Stack-Vlanif10] quit
  234. [Stack] interface vlanif 21
  235. [Stack-Vlanif10] description to***PE2
  236. [Stack-Vlanif10] ip address 21.1.1.2 255.255.255.0
  237. [Stack-Vlanif10] quit
  238. [Stack] interface vlanif 88
  239. [Stack-Vlanif88] description to***HMS
  240. [Stack-Vlanif88] ip address 88.1.1.7 255.255.255.0
  241. [Stack-Vlanif88] quit
  242. [Stack] interface vlanif 301
  243. [Stack-Vlanif301] description to***LSW2
  244. [Stack-Vlanif301] ip address 31.1.1.1 255.255.255.0
  245. [Stack-Vlanif301] quit
  246. [Stack] interface vlanif 400
  247. [Stack-Vlanif400] description to***MRF IN
  248. [Stack-Vlanif400] ip address 4.1.1.2 255.255.255.0
  249. [Stack-Vlanif400] quit
  250. [Stack] interface vlanif 530
  251. [Stack-Vlanif530] description to***MRF OUT
  252. [Stack-Vlanif530] ip address 5.1.1.2 255.255.255.0
  253. [Stack-Vlanif530] quit
  254. 配置OSPF功能
  255. # 在Core配置OSPF功能。
  256. [Core] ospf 1
  257. [Core-ospf-1] area 0
  258. [Core-ospf-1-area-0.0.0.0] quit
  259. [Core-ospf-1] quit
  260. [Core] interface gigabitethernet 1/0/1
  261. [Core-GigabitEthernet1/0/1] ospf enable 1 area 0.0.0.0
  262. [Core-GigabitEthernet1/0/1] quit
  263. [Core] interface gigabitethernet 1/0/2
  264. [Core-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
  265. [Core-GigabitEthernet1/0/2] quit
  266. [Core] interface gigabitethernet 1/0/3
  267. [Core-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
  268. [Core-GigabitEthernet1/0/3] quit
  269. [Core] interface LoopBack0
  270. [Core-LoopBack0] ospf enable 1 area 0.0.0.0
  271. [Core-LoopBack0] quit
  272. # 在PE1配置OSPF功能。
  273. [PE1] ospf 1
  274. [PE1-ospf-1] area 0
  275. [PE1-ospf-1-area-0.0.0.0] quit
  276. [PE1-ospf-1] area 1
  277. [PE1-ospf-1-area-0.0.0.1] nssa
  278. [PE1-ospf-1-area-0.0.0.1] quit
  279. [PE1-ospf-1] quit
  280. [PE1] interface vlanif 10
  281. [PE1-Vlanif10] ospf enable 1 area 0.0.0.1
  282. [PE1-Vlanif10] quit
  283. [PE1] interface vlanif 11
  284. [PE1-Vlanif11] ospf enable 1 area 0.0.0.0
  285. [PE1-Vlanif11] quit
  286. [PE1] interface gigabitethernet 1/0/2
  287. [PE1-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
  288. [PE1-GigabitEthernet1/0/2] quit
  289. [PE1] interface gigabitethernet 1/0/3
  290. [PE1-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
  291. [PE1-GigabitEthernet1/0/3] quit
  292. [PE1] interface LoopBack0
  293. [PE1-LoopBack0] ospf enable 1 area 0.0.0.0
  294. [PE1-LoopBack0] quit
  295. # 在PE2配置OSPF功能。
  296. [PE2] ospf 1
  297. [PE2-ospf-1] area 0
  298. [PE2-ospf-1-area-0.0.0.0] quit
  299. [PE2-ospf-1] area 1
  300. [PE2-ospf-1-area-0.0.0.1] nssa
  301. [PE2-ospf-1-area-0.0.0.1] quit
  302. [PE2-ospf-1] quit
  303. [PE2] interface vlanif 21
  304. [PE2-Vlanif10] ospf enable 1 area 0.0.0.1
  305. [PE2-Vlanif10] quit
  306. [PE2] interface vlanif 22
  307. [PE2-Vlanif22] ospf enable 1 area 0.0.0.0
  308. [PE2-Vlanif22] quit
  309. [PE2] interface gigabitethernet 1/0/2
  310. [PE2-GigabitEthernet1/0/2] ospf enable 1 area 0.0.0.0
  311. [PE2-GigabitEthernet1/0/2] quit
  312. [PE2] interface gigabitethernet 1/0/3
  313. [PE2-GigabitEthernet1/0/3] ospf enable 1 area 0.0.0.0
  314. [PE2-GigabitEthernet1/0/3] quit
  315. [PE2] interface LoopBack0
  316. [PE2-LoopBack0] ospf enable 1 area 0.0.0.0
  317. [PE2-LoopBack0] quit
  318. # 在AGG配置OSPF功能,同时修改优先级,进行路由备份。
  319. [AGG] ospf 1
  320. [AGG-ospf-1] area 0
  321. [AGG-ospf-1-area-0.0.0.0] quit
  322. [AGG-ospf-1] quit
  323. [AGG] interface vlanif 11
  324. [AGG-Vlanif11] ospf enable 1 area 0.0.0.0
  325. [AGG-Vlanif11] quit
  326. [AGG] interface vlanif 22
  327. [AGG-Vlanif22] ospf cost 10000
  328. [AGG-Vlanif22] ospf enable 1 area 0.0.0.0
  329. [AGG-Vlanif22] quit
  330. [AGG] interface vlanif 33
  331. [AGG-Vlanif33] ospf enable 1 area 0.0.0.0
  332. [AGG-Vlanif33] quit
  333. [AGG] interface vlanif 34
  334. [AGG-Vlanif34] ospf enable 1 area 0.0.0.0
  335. [AGG-Vlanif34] quit
  336. [AGG] interface LoopBack0
  337. [AGG-LoopBack0] ospf enable 1 area 0.0.0.0
  338. [AGG-LoopBack0] quit
  339. # 在Stack配置OSPF功能。
  340. [Stack] interface vlanif 10
  341. [Stack-Vlanif10] ospf enable 1 area 0.0.0.1
  342. [Stack-Vlanif10] quit
  343. [Stack] interface vlanif 21
  344. [Stack-Vlanif10] ospf enable 1 area 0.0.0.1
  345. [Stack-Vlanif10] quit
  346. [Stack] interface vlanif 301
  347. [Stack-Vlanif301] ospf network-type p2p
  348. [Stack-Vlanif301] ospf timer hello 1
  349. [Stack-Vlanif301] quit
  350. [Stack] ospf 1 router-id 192.168.1.1
  351. [Stack-ospf-1] default-route-advertise
  352. [Stack-ospf-1] silent-interface Vlanif88
  353. [Stack-ospf-1] silent-interface Vlanif530
  354. [Stack-ospf-1] silent-interface Vlanif400
  355. [Stack-ospf-1] area 1
  356. [Stack-ospf-1-area-0.0.0.1] network 5.1.1.0 0.0.0.255
  357. [Stack-ospf-1-area-0.0.0.1] network 10.1.1.0 0.0.0.255
  358. [Stack-ospf-1-area-0.0.0.1] network 31.1.1.0 0.0.0.255
  359. [Stack-ospf-1-area-0.0.0.1] network 88.1.1.0 0.0.0.255
  360. [Stack-ospf-1-area-0.0.0.1] nssa
  361. [Stack-ospf-1-area-0.0.0.1] quit
  362. [Stack-ospf-1] quit
  363. 配置三层组播功能
  364. # 在Core配置三层组播功能。
  365. [Core] multicast routing-enable
  366. [Core] pim
  367. [Core-pim] static-rp 1.1.1.2
  368. [Core-pim] quit
  369. [Core] interface gigabitethernet 1/0/1
  370. [Core-GigabitEthernet1/0/1] pim sm
  371. [Core-GigabitEthernet1/0/1] quit
  372. [Core] interface gigabitethernet 1/0/2
  373. [Core-GigabitEthernet1/0/2] pim sm
  374. [Core-GigabitEthernet1/0/2] quit
  375. [Core] interface gigabitethernet 1/0/3
  376. [Core-GigabitEthernet1/0/3] pim sm
  377. [Core-GigabitEthernet1/0/3] quit
  378. # 在PE1配置三层组播功能。
  379. [PE1] multicast routing-enable
  380. [PE1] pim
  381. [PE1-pim] c-bsr LoopBack0
  382. [PE1-pim] c-rp LoopBack0
  383. [PE1-pim] static-rp 1.1.1.2
  384. [PE1-pim] quit
  385. [PE1] interface vlanif 10
  386. [PE1-Vlanif10] pim sm
  387. [PE1-Vlanif10] quit
  388. [PE1] interface vlanif 11
  389. [PE1-Vlanif11] pim sm
  390. [PE1-Vlanif11] quit
  391. [PE1] interface gigabitethernet 1/0/2
  392. [PE1-GigabitEthernet1/0/2] pim sm
  393. [PE1-GigabitEthernet1/0/2] quit
  394. [PE1] interface gigabitethernet 1/0/3
  395. [PE1-GigabitEthernet1/0/3] pim sm
  396. [PE1-GigabitEthernet1/0/3] quit
  397. [PE1] interface LoopBack0
  398. [PE1-LoopBack0] pim sm
  399. [PE1-LoopBack0] quit
  400. # 在PE2配置三层组播功能。
  401. [PE2] multicast routing-enable
  402. [PE2] pim
  403. [PE2-pim] static-rp 1.1.1.2
  404. [PE2-pim] quit
  405. [PE2] interface vlanif 21
  406. [PE2-Vlanif10] pim sm
  407. [PE2-Vlanif10] quit
  408. [PE2] interface vlanif 22
  409. [PE2-Vlanif22] pim sm
  410. [PE2-Vlanif22] quit
  411. [PE2] interface gigabitethernet 1/0/2
  412. [PE2-GigabitEthernet1/0/2] pim sm
  413. [PE2-GigabitEthernet1/0/2] quit
  414. [PE2] interface gigabitethernet 1/0/3
  415. [PE2-GigabitEthernet1/0/3] pim sm
  416. [PE2-GigabitEthernet1/0/3] quit
  417. [PE2] interface LoopBack0
  418. [PE2-LoopBack0] pim sm
  419. [PE2-LoopBack0] quit
  420. # 在AGG配置三层组播功能。
  421. [AGG] multicast routing-enable
  422. [AGG] pim
  423. [AGG-pim] static-rp 1.1.1.2
  424. [AGG-pim] quit
  425. [AGG] interface vlanif 11
  426. [AGG-Vlanif11] pim sm
  427. [AGG-Vlanif11] quit
  428. [AGG] interface vlanif 22
  429. [AGG-Vlanif22] pim sm
  430. [AGG-Vlanif22] quit
  431. [AGG] interface vlanif 33
  432. [AGG-Vlanif33] pim sm
  433. [AGG-Vlanif33] igmp enable //与用户相连,需要使能IGMP功能
  434. [AGG-Vlanif33] quit
  435. [AGG] interface vlanif 34
  436. [AGG-Vlanif34] pim sm
  437. [AGG-Vlanif34] igmp enable
  438. [AGG-Vlanif34] quit
  439. # 在Stack配置三层组播功能。
  440. [Stack] multicast routing-enable
  441. [Stack] pim
  442. [Stack-pim] static-rp 1.1.1.1
  443. [Stack-pim] quit
  444. [Stack] interface vlanif 10
  445. [Stack-Vlanif10] pim sm
  446. [Stack-Vlanif10] quit
  447. [Stack] interface vlanif 21
  448. [Stack-Vlanif10] pim sm
  449. [Stack-Vlanif10] quit
  450. [Stack] interface vlanif 301
  451. [Stack-Vlanif301] pim sm
  452. [Stack-Vlanif301] quit
  453. [Stack] interface vlanif 400
  454. [Stack-Vlanif400] pim sm
  455. [Stack-Vlanif400] quit
  456. [Stack-Vlanif400] igmp enable
  457. [Stack] interface vlanif 530
  458. [Stack-Vlanif530] pim sm
  459. [Stack-Vlanif530] igmp enable //与解码服务器相连,需要使能IGMP功能
  460. [Stack-Vlanif530] quit
  461. 配置IGMP Snooping二层组播功能
  462. # 在ACC1上使能IGMP Snooping功能。
  463. [ACC1] igmp-snooping enable
  464. [ACC1] vlan 33
  465. [ACC1-vlan33] igmp-snooping enable
  466. [ACC1-vlan33] multicast drop-unknown
  467. [ACC1-vlan33] quit
  468. # 在ACC2上使能IGMP Snooping功能。
  469. [ACC2] igmp-snooping enable
  470. [ACC2] vlan 34
  471. [ACC2-vlan34] igmp-snooping enable
  472. [ACC2-vlan34] multicast drop-unknown
  473. [ACC2-vlan34] quit
  474. # 在Stack上使能IGMP Snooping功能。
  475. [Stack] igmp-snooping enable
  476. [Stack] vlan 301
  477. [Stack-vlan301] igmp-snooping enable
  478. [Stack-vlan301] quit
  479. [Stack] vlan 530
  480. [Stack-vlan530] igmp-snooping enable
  481. [Stack-vlan530] quit
  482. 配置流策略限制组播源接入
  483. # 在Stack上配置流策略。
  484. [Stack] acl number 3000
  485. [Stack-acl-adv-3000] description ***ACL FOR IPTV_Service_IN***
  486. [Stack-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
  487. [Stack-acl-adv-3000] quit
  488. [Stack] acl number 3998
  489. [Stack-acl-adv-3998] description ***ACL FOR Multicast Remark***
  490. [Stack-acl-adv-3998] rule 5 permit ip source 5.1.1.80 0.0.0.15
  491. [Stack-acl-adv-3998] quit
  492. [Stack] traffic classifier IPTV_Service_IN
  493. [Stack-classifier-IPTV_Service_IN] if-match acl 3000
  494. [Stack-classifier-IPTV_Service_IN] quit
  495. [Stack] traffic classifier IPTV_Multicast_Remark
  496. [Stack-classifier-IPTV_Multicast_Remark] if-match acl 3998
  497. [Stack-classifier-IPTV_Multicast_Remark] quit
  498. [Stack] traffic behavior IPTV_Service_IN
  499. [Stack-behavior-IPTV_Service_IN] permit
  500. [Stack-behavior-IPTV_Service_IN] quit
  501. [Stack] traffic behavior IPTV_Multicast_Remark
  502. [Stack-behavior-IPTV_Multicast_Remark] permit
  503. [Stack-behavior-IPTV_Multicast_Remark] remark dscp af41
  504. [Stack-behavior-IPTV_Multicast_Remark] quit
  505. [Stack] traffic policy IPTV_Service_IN
  506. [Stack-trafficpolicy-IPTV_Service_IN] classifier IPTV_Service_IN behavior IPTV_Service_IN
  507. [Stack-trafficpolicy-IPTV_Service_IN] quit
  508. [Stack] traffic policy IPTV_Multicast_Remark
  509. [Stack-trafficpolicy-IPTV_Multicast_Remark] classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
  510. [Stack-trafficpolicy-IPTV_Multicast_Remark] quit
  511. [Stack] interface Eth
  512. [Stack] interface eth-trunk2
  513. [Stack-Eth-Trunk2] traffic-policy IPTV_Service_IN inbound
  514. [Stack-Eth-Trunk2] quit
  515. [Stack] interface eth-trunk3
  516. [Stack-Eth-Trunk3] traffic-policy IPTV_Service_IN inbound
  517. [Stack-Eth-Trunk3] quit
  518. [Stack] interface eth-trunk1
  519. [Stack-Eth-Trunk1] traffic-policy IPTV_Multicast_Remark inbound
  520. [Stack-Eth-Trunk1] quit
  521. 验证配置结果
  522. # 配置完成后,CorePE1PE2AGG上可以正常生成PIM邻居信息。
  523. [Core] display pim neighbor
  524. VPN-Instance: public net
  525. Total Number of Neighbors = 2
  526. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
  527. 12.1.1.1 GE1/0/3 01:09:01 00:01:43 1 N
  528. 20.1.1.2 GE1/0/2 01:06:30 00:01:39 1 N
  529. [PE1] display pim neighbor
  530. VPN-Instance: public net
  531. Total Number of Neighbors = 4
  532. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
  533. 12.1.1.2 GE1/0/2 01:10:48 00:01:27 1 N
  534. 60.1.1.2 GE1/0/3 01:08:06 00:01:40 1 N
  535. 10.1.1.2 Vlanif10 00:39:38 00:01:21 1 N
  536. 11.1.1.8 Vlanif11 01:05:16 00:01:30 1 N
  537. [PE2] display pim neighbor
  538. VPN-Instance: public net
  539. Total Number of Neighbors = 4
  540. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
  541. 20.1.1.3 GE1/0/2 01:11:32 00:01:42 1 N
  542. 60.1.1.1 GE1/0/3 01:11:18 00:01:27 1 N
  543. 10.1.2.2 Vlanif21 00:41:06 00:01:39 1 N
  544. 21.1.1.2 Vlanif22 01:08:28 00:01:42 1 N
  545. [AGG] display pim neighbor
  546. VPN-Instance: public net
  547. Total Number of Neighbors = 2
  548. Neighbor Interface Uptime Expires Dr-Priority BFD-Session
  549. 11.1.1.1 Vlanif11 01:09:30 00:01:20 1 N
  550. 22.1.1.2 Vlanif22 01:08:34 00:01:18 1 N
  551. # 用户发送IGMP Report报文后,ACC1ACC2上可以正常生成组播组成员端口信息。
  552. [ACC1] display igmp-snooping port-info
  553. --------------------------------------------------------------------------------
  554. (Source, Group) Port Flag
  555. Flag: S:Static D:Dynamic M: Ssm-mapping
  556. --------------------------------------------------------------------------------
  557. VLAN 33, 1 Entry(s)
  558. (*, 225.1.1.1) GE0/0/2 -D-
  559. GE0/0/3 -D-
  560. 2 port(s) include
  561. --------------------------------------------------------------------------------
  562. [ACC2] display igmp-snooping port-info
  563. --------------------------------------------------------------------------------
  564. (Source, Group) Port Flag
  565. Flag: S:Static D:Dynamic M: Ssm-mapping
  566. --------------------------------------------------------------------------------
  567. VLAN 34, 1 Entry(s)
  568. (*, 225.1.1.1) GE0/0/2 -D-
  569. GE0/0/3 -D-
  570. 2 port(s) include
  571. --------------------------------------------------------------------------------
  572. # 组播源发送组播报文,解码服务器发送组播组加入报文后,StackPE1上可以正常生成组播路由表。
  573. [Stack] display pim routing-table
  574. VPN-Instance: public net
  575. Total 1 (*, G) entry; 0 (S, G) entry
  576. (*, 225.0.0.1)
  577. RP: 1.1.1.1
  578. Protocol: pim-sm, Flag: WC
  579. UpTime: 02:41:03
  580. Upstream interface: Vlanif10
  581. Upstream neighbor: 10.1.1.1
  582. RPF prime neighbor: 10.1.1.1
  583. Downstream interface(s) information:
  584. Total number of downstreams: 1
  585. 1: Vlanif530
  586. Protocol: igmp, UpTime: 02:41:03, Expires: -
  587. [PE1] display pim routing-table
  588. VPN-Instance: public net
  589. Total 1 (*, G) entry; 0 (S, G) entry
  590. (*, 225.0.0.1)
  591. RP: 1.1.1.1 (local)
  592. Protocol: pim-sm, Flag: WC
  593. UpTime: 02:39:32
  594. Upstream interface: Register
  595. Upstream neighbor: NULL
  596. RPF prime neighbor: NULL
  597. Downstream interface(s) information:
  598. Total number of downstreams: 1
  599. 1: Vlanif10
  600. Protocol: pim-sm, UpTime: 02:39:32, Expires: 00:02:58

配置文件
    1. Core的配置文件
    2. #
    3. sysname Core
    4. #
    5. multicast routing-enable
    6. #
    7. interface GigabitEthernet1/0/1
    8. undo portswitch
    9. description Core***to***Sever
    10. ip address 66.1.1.3 255.255.255.0
    11. pim sm
    12. ospf enable 1 area 0.0.0.0
    13. #
    14. interface GigabitEthernet1/0/2
    15. undo portswitch
    16. description Core***to***PE2
    17. ip address 20.1.1.3 255.255.255.0
    18. pim sm
    19. ospf enable 1 area 0.0.0.0
    20. #
    21. interface GigabitEthernet1/0/3
    22. undo portswitch
    23. description Core***to***PE1
    24. ip address 12.1.1.2 255.255.255.0
    25. pim sm
    26. ospf enable 1 area 0.0.0.0
    27. #
    28. interface LoopBack0
    29. ip address 1.1.1.3 255.255.255.255
    30. ospf enable 1 area 0.0.0.0
    31. #
    32. ospf 1
    33. area 0.0.0.0
    34. #
    35. pim
    36. static-rp 1.1.1.2
    37. #
    38. return

  • PE的配置文件

    PE1配置文件

    PE2配置文件

    #
    sysname PE1
    #
    vlan batch 10 to 11 
    #
    multicast routing-enable
    #
    interface Vlanif10
     description to***Stack
     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 Eth-Trunk2
     description PE1***to***Stack
     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 GigabitEthernet1/0/6
     eth-trunk2
    #
    interface GigabitEthernet1/0/7
     eth-trunk2
    #
    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 21 to 22
    #
    multicast routing-enable
    #
    interface Vlanif21
     description to***Stack
     ip address 21.1.1.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 Eth-Trunk3
     description PE2***to***Stack
     port link-type access
     port default vlan 21
    #
    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 GigabitEthernet1/0/6
     eth-trunk3
    #
    interface GigabitEthernet1/0/7
     eth-trunk3
    #
    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
    1. Stack的配置文件
    2. #
    3. sysname Stack
    4. #
    5. vlan batch 10 21 88 301 400 530
    6. #
    7. multicast routing-enable
    8. #
    9. igmp-snooping enable
    10. #
    11. acl number 3000
    12. description ***ACL FOR IPTV_Service_IN***
    13. rule 1 permit ip source 66.1.1.0 0.0.0.255 destination 4.1.1.0 0.0.0.127
    14. acl number 3998
    15. description ***ACL FOR Multicast Remark***
    16. rule 5 permit ip source 5.1.1.80 0.0.0.15
    17. #
    18. traffic classifier IPTV_Multicast_Remark operator or
    19. if-match acl 3998
    20. traffic classifier IPTV_Service_IN operator or
    21. if-match acl 3000
    22. #
    23. traffic behavior IPTV_Multicast_Remark
    24. permit
    25. remark dscp af41
    26. traffic behavior IPTV_Service_IN
    27. permit
    28. #
    29. traffic policy IPTV_Multicast_Remark match-order config
    30. classifier IPTV_Multicast_Remark behavior IPTV_Multicast_Remark
    31. traffic policy IPTV_Service_IN match-order config
    32. classifier IPTV_Service_IN behavior IPTV_Service_IN
    33. #
    34. vlan 10
    35. description to***PE1
    36. vlan 21
    37. description to***PE2
    38. vlan 301
    39. description to***LSW2
    40. igmp-snooping enable
    41. vlan 400
    42. description ***MRF IN***
    43. multicast drop-unknown
    44. igmp-snooping enable
    45. vlan 530
    46. description ***MRF OUT***
    47. multicast drop-unknown
    48. igmp-snooping enable
    49. #
    50. interface Vlanif10
    51. description to***PE1
    52. ip address 10.1.1.2 255.255.255.0
    53. pim sm
    54. ospf enable 1 area 0.0.0.1
    55. #
    56. interface Vlanif21
    57. description to***PE2
    58. ip address 21.1.1.2 255.255.255.0
    59. pim sm
    60. ospf enable 1 area 0.0.0.1
    61. #
    62. interface Vlanif88
    63. description to***HMS
    64. ip address 88.1.1.7 255.255.255.0
    65. vrrp vrid 2 virtual-ip 88.1.1.100
    66. vrrp vrid 2 priority 120
    67. vrrp vrid 2 preempt-mode timer delay 20
    68. vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 100
    69. #
    70. interface Vlanif301
    71. description LSW1***to***LSW2
    72. ip address 31.1.1.1 255.255.255.0
    73. pim sm
    74. ospf network-type p2p
    75. ospf timer hello 1
    76. #
    77. interface Vlanif400
    78. description to***MRF IN
    79. ip address 4.1.1.2 255.255.255.0
    80. vrrp vrid 40 virtual-ip 4.1.1.10
    81. vrrp vrid 40 priority 120
    82. pim sm
    83. igmp enable
    84. #
    85. interface Vlanif530
    86. description to***MRF OUT
    87. ip address 5.1.1.2 255.255.255.0
    88. vrrp vrid 53 virtual-ip 5.1.1.10
    89. vrrp vrid 53 priority 120
    90. pim sm
    91. igmp enable
    92. #
    93. interface Eth-Trunk1
    94. description Stack***to***CDN
    95. port link-type trunk
    96. port trunk allow-pass vlan 88 301 400 530
    97. traffic-policy IPTV_Multicast_Remark inbound
    98. #
    99. interface Eth-Trunk2
    100. description Stack***to***PE1
    101. port link-type access
    102. port default vlan 10
    103. traffic-policy IPTV_Service_IN inbound
    104. #
    105. interface Eth-Trunk3
    106. description Stack***to***PE2
    107. port link-type access
    108. port default vlan 21
    109. traffic-policy IPTV_Service_IN inbound
    110. #
    111. interface GigabitEthernet0/0/1
    112. eth-trunk1
    113. #
    114. interface GigabitEthernet0/0/6
    115. eth-trunk2
    116. #
    117. interface GigabitEthernet0/0/8
    118. eth-trunk3
    119. #
    120. interface GigabitEthernet1/0/1
    121. eth-trunk1
    122. #
    123. interface GigabitEthernet1/0/6
    124. eth-trunk2
    125. #
    126. interface GigabitEthernet1/0/8
    127. eth-trunk3
    128. #
    129. ospf 1 router-id 192.168.1.1
    130. default-route-advertise
    131. silent-interface Vlanif88
    132. silent-interface Vlanif530
    133. silent-interface Vlanif400
    134. area 0.0.0.1
    135. network 10.1.1.0 0.0.0.255
    136. network 31.1.1.0 0.0.0.255
    137. network 88.1.1.0 0.0.0.255
    138. network 5.1.1.0 0.0.0.255
    139. nssa
    140. #
    141. pim
    142. static-rp 1.1.1.1
    143. #
    144. return
    145. CDN的配置文件
    146. #
    147. sysname CDN
    148. #
    149. vlan batch 88 301 400 530
    150. #
    151. interface Eth-Trunk1
    152. description CDN***to***Stack
    153. port link-type trunk
    154. port trunk allow-pass vlan 88 301 400 530
    155. #
    156. interface GigabitEthernet0/0/1
    157. eth-trunk1
    158. #
    159. interface GigabitEthernet0/0/2
    160. eth-trunk1
    161. #
    162. interface GigabitEthernet0/0/3
    163. description CDN***to***HMS-Server
    164. port link-type access
    165. port default vlan 88
    166. stp disable
    167. #
    168. interface GigabitEthernet0/0/4
    169. description CDN***to***MRF-IN
    170. port link-type access
    171. port default vlan 400
    172. stp disable
    173. #
    174. interface GigabitEthernet0/0/5
    175. description CDN***to***MRF-OUT
    176. port link-type access
    177. port default vlan 530
    178. stp disable
    179. #
    180. return
    181. AGG的配置文件
    182. #
    183. sysname AGG
    184. #
    185. vlan batch 11 22 33 to 34
    186. #
    187. multicast routing-enable
    188. #
    189. interface Vlanif11
    190. description to***PE1
    191. ip address 11.1.1.8 255.255.255.0
    192. pim sm
    193. ospf enable 1 area 0.0.0.0
    194. #
    195. interface Vlanif22
    196. description to***PE2
    197. ip address 22.1.1.8 255.255.255.0
    198. pim sm
    199. ospf cost 10000
    200. ospf enable 1 area 0.0.0.0
    201. #
    202. interface Vlanif33
    203. description to***ACC1
    204. ip address 33.1.1.8 255.255.255.0
    205. pim sm
    206. igmp enable
    207. ospf enable 1 area 0.0.0.0
    208. #
    209. interface Vlanif34
    210. description to***ACC2
    211. ip address 34.1.1.8 255.255.255.0
    212. pim sm
    213. igmp enable
    214. ospf enable 1 area 0.0.0.0
    215. #
    216. interface GigabitEthernet0/0/1
    217. description AGG***to***ACC1
    218. port link-type trunk
    219. port trunk allow-pass vlan 33
    220. #
    221. interface GigabitEthernet0/0/2
    222. description AGG***to***ACC2
    223. port link-type trunk
    224. port trunk allow-pass vlan 34
    225. #
    226. interface GigabitEthernet0/0/4
    227. description AGG***to***PE1
    228. port link-type trunk
    229. port trunk allow-pass vlan 11
    230. #
    231. interface GigabitEthernet0/0/5
    232. description AGG***to***PE2
    233. port link-type trunk
    234. port trunk allow-pass vlan 22
    235. #
    236. interface LoopBack0
    237. ip address 1.1.1.4 255.255.255.255
    238. ospf enable 1 area 0.0.0.0
    239. #
    240. ospf 1
    241. area 0.0.0.0
    242. #
    243. pim
    244. static-rp 1.1.1.2
    245. #
    246. 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/2023面试高手/article/detail/78835
推荐阅读
相关标签
  

闽ICP备14008679号