Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.93 KB | None | 0 0
  1. #
  2. # +---------+
  3. # | |
  4. # | SRC |
  5. # | 9.9.9.1 |
  6. # | |
  7. # +---------+
  8. # |eth-rt1 (.1)
  9. # |
  10. # |10.0.10.0/24
  11. # |
  12. # |eth-src (.2)
  13. # +---------+
  14. # | |
  15. # | RT1 |
  16. # | 1.1.1.1 |
  17. # | |
  18. # +---------+
  19. # |eth-sw1
  20. # |
  21. # |
  22. # |
  23. # +---------+ | +---------+
  24. # | | | | |
  25. # | RT2 |eth-sw1 | eth-sw1| RT3 |
  26. # | 2.2.2.2 +----------+----------+ 3.3.3.3 |
  27. # | | 10.0.1.0/24 | |
  28. # +---------+ +---------+
  29. # eth-rt4-1| |eth-rt4-2 eth-rt5-1| |eth-rt5-2
  30. # | | | |
  31. # 10.0.2.0/24| |10.0.3.0/24 10.0.4.0/24| |10.0.5.0/24
  32. # | | | |
  33. # eth-rt2-1| |eth-rt2-2 eth-rt3-1| |eth-rt3-2
  34. # +---------+ +---------+
  35. # | | | |
  36. # | RT4 | 10.0.6.0/24 | RT5 |
  37. # | 4.4.4.4 +---------------------+ 5.5.5.5 |
  38. # | |eth-rt5 eth-rt4| |
  39. # +---------+ +---------+
  40. # eth-rt6| |eth-rt6
  41. # | |
  42. # 10.0.7.0/24| |10.0.8.0/24
  43. # | +---------+ |
  44. # | | | |
  45. # | | RT6 | |
  46. # +----------+ 6.6.6.6 +-----------+
  47. # eth-rt4| |eth-rt5
  48. # +---------+
  49. # |eth-dst (.2)
  50. # |
  51. # |10.0.11.0/24
  52. # |
  53. # |eth-rt6 (.1)
  54. # +---------+
  55. # | |
  56. # | DST |
  57. # | 9.9.9.2 |
  58. # | |
  59. # +---------+
  60. #
  61.  
  62. ---
  63.  
  64. routers:
  65.  
  66. src:
  67. links:
  68. lo:
  69. ipv4: 9.9.9.1/32
  70. ipv6: 2001:db8:1066::1/128
  71. mpls: yes
  72. eth-rt1:
  73. peer: [rt1, eth-src]
  74. ipv4: 10.0.10.1/24
  75. mpls: yes
  76. frr:
  77. zebra:
  78. config:
  79. staticd:
  80. config: |
  81. ip route 0.0.0.0/0 10.0.10.2
  82. !
  83.  
  84. dst:
  85. links:
  86. lo:
  87. ipv4: 9.9.9.2/32
  88. ipv6: 2001:db8:1066::2/128
  89. mpls: yes
  90. eth-rt6:
  91. peer: [rt6, eth-dst]
  92. ipv4: 10.0.11.2/24
  93. mpls: yes
  94. frr:
  95. zebra:
  96. config:
  97. staticd:
  98. config: |
  99. ip route 0.0.0.0/0 10.0.11.1
  100. !
  101.  
  102. rt1:
  103. links:
  104. lo:
  105. ipv4: 1.1.1.1/32
  106. ipv6: 2001:db8:1000::1/128
  107. mpls: yes
  108. eth-sw1:
  109. peer: [sw1, sw1-rt1]
  110. ipv4: 10.0.1.1/24
  111. mpls: yes
  112. eth-src:
  113. peer: [src, eth-rt1]
  114. ipv4: 10.0.10.2/24
  115. mpls: yes
  116. frr:
  117. zebra:
  118. config:
  119. staticd:
  120. config: |
  121. ip route 9.9.9.1/32 10.0.10.1
  122. !
  123. isisd:
  124. config: |
  125. interface lo
  126. ip router isis 1
  127. ipv6 router isis 1
  128. isis passive
  129. !
  130. interface eth-src
  131. ip router isis 1
  132. ipv6 router isis 1
  133. isis passive
  134. !
  135. interface eth-sw1
  136. ip router isis 1
  137. ipv6 router isis 1
  138. isis hello-multiplier 3
  139. !
  140. router isis 1
  141. net 49.0000.0000.0000.0001.00
  142. is-type level-1
  143. topology ipv6-unicast
  144. segment-routing on
  145. segment-routing global-block 16000 23999
  146. segment-routing node-msd 8
  147. segment-routing prefix 1.1.1.1/32 index 10
  148. segment-routing prefix 2001:db8:1000::1/128 index 11
  149. !
  150. bgpd:
  151. config: |
  152. route-map SET_SR_POLICY permit 10
  153. set ip next-hop 6.6.6.6
  154. ! // what we really want is this:
  155. ! set color 1
  156. ! // or
  157. ! set sr-te policy LOW_DELAY
  158. !
  159. router bgp 1
  160. bgp router-id 1.1.1.1
  161. neighbor 6.6.6.6 remote-as 1
  162. neighbor 6.6.6.6 update-source lo
  163. !
  164. address-family ipv4 unicast
  165. neighbor 6.6.6.6 next-hop-self
  166. neighbor 6.6.6.6 route-map SET_SR_POLICY in
  167. redistribute static
  168. exit-address-family
  169. !
  170. !
  171. pathd:
  172. #args: "-M pathd_pcep"
  173. config: |
  174. !pce ip 1.2.3.4
  175. !
  176. segment-list sl1
  177. index 10 mpls label 16050
  178. index 20 mpls label 16060
  179. !
  180. sr-policy color 1 endpoint 6.6.6.6
  181. name LOW_DELAY
  182. binding-sid 100
  183. candidate-path preference 100 name cand1 explicit segment-list sl1
  184. !
  185.  
  186. rt2:
  187. links:
  188. lo:
  189. ipv4: 2.2.2.2/32
  190. ipv6: 2001:db8:1000::2/128
  191. mpls: yes
  192. eth-sw1:
  193. peer: [sw1, sw1-rt2]
  194. ipv4: 10.0.1.2/24
  195. mpls: yes
  196. eth-rt4-1:
  197. peer: [rt4, eth-rt2-1]
  198. ipv4: 10.0.2.2/24
  199. mpls: yes
  200. eth-rt4-2:
  201. peer: [rt4, eth-rt2-2]
  202. ipv4: 10.0.3.2/24
  203. mpls: yes
  204. frr:
  205. zebra:
  206. config:
  207. staticd:
  208. config:
  209. isisd:
  210. config: |
  211. interface lo
  212. ip router isis 1
  213. ipv6 router isis 1
  214. isis passive
  215. !
  216. interface eth-sw1
  217. ip router isis 1
  218. ipv6 router isis 1
  219. isis hello-multiplier 3
  220. !
  221. interface eth-rt4-1
  222. ip router isis 1
  223. ipv6 router isis 1
  224. isis network point-to-point
  225. isis hello-multiplier 3
  226. !
  227. interface eth-rt4-2
  228. ip router isis 1
  229. ipv6 router isis 1
  230. isis network point-to-point
  231. isis hello-multiplier 3
  232. !
  233. router isis 1
  234. net 49.0000.0000.0000.0002.00
  235. is-type level-1
  236. topology ipv6-unicast
  237. segment-routing on
  238. segment-routing global-block 16000 23999
  239. segment-routing node-msd 8
  240. segment-routing prefix 2.2.2.2/32 index 20 no-php-flag
  241. segment-routing prefix 2001:db8:1000::2/128 index 21 no-php-flag
  242. !
  243.  
  244. rt3:
  245. links:
  246. lo:
  247. ipv4: 3.3.3.3/32
  248. ipv6: 2001:db8:1000::3/128
  249. mpls: yes
  250. eth-sw1:
  251. peer: [sw1, sw1-rt3]
  252. ipv4: 10.0.1.3/24
  253. mpls: yes
  254. eth-rt5-1:
  255. peer: [rt5, eth-rt3-1]
  256. ipv4: 10.0.4.3/24
  257. mpls: yes
  258. eth-rt5-2:
  259. peer: [rt5, eth-rt3-2]
  260. ipv4: 10.0.5.3/24
  261. mpls: yes
  262. frr:
  263. zebra:
  264. config:
  265. staticd:
  266. config:
  267. isisd:
  268. config: |
  269. interface lo
  270. ip router isis 1
  271. ipv6 router isis 1
  272. isis passive
  273. !
  274. interface eth-sw1
  275. ip router isis 1
  276. ipv6 router isis 1
  277. isis hello-multiplier 3
  278. !
  279. interface eth-rt5-1
  280. ip router isis 1
  281. ipv6 router isis 1
  282. isis network point-to-point
  283. isis hello-multiplier 3
  284. !
  285. interface eth-rt5-2
  286. ip router isis 1
  287. ipv6 router isis 1
  288. isis network point-to-point
  289. isis hello-multiplier 3
  290. !
  291. router isis 1
  292. net 49.0000.0000.0000.0003.00
  293. is-type level-1
  294. topology ipv6-unicast
  295. segment-routing on
  296. segment-routing global-block 16000 23999
  297. segment-routing node-msd 8
  298. segment-routing prefix 3.3.3.3/32 index 30 no-php-flag
  299. segment-routing prefix 2001:db8:1000::3/128 index 31 no-php-flag
  300. !
  301.  
  302. rt4:
  303. links:
  304. lo:
  305. ipv4: 4.4.4.4/32
  306. ipv6: 2001:db8:1000::4/128
  307. mpls: yes
  308. eth-rt2-1:
  309. peer: [rt2, eth-rt4-1]
  310. ipv4: 10.0.2.4/24
  311. mpls: yes
  312. eth-rt2-2:
  313. peer: [rt2, eth-rt4-2]
  314. ipv4: 10.0.3.4/24
  315. mpls: yes
  316. eth-rt5:
  317. peer: [rt5, eth-rt4]
  318. ipv4: 10.0.6.4/24
  319. mpls: yes
  320. eth-rt6:
  321. peer: [rt6, eth-rt4]
  322. ipv4: 10.0.7.4/24
  323. mpls: yes
  324. frr:
  325. zebra:
  326. config:
  327. staticd:
  328. config:
  329. isisd:
  330. config: |
  331. interface lo
  332. ip router isis 1
  333. ipv6 router isis 1
  334. isis passive
  335. !
  336. interface eth-rt2-1
  337. ip router isis 1
  338. ipv6 router isis 1
  339. isis network point-to-point
  340. isis hello-multiplier 3
  341. !
  342. interface eth-rt2-2
  343. ip router isis 1
  344. ipv6 router isis 1
  345. isis network point-to-point
  346. isis hello-multiplier 3
  347. !
  348. interface eth-rt5
  349. ip router isis 1
  350. ipv6 router isis 1
  351. isis network point-to-point
  352. isis hello-multiplier 3
  353. !
  354. interface eth-rt6
  355. ip router isis 1
  356. ipv6 router isis 1
  357. isis network point-to-point
  358. isis hello-multiplier 3
  359. !
  360. router isis 1
  361. net 49.0000.0000.0000.0004.00
  362. is-type level-1
  363. topology ipv6-unicast
  364. segment-routing on
  365. segment-routing global-block 16000 23999
  366. segment-routing node-msd 8
  367. segment-routing prefix 4.4.4.4/32 index 40 no-php-flag
  368. segment-routing prefix 2001:db8:1000::4/128 index 41 no-php-flag
  369. !
  370.  
  371. rt5:
  372. links:
  373. lo:
  374. ipv4: 5.5.5.5/32
  375. ipv6: 2001:db8:1000::5/128
  376. mpls: yes
  377. eth-rt3-1:
  378. peer: [rt3, eth-rt5-1]
  379. ipv4: 10.0.4.5/24
  380. mpls: yes
  381. eth-rt3-2:
  382. peer: [rt3, eth-rt5-2]
  383. ipv4: 10.0.5.5/24
  384. mpls: yes
  385. eth-rt4:
  386. peer: [rt4, eth-rt5]
  387. ipv4: 10.0.6.5/24
  388. mpls: yes
  389. eth-rt6:
  390. peer: [rt6, eth-rt5]
  391. ipv4: 10.0.8.5/24
  392. mpls: yes
  393. frr:
  394. zebra:
  395. config:
  396. staticd:
  397. config:
  398. isisd:
  399. config: |
  400. interface lo
  401. ip router isis 1
  402. ipv6 router isis 1
  403. isis passive
  404. !
  405. interface eth-rt3-1
  406. ip router isis 1
  407. ipv6 router isis 1
  408. isis network point-to-point
  409. isis hello-multiplier 3
  410. !
  411. interface eth-rt3-2
  412. ip router isis 1
  413. ipv6 router isis 1
  414. isis network point-to-point
  415. isis hello-multiplier 3
  416. !
  417. interface eth-rt4
  418. ip router isis 1
  419. ipv6 router isis 1
  420. isis network point-to-point
  421. isis hello-multiplier 3
  422. !
  423. interface eth-rt6
  424. ip router isis 1
  425. ipv6 router isis 1
  426. isis network point-to-point
  427. isis hello-multiplier 3
  428. !
  429. router isis 1
  430. net 49.0000.0000.0000.0005.00
  431. is-type level-1
  432. topology ipv6-unicast
  433. segment-routing on
  434. segment-routing global-block 16000 23999
  435. segment-routing node-msd 8
  436. segment-routing prefix 5.5.5.5/32 index 50 no-php-flag
  437. segment-routing prefix 2001:db8:1000::5/128 index 51 no-php-flag
  438. !
  439.  
  440. rt6:
  441. links:
  442. lo:
  443. ipv4: 6.6.6.6/32
  444. ipv6: 2001:db8:1000::6/128
  445. mpls: yes
  446. eth-rt4:
  447. peer: [rt4, eth-rt6]
  448. ipv4: 10.0.7.6/24
  449. mpls: yes
  450. eth-rt5:
  451. peer: [rt5, eth-rt6]
  452. ipv4: 10.0.8.6/24
  453. mpls: yes
  454. eth-dst:
  455. peer: [dst, eth-rt6]
  456. ipv4: 10.0.11.1/24
  457. mpls: yes
  458. frr:
  459. zebra:
  460. config:
  461. staticd:
  462. config: |
  463. ip route 9.9.9.2/32 10.0.11.2
  464. ip route 9.9.9.1/32 10.0.7.4 label 16010
  465. !
  466. isisd:
  467. config: |
  468. interface lo
  469. ip router isis 1
  470. ipv6 router isis 1
  471. isis passive
  472. !
  473. interface eth-rt4
  474. ip router isis 1
  475. ipv6 router isis 1
  476. isis network point-to-point
  477. isis hello-multiplier 3
  478. !
  479. interface eth-rt5
  480. ip router isis 1
  481. ipv6 router isis 1
  482. isis network point-to-point
  483. isis hello-multiplier 3
  484. !
  485. interface eth-dst
  486. ip router isis 1
  487. ipv6 router isis 1
  488. isis passive
  489. !
  490. router isis 1
  491. net 49.0000.0000.0000.0006.00
  492. is-type level-1
  493. topology ipv6-unicast
  494. segment-routing on
  495. segment-routing global-block 16000 23999
  496. segment-routing node-msd 8
  497. segment-routing prefix 6.6.6.6/32 index 60 explicit-null
  498. segment-routing prefix 2001:db8:1000::6/128 index 61 explicit-null
  499. !
  500. bgpd:
  501. config: |
  502. route-map SET_SR_POLICY permit 10
  503. set ip next-hop 1.1.1.1
  504. ! // what we really want is this:
  505. ! set color 1
  506. ! // or
  507. ! set sr-te policy LOW_DELAY
  508. !
  509. router bgp 1
  510. bgp router-id 6.6.6.6
  511. neighbor 1.1.1.1 remote-as 1
  512. neighbor 1.1.1.1 update-source lo
  513. !
  514. address-family ipv4 unicast
  515. neighbor 1.1.1.1 next-hop-self
  516. neighbor 1.1.1.1 route-map SET_SR_POLICY in
  517. redistribute static
  518. exit-address-family
  519. !
  520. !
  521.  
  522. switches:
  523. sw1:
  524. links:
  525. sw1-rt1:
  526. peer: [rt1, rt1-sw1]
  527. sw1-rt2:
  528. peer: [rt2, rt2-sw1]
  529. sw1-rt3:
  530. peer: [rt3, rt3-sw1]
  531.  
  532.  
  533. frr:
  534. #perf: yes
  535. #valgrind: yes
  536. base-configs:
  537. all: |
  538. hostname %(node)
  539. password 1
  540. log file %(logdir)/%(node)-%(daemon).log
  541. log commands
  542. zebra: |
  543. debug zebra kernel
  544. debug zebra packet
  545. debug zebra mpls
  546. isisd: |
  547. debug isis events
  548. debug isis route-events
  549. debug isis spf-events
  550. debug isis sr-events
  551. debug isis lsp-gen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement