Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.54 KB | None | 0 0
  1. # +---------+
  2. # | |
  3. # | RT1 |
  4. # | 1.1.1.1 |-lo1 (2001:db8:1000::1/128)
  5. # | |
  6. # +---------+
  7. # |rt1-eth0 (.1)
  8. # |
  9. # |10.0.1.0/24
  10. # |2001:DB8:1::/64
  11. # |
  12. # |rt2-eth0 (.2)
  13. # +---------+
  14. # | |
  15. # | RT2 |
  16. # | 2.2.2.2 |-lo1 (2001:db8:1000::2/128)
  17. # | |
  18. # +---------+
  19. # rt2-eth2 (.2)| |rt2-eth1 (.2)
  20. # | |
  21. # 10.0.3.0/24 +-----------+ |
  22. # 2001:DB8:3::/64 | +-----------+-----------+
  23. # | | 10.0.2.0/24 |
  24. # | | 2001:DB8:2::/64 |
  25. # | | |
  26. # rt3-eth1 (.3)| |rt3-eth0 (.3) |rt4-eth0 (.4)
  27. # +---------+ +---------+
  28. # | | | |
  29. #(2001:db8:1000::3/128) lo1-| RT3 | | RT4 |-lo1 (2001:db8:1000::4/128)
  30. # | 3.3.3.3 | | 4.4.4.4 |
  31. # | | | |
  32. # +---------+ +---------+
  33.  
  34. ---
  35.  
  36. routers:
  37.  
  38. rt1:
  39. links:
  40. rt1-lo1:
  41. ipv4: 1.1.1.1/32
  42. ipv6: 2001:db8:1000::1/128
  43. rt1-eth0:
  44. peer: [rt2, rt2-eth0]
  45. mpls: yes
  46. ipv4: 10.0.1.1/24
  47. ipv6: 2001:db8:1::1/64
  48. frr:
  49. zebra:
  50. config: |
  51. interface rt1-eth0
  52. no link-detect
  53. !
  54. ospfd:
  55. config: |
  56. interface rt1-eth0
  57. ip ospf area 0
  58. ip ospf hello-interval 1
  59. ip ospf dead-interval 3
  60. !
  61. router ospf
  62. router-id 1.1.1.1
  63. redistribute connected
  64. !
  65. ospf6d:
  66. config: |
  67. interface rt1-eth0
  68. ipv6 ospf6 hello-interval 1
  69. ipv6 ospf6 dead-interval 3
  70. !
  71. router ospf6
  72. router-id 1.1.1.1
  73. interface rt1-eth0 area 0.0.0.0
  74. redistribute connected
  75. !
  76. ldpd:
  77. config: |
  78. mpls ldp
  79. router-id 1.1.1.1
  80. !
  81. address-family ipv4
  82. discovery transport-address 1.1.1.1
  83. !
  84. interface rt1-eth0
  85. !
  86. !
  87. address-family ipv6
  88. discovery transport-address 2001:db8:1000::1
  89. !
  90. interface rt1-eth0
  91. !
  92. !
  93. !
  94.  
  95. rt2:
  96. links:
  97. rt2-lo1:
  98. ipv4: 2.2.2.2/32
  99. ipv6: 2001:db8:1000::2/128
  100. rt2-eth0:
  101. peer: [rt1, rt1-eth0]
  102. mpls: yes
  103. ipv4: 10.0.1.2/24
  104. ipv6: 2001:db8:1::2/64
  105. rt2-eth1:
  106. peer: [sw1, sw1-1]
  107. mpls: yes
  108. ipv4: 10.0.2.2/24
  109. ipv6: 2001:db8:2::2/64
  110. rt2-eth2:
  111. peer: [rt3, rt3-eth1]
  112. mpls: yes
  113. ipv4: 10.0.3.2/24
  114. ipv6: 2001:db8:3::2/64
  115. frr:
  116. zebra:
  117. config: |
  118. interface rt2-eth0
  119. no link-detect
  120. !
  121. interface rt2-eth1
  122. no link-detect
  123. !
  124. interface rt2-eth2
  125. no link-detect
  126. !
  127. ospfd:
  128. config: |
  129. interface rt2-eth0
  130. ip ospf area 0
  131. ip ospf hello-interval 1
  132. ip ospf dead-interval 3
  133. !
  134. interface rt2-eth1
  135. ip ospf area 0
  136. ip ospf hello-interval 1
  137. ip ospf dead-interval 3
  138. !
  139. interface rt2-eth2
  140. ip ospf area 0
  141. ip ospf hello-interval 1
  142. ip ospf dead-interval 3
  143. !
  144. router ospf
  145. router-id 2.2.2.2
  146. redistribute connected
  147. !
  148. ospf6d:
  149. config: |
  150. interface rt2-eth0
  151. ipv6 ospf6 hello-interval 1
  152. ipv6 ospf6 dead-interval 3
  153. !
  154. interface rt2-eth1
  155. ipv6 ospf6 hello-interval 1
  156. ipv6 ospf6 dead-interval 3
  157. !
  158. interface rt2-eth2
  159. ipv6 ospf6 hello-interval 1
  160. ipv6 ospf6 dead-interval 3
  161. !
  162. router ospf6
  163. router-id 2.2.2.2
  164. interface rt2-eth0 area 0.0.0.0
  165. interface rt2-eth1 area 0.0.0.0
  166. interface rt2-eth2 area 0.0.0.0
  167. redistribute connected
  168. !
  169. ldpd:
  170. config: |
  171. mpls ldp
  172. router-id 2.2.2.2
  173. !
  174. address-family ipv4
  175. discovery transport-address 2.2.2.2
  176. !
  177. interface rt2-eth0
  178. !
  179. interface rt2-eth1
  180. !
  181. interface rt2-eth2
  182. !
  183. !
  184. address-family ipv6
  185. discovery transport-address 2001:db8:1000::2
  186. !
  187. interface rt2-eth0
  188. !
  189. interface rt2-eth1
  190. !
  191. interface rt2-eth2
  192. !
  193. !
  194. !
  195.  
  196. rt3:
  197. links:
  198. rt3-lo1:
  199. ipv4: 3.3.3.3/32
  200. ipv6: 2001:db8:1000::3/128
  201. rt3-eth0:
  202. peer: [sw1, sw1-2]
  203. mpls: yes
  204. ipv4: 10.0.2.3/24
  205. ipv6: 2001:db8:2::3/64
  206. rt3-eth1:
  207. peer: [rt2, rt2-eth2]
  208. mpls: yes
  209. ipv4: 10.0.3.3/24
  210. ipv6: 2001:db8:3::3/64
  211. frr:
  212. zebra:
  213. config: |
  214. interface rt3-eth0
  215. no link-detect
  216. !
  217. interface rt3-eth1
  218. no link-detect
  219. !
  220. ospfd:
  221. config: |
  222. interface rt3-eth0
  223. ip ospf area 0
  224. ip ospf hello-interval 1
  225. ip ospf dead-interval 3
  226. !
  227. interface rt3-eth1
  228. ip ospf area 0
  229. ip ospf hello-interval 1
  230. ip ospf dead-interval 3
  231. !
  232. router ospf
  233. router-id 3.3.3.3
  234. redistribute connected
  235. !
  236. ospf6d:
  237. config: |
  238. interface rt3-eth0
  239. ipv6 ospf6 hello-interval 1
  240. ipv6 ospf6 dead-interval 3
  241. !
  242. interface rt3-eth1
  243. ipv6 ospf6 hello-interval 1
  244. ipv6 ospf6 dead-interval 3
  245. !
  246. router ospf6
  247. router-id 3.3.3.3
  248. interface rt3-eth0 area 0.0.0.0
  249. interface rt3-eth1 area 0.0.0.0
  250. redistribute connected
  251. !
  252. ldpd:
  253. config: |
  254. mpls ldp
  255. router-id 3.3.3.3
  256. !
  257. address-family ipv4
  258. discovery transport-address 3.3.3.3
  259. !
  260. interface rt3-eth0
  261. !
  262. interface rt3-eth1
  263. !
  264. !
  265. address-family ipv6
  266. discovery transport-address 2001:db8:1000::3
  267. !
  268. interface rt3-eth0
  269. !
  270. interface rt3-eth1
  271. !
  272. !
  273. !
  274.  
  275. rt4:
  276. links:
  277. rt4-lo1:
  278. ipv4: 4.4.4.4/32
  279. ipv6: 2001:db8:1000::4/128
  280. rt4-eth0:
  281. peer: [sw1, sw1-3]
  282. mpls: yes
  283. ipv4: 10.0.2.4/24
  284. ipv6: 2001:db8:2::4/64
  285. frr:
  286. zebra:
  287. config: |
  288. interface rt4-eth0
  289. no link-detect
  290. !
  291. ospfd:
  292. config: |
  293. interface rt4-eth0
  294. ip ospf area 0
  295. ip ospf hello-interval 1
  296. ip ospf dead-interval 3
  297. !
  298. router ospf
  299. router-id 4.4.4.4
  300. redistribute connected
  301. !
  302. ospf6d:
  303. config: |
  304. interface rt4-eth0
  305. ipv6 ospf6 hello-interval 1
  306. ipv6 ospf6 dead-interval 3
  307. !
  308. router ospf6
  309. router-id 4.4.4.4
  310. interface rt4-eth0 area 0.0.0.0
  311. redistribute connected
  312. !
  313. ldpd:
  314. config: |
  315. mpls ldp
  316. router-id 4.4.4.4
  317. !
  318. address-family ipv4
  319. discovery transport-address 4.4.4.4
  320. !
  321. interface rt4-eth0
  322. !
  323. !
  324. address-family ipv6
  325. discovery transport-address 2001:db8:1000::4
  326. !
  327. interface rt4-eth0
  328. !
  329. !
  330. !
  331.  
  332. switches:
  333. sw1:
  334. links:
  335. sw1-1:
  336. peer: [rt2, rt2-eth1]
  337. sw1-2:
  338. peer: [rt3, rt3-eth0]
  339. sw1-3:
  340. peer: [rt4, rt4-eth0]
  341.  
  342. frr:
  343. base-configs:
  344. all: |
  345. hostname %(node)-%(daemon)
  346. password 1
  347. log file %(logdir)/%(node)-%(daemon).log
  348. zebra: |
  349. !debug zebra kernel
  350. debug zebra packet
  351. ospfd: |
  352. debug ospf zebra
  353. ospf6d: |
  354. debug ospf6 zebra
  355. ldpd: |
  356. debug mpls ldp zebra
  357. debug mpls ldp event
  358. debug mpls ldp errors
  359. debug mpls ldp messages recv
  360. debug mpls ldp messages sent
  361. debug mpls ldp discovery hello recv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement