Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.24 KB | None | 0 0
  1. dean@lab# show logical-systems | no-more
  2. A {
  3. interfaces {
  4. lt-0/0/10 {
  5. unit 1 {
  6. description "Link to B";
  7. encapsulation ethernet;
  8. bandwidth 10g;
  9. peer-unit 2;
  10. family inet {
  11. address 10.0.1.1/24;
  12. }
  13. family iso;
  14. family mpls;
  15. }
  16. unit 3 {
  17. description "Link to C - Expensive";
  18. encapsulation ethernet;
  19. bandwidth 1g;
  20. peer-unit 4;
  21. family inet {
  22. address 10.0.2.1/24;
  23. }
  24. family iso;
  25. family mpls;
  26. }
  27. unit 11 {
  28. description "HE Simulation";
  29. encapsulation ethernet;
  30. peer-unit 12;
  31. family inet {
  32. address 10.50.50.2/30;
  33. }
  34. }
  35. }
  36. lo0 {
  37. unit 2 {
  38. family inet {
  39. address 10.10.10.3/32;
  40. }
  41. family iso {
  42. address 49.0001.0100.1001.0003.00;
  43. }
  44. family mpls;
  45. }
  46. }
  47. }
  48. protocols {
  49. rsvp {
  50. interface lt-0/0/10.1;
  51. interface lt-0/0/10.3;
  52. interface lo0.2;
  53. }
  54. mpls {
  55. inactive: traffic-engineering {
  56. bgp-igp;
  57. }
  58. label-switched-path LSP-A-B {
  59. from 10.10.10.3;
  60. to 10.10.10.2;
  61. bandwidth 1g;
  62. priority 7 1;
  63. }
  64. label-switched-path LSP-A-C {
  65. from 10.10.10.3;
  66. to 10.10.10.1;
  67. bandwidth 1g;
  68. priority 7 1;
  69. }
  70. interface lo0.2;
  71. interface lt-0/0/10.1;
  72. interface lt-0/0/10.3;
  73. }
  74. bgp {
  75. group HE {
  76. peer-as 6939;
  77. neighbor 10.50.50.1;
  78. }
  79. group internal {
  80. local-address 10.10.10.3;
  81. export next-hop-self;
  82. peer-as 5000;
  83. neighbor 10.10.10.1;
  84. neighbor 10.10.10.2;
  85. }
  86. }
  87. isis {
  88. level 1 disable;
  89. interface lt-0/0/10.1 {
  90. bfd-liveness-detection {
  91. minimum-interval 50;
  92. }
  93. }
  94. interface lt-0/0/10.3 {
  95. bfd-liveness-detection {
  96. minimum-interval 50;
  97. }
  98. }
  99. interface lo0.2 {
  100. passive;
  101. }
  102. }
  103. }
  104. policy-options {
  105. policy-statement next-hop-self {
  106. term term-1 {
  107. then {
  108. next-hop self;
  109. }
  110. }
  111. }
  112. }
  113. routing-options {
  114. autonomous-system 5000;
  115. }
  116. }
  117. B {
  118. interfaces {
  119. lt-0/0/10 {
  120. unit 2 {
  121. description "Link to A";
  122. encapsulation ethernet;
  123. bandwidth 10g;
  124. peer-unit 1;
  125. family inet {
  126. address 10.0.1.2/24;
  127. }
  128. family iso;
  129. family mpls;
  130. }
  131. inactive: unit 5 {
  132. description "Link to C";
  133. encapsulation ethernet;
  134. bandwidth 10g;
  135. peer-unit 6;
  136. family inet {
  137. address 10.0.3.1/24;
  138. }
  139. family iso;
  140. family mpls;
  141. }
  142. unit 7 {
  143. description "Link to CE1";
  144. encapsulation ethernet-ccc;
  145. peer-unit 8;
  146. family ccc;
  147. }
  148. }
  149. lo0 {
  150. unit 6 {
  151. family inet {
  152. address 10.10.10.2/32;
  153. }
  154. family iso {
  155. address 49.0001.0100.1001.0002.00;
  156. }
  157. family mpls;
  158. }
  159. }
  160. }
  161. protocols {
  162. rsvp {
  163. interface lo0.6;
  164. interface lt-0/0/10.2;
  165. interface lt-0/0/10.5;
  166. }
  167. mpls {
  168. inactive: traffic-engineering {
  169. bgp-igp;
  170. }
  171. label-switched-path LSP-B-A {
  172. from 10.10.10.2;
  173. to 10.10.10.3;
  174. bandwidth 1g;
  175. priority 7 1;
  176. }
  177. label-switched-path LSP-B-C {
  178. from 10.10.10.2;
  179. to 10.10.10.1;
  180. bandwidth 1g;
  181. priority 7 1;
  182. }
  183. label-switched-path LSP-B-C-L2VPN {
  184. from 10.10.10.2;
  185. to 10.10.10.1;
  186. bandwidth 500m;
  187. priority 0 0;
  188. }
  189. interface lt-0/0/10.2;
  190. interface lt-0/0/10.5;
  191. }
  192. bgp {
  193. local-as 5000;
  194. group internal {
  195. local-address 10.10.10.2;
  196. export next-hop-self;
  197. peer-as 5000;
  198. neighbor 10.10.10.1;
  199. neighbor 10.10.10.3;
  200. }
  201. }
  202. isis {
  203. level 1 disable;
  204. interface lt-0/0/10.2 {
  205. bfd-liveness-detection {
  206. minimum-interval 50;
  207. }
  208. }
  209. interface lt-0/0/10.5 {
  210. bfd-liveness-detection {
  211. minimum-interval 50;
  212. }
  213. }
  214. interface lo0.6 {
  215. passive;
  216. }
  217. }
  218. ldp {
  219. interface lo0.6;
  220. }
  221. l2circuit {
  222. neighbor 10.10.10.1 {
  223. interface lt-0/0/10.7 {
  224. virtual-circuit-id 1;
  225. community test-community;
  226. }
  227. }
  228. }
  229. }
  230. policy-options {
  231. policy-statement load-balancing-policy {
  232. then {
  233. load-balance per-packet;
  234. }
  235. }
  236. policy-statement map-l2circuit-to-lsp {
  237. term 1 {
  238. from {
  239. protocol l2circuit;
  240. community test-community;
  241. }
  242. then {
  243. install-nexthop lsp LSP-B-C-L2VPN;
  244. }
  245. }
  246. }
  247. policy-statement next-hop-self {
  248. term term-1 {
  249. then {
  250. next-hop self;
  251. }
  252. }
  253. }
  254. community test-community members 300:300;
  255. }
  256. routing-options {
  257. autonomous-system 5000;
  258. forwarding-table {
  259. export [ load-balancing-policy map-l2circuit-to-lsp ];
  260. }
  261. }
  262. }
  263. C {
  264. interfaces {
  265. lt-0/0/10 {
  266. unit 4 {
  267. description "Link to A - Expensive";
  268. encapsulation ethernet;
  269. bandwidth 1g;
  270. peer-unit 3;
  271. family inet {
  272. address 10.0.2.2/24;
  273. }
  274. family iso;
  275. family mpls;
  276. }
  277. unit 6 {
  278. description "Link to B";
  279. encapsulation ethernet;
  280. bandwidth 10g;
  281. peer-unit 5;
  282. family inet {
  283. address 10.0.3.2/24;
  284. }
  285. family iso;
  286. family mpls;
  287. }
  288. unit 9 {
  289. description "Link to CE2";
  290. encapsulation ethernet-ccc;
  291. peer-unit 10;
  292. family ccc;
  293. }
  294. unit 13 {
  295. description "Cogent Simulation";
  296. encapsulation ethernet;
  297. peer-unit 14;
  298. family inet {
  299. address 10.50.51.2/30;
  300. }
  301. }
  302. }
  303. lo0 {
  304. unit 5 {
  305. family inet {
  306. address 10.10.10.1/32;
  307. }
  308. family iso {
  309. address 49.0001.0100.1001.0001.00;
  310. }
  311. family mpls;
  312. }
  313. }
  314. }
  315. protocols {
  316. rsvp {
  317. interface lo0.5;
  318. interface lt-0/0/10.4;
  319. interface lt-0/0/10.6;
  320. }
  321. mpls {
  322. inactive: traffic-engineering {
  323. bgp-igp;
  324. }
  325. label-switched-path LSP-C-A {
  326. from 10.10.10.1;
  327. to 10.10.10.3;
  328. bandwidth 1g;
  329. priority 7 1;
  330. }
  331. label-switched-path LSP-C-B {
  332. from 10.10.10.1;
  333. to 10.10.10.2;
  334. bandwidth 1g;
  335. priority 7 1;
  336. }
  337. label-switched-path LSP-C-B-L2VPN {
  338. from 10.10.10.1;
  339. to 10.10.10.2;
  340. bandwidth 500m;
  341. priority 0 0;
  342. }
  343. interface lt-0/0/10.4;
  344. interface lt-0/0/10.6;
  345. }
  346. bgp {
  347. group COGENT {
  348. peer-as 174;
  349. neighbor 10.50.51.1;
  350. }
  351. group internal {
  352. local-address 10.10.10.1;
  353. export next-hop-self;
  354. peer-as 5000;
  355. neighbor 10.10.10.2;
  356. neighbor 10.10.10.3;
  357. }
  358. }
  359. isis {
  360. level 1 disable;
  361. interface lt-0/0/10.4 {
  362. bfd-liveness-detection {
  363. minimum-interval 50;
  364. }
  365. }
  366. interface lt-0/0/10.6 {
  367. bfd-liveness-detection {
  368. minimum-interval 50;
  369. }
  370. }
  371. interface lo0.5 {
  372. passive;
  373. }
  374. }
  375. ldp {
  376. interface lo0.5;
  377. }
  378. l2circuit {
  379. neighbor 10.10.10.2 {
  380. interface lt-0/0/10.9 {
  381. virtual-circuit-id 1;
  382. community test-community;
  383. }
  384. }
  385. }
  386. }
  387. policy-options {
  388. policy-statement load-balancing-policy {
  389. then {
  390. load-balance per-packet;
  391. }
  392. }
  393. policy-statement map-l2circuit-to-lsp {
  394. term 1 {
  395. from {
  396. protocol l2circuit;
  397. community test-community;
  398. }
  399. then {
  400. install-nexthop lsp LSP-C-B-L2VPN;
  401. }
  402. }
  403. }
  404. policy-statement next-hop-self {
  405. term term-1 {
  406. then {
  407. next-hop self;
  408. }
  409. }
  410. }
  411. community test-community members 300:300;
  412. }
  413. routing-options {
  414. autonomous-system 5000;
  415. forwarding-table {
  416. export [ load-balancing-policy map-l2circuit-to-lsp ];
  417. }
  418. }
  419. }
  420. CE1 {
  421. interfaces {
  422. lt-0/0/10 {
  423. unit 8 {
  424. description "Link to B";
  425. encapsulation ethernet;
  426. peer-unit 7;
  427. family inet {
  428. address 10.99.99.1/24 {
  429. arp 10.99.99.2 mac 5c:5e:ab:d5:f4:00;
  430. }
  431. }
  432. }
  433. }
  434. }
  435. }
  436. CE2 {
  437. interfaces {
  438. lt-0/0/10 {
  439. unit 10 {
  440. description "Link to C";
  441. encapsulation ethernet;
  442. peer-unit 9;
  443. family inet {
  444. address 10.99.99.2/24 {
  445. arp 10.99.99.1 mac 5c:5e:ab:d5:f4:00;
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }
  452. COGENT {
  453. interfaces {
  454. lt-0/0/10 {
  455. unit 14 {
  456. description "Cogent Simulation";
  457. encapsulation ethernet;
  458. peer-unit 13;
  459. family inet {
  460. address 10.50.51.1/30;
  461. }
  462. }
  463. unit 16 {
  464. description Peering;
  465. encapsulation ethernet;
  466. peer-unit 15;
  467. family inet {
  468. address 10.60.60.2/30;
  469. }
  470. }
  471. }
  472. }
  473. protocols {
  474. bgp {
  475. group Customer {
  476. export customer-out;
  477. peer-as 5000;
  478. neighbor 10.50.51.2;
  479. }
  480. group Peering {
  481. import peers-in;
  482. export peers-out;
  483. peer-as 6939;
  484. neighbor 10.60.60.1;
  485. }
  486. }
  487. }
  488. policy-options {
  489. policy-statement customer-out {
  490. term accept-originated {
  491. from community originate-routes;
  492. then accept;
  493. }
  494. term accept-peers {
  495. from community peers;
  496. then accept;
  497. }
  498. term reject-all {
  499. then reject;
  500. }
  501. }
  502. policy-statement peers-in {
  503. term routes-in {
  504. then {
  505. community set peers;
  506. accept;
  507. }
  508. }
  509. }
  510. policy-statement peers-out {
  511. term routes-out {
  512. from community peers;
  513. then accept;
  514. }
  515. term accept-originated {
  516. from community originate-routes;
  517. then accept;
  518. }
  519. }
  520. community originate-routes members 174:100;
  521. community peers members 174:101;
  522. }
  523. routing-options {
  524. static {
  525. route 2.2.2.0/24 {
  526. discard;
  527. community 174:100;
  528. }
  529. }
  530. autonomous-system 174;
  531. }
  532. }
  533. HE {
  534. interfaces {
  535. lt-0/0/10 {
  536. unit 12 {
  537. description "HE Simulation";
  538. encapsulation ethernet;
  539. peer-unit 11;
  540. family inet {
  541. address 10.50.50.1/30;
  542. }
  543. }
  544. unit 15 {
  545. description Peering;
  546. encapsulation ethernet;
  547. peer-unit 16;
  548. family inet {
  549. address 10.60.60.1/30;
  550. }
  551. }
  552. }
  553. }
  554. protocols {
  555. bgp {
  556. group Customer {
  557. export customer-out;
  558. peer-as 5000;
  559. neighbor 10.50.50.2;
  560. }
  561. group Peering {
  562. import peers-in;
  563. export peers-out;
  564. peer-as 174;
  565. neighbor 10.60.60.2;
  566. }
  567. }
  568. }
  569. policy-options {
  570. policy-statement customer-out {
  571. term accept-originated {
  572. from community originate-routes;
  573. then accept;
  574. }
  575. term accept-peers {
  576. from community peers;
  577. then accept;
  578. }
  579. term reject-all {
  580. then reject;
  581. }
  582. }
  583. policy-statement peers-in {
  584. term routes-in {
  585. then {
  586. community set peers;
  587. accept;
  588. }
  589. }
  590. }
  591. policy-statement peers-out {
  592. term routes-out {
  593. from community peers;
  594. then accept;
  595. }
  596. term accept-originated {
  597. from community originate-routes;
  598. then accept;
  599. }
  600. }
  601. community originate-routes members 6939:100;
  602. community peers members 6939:101;
  603. }
  604. routing-options {
  605. static {
  606. route 1.1.1.0/24 {
  607. discard;
  608. community 6939:100;
  609. }
  610. }
  611. autonomous-system 6939;
  612. }
  613. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement