Advertisement
Guest User

Untitled

a guest
Jul 17th, 2012
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.18 KB | None | 0 0
  1. ## Last commit: 2012-07-10 00:33:23 UTC by root
  2. version 10.4R4.5;
  3. groups {
  4. rsvp {
  5. logical-systems {
  6. <*> {
  7. protocols {
  8. rsvp {
  9. interface all;
  10. }
  11. }
  12. }
  13. }
  14. }
  15. }
  16. apply-groups rsvp;
  17. system {
  18. host-name P-network;
  19. services {
  20. ssh {
  21. root-login allow;
  22. }
  23. }
  24. syslog {
  25. user * {
  26. any emergency;
  27. }
  28. file messages {
  29. any notice;
  30. authorization info;
  31. }
  32. }
  33. }
  34. logical-systems {
  35. C1 {
  36. interfaces {
  37. ge-1/2/11 {
  38. unit 0 {
  39. family inet {
  40. address 172.16.0.6/30;
  41. }
  42. }
  43. }
  44. ge-1/3/0 {
  45. unit 0 {
  46. family inet {
  47. address 172.16.0.2/30;
  48. }
  49. }
  50. }
  51. lo0 {
  52. unit 11 {
  53. family inet {
  54. address 200.200.0.1/32;
  55. address 200.200.0.254/32;
  56. }
  57. }
  58. }
  59. }
  60. protocols {
  61. bgp {
  62. group pe {
  63. type external;
  64. export [ c1-lo0 c1-lo0-254 ];
  65. peer-as 65412;
  66. neighbor 172.16.0.5;
  67. }
  68. group ce {
  69. type external;
  70. multihop;
  71. local-address 200.200.0.1;
  72. export c1-lo0-254-custom-community;
  73. peer-as 65020;
  74. bfd-liveness-detection {
  75. minimum-interval 150;
  76. multiplier 3;
  77. session-mode multihop;
  78. }
  79. neighbor 220.220.0.1;
  80. }
  81. }
  82. }
  83. policy-options {
  84. policy-statement c1-lo0 {
  85. term lo0 {
  86. from {
  87. route-filter 200.200.0.1/32 exact;
  88. }
  89. then accept;
  90. }
  91. }
  92. policy-statement c1-lo0-254 {
  93. term lo0 {
  94. from {
  95. route-filter 200.200.0.254/32 exact;
  96. }
  97. then {
  98. community add no-export;
  99. accept;
  100. }
  101. }
  102. term else {
  103. then reject;
  104. }
  105. }
  106. policy-statement c1-lo0-254-custom-community {
  107. term lo0 {
  108. from {
  109. route-filter 200.200.0.254/32 exact;
  110. }
  111. then {
  112. community add DHANKS-custom;
  113. accept;
  114. }
  115. }
  116. term else {
  117. then reject;
  118. }
  119. }
  120. policy-statement null {
  121. then reject;
  122. }
  123. policy-statement r6 {
  124. term 1 {
  125. from {
  126. protocol static;
  127. route-filter 220.220.0.0/16 exact;
  128. }
  129. then accept;
  130. }
  131. }
  132. policy-statement stat {
  133. from protocol static;
  134. then accept;
  135. }
  136. community DHANKS-custom members 65010:666;
  137. community no-export members no-export;
  138. }
  139. routing-options {
  140. static {
  141. route 200.200.0.0/16 reject;
  142. }
  143. autonomous-system 65010 loops 2;
  144. }
  145. }
  146. C2 {
  147. interfaces {
  148. ge-1/2/9 {
  149. unit 0 {
  150. family inet {
  151. address 172.16.0.10/30;
  152. }
  153. }
  154. }
  155. lo0 {
  156. unit 12 {
  157. family inet {
  158. address 220.220.0.1/24;
  159. address 220.220.0.254/32;
  160. }
  161. }
  162. }
  163. }
  164. protocols {
  165. bgp {
  166. group pe {
  167. type external;
  168. export [ c2-lo0 c2-lo0-254 ];
  169. peer-as 65412;
  170. neighbor 172.16.0.9;
  171. }
  172. group ce {
  173. type external;
  174. traceoptions {
  175. file ce.log;
  176. flag bfd;
  177. }
  178. multihop;
  179. local-address 220.220.0.1;
  180. export c2-lo0-254;
  181. peer-as 65010;
  182. bfd-liveness-detection {
  183. minimum-interval 150;
  184. multiplier 3;
  185. session-mode multihop;
  186. }
  187. neighbor 200.200.0.1;
  188. }
  189. }
  190. }
  191. policy-options {
  192. policy-statement c2-lo0 {
  193. term lo0 {
  194. from {
  195. route-filter 220.220.0.1/32 exact;
  196. }
  197. then accept;
  198. }
  199. }
  200. policy-statement c2-lo0-254 {
  201. term lo0 {
  202. from {
  203. route-filter 220.220.0.254/32 exact;
  204. }
  205. then {
  206. community add no-export;
  207. accept;
  208. }
  209. }
  210. term else {
  211. then reject;
  212. }
  213. }
  214. policy-statement null {
  215. then reject;
  216. }
  217. policy-statement r6 {
  218. term 1 {
  219. from {
  220. protocol static;
  221. route-filter 220.220.0.0/16 exact;
  222. }
  223. then accept;
  224. }
  225. }
  226. policy-statement stat {
  227. from protocol static;
  228. then accept;
  229. }
  230. community no-export members no-export;
  231. }
  232. routing-options {
  233. autonomous-system 65020 loops 2;
  234. }
  235. }
  236. DC {
  237. interfaces {
  238. ge-1/2/3 {
  239. unit 0 {
  240. family inet {
  241. address 10.0.8.1/30;
  242. }
  243. family iso;
  244. }
  245. }
  246. ge-1/2/5 {
  247. unit 0 {
  248. family inet {
  249. address 10.0.8.13/30;
  250. }
  251. family iso;
  252. }
  253. }
  254. lo0 {
  255. unit 8 {
  256. family inet {
  257. address 192.168.0.1/32;
  258. }
  259. family iso {
  260. address 49.0002.1111.1111.1111.00;
  261. }
  262. }
  263. }
  264. }
  265. protocols {
  266. isis {
  267. export static;
  268. level 2 disable;
  269. interface all;
  270. }
  271. rip {
  272. group r6-r7 {
  273. export static;
  274. neighbor ge-1/2/3.0;
  275. neighbor ge-1/2/5.0;
  276. }
  277. }
  278. }
  279. policy-options {
  280. policy-statement static {
  281. term 1 {
  282. from {
  283. route-filter 192.168.0.0/22 upto /24;
  284. }
  285. then accept;
  286. }
  287. }
  288. }
  289. routing-options {
  290. static {
  291. route 192.168.0.0/24 discard;
  292. }
  293. }
  294. }
  295. P1 {
  296. interfaces {
  297. ge-1/0/2 {
  298. unit 0 {
  299. family inet {
  300. address 10.0.5.254/24;
  301. }
  302. family mpls;
  303. }
  304. }
  305. lo0 {
  306. unit 21 {
  307. family inet {
  308. address 120.120.0.1/24;
  309. }
  310. }
  311. }
  312. }
  313. protocols {
  314. bgp {
  315. group r1-r2 {
  316. type external;
  317. export r1-r2;
  318. peer-as 65412;
  319. neighbor 10.0.5.1;
  320. neighbor 10.0.5.2;
  321. }
  322. }
  323. }
  324. policy-options {
  325. policy-statement null {
  326. then reject;
  327. }
  328. policy-statement r1-r2 {
  329. term 1 {
  330. from {
  331. protocol static;
  332. route-filter 120.120.0.0/16 exact;
  333. }
  334. then accept;
  335. }
  336. }
  337. policy-statement static {
  338. term 1 {
  339. from protocol static;
  340. then accept;
  341. }
  342. term 2 {
  343. from {
  344. route-filter 120.120.0.0/16 orlonger reject;
  345. route-filter 200.200.0.0/16 orlonger reject;
  346. route-filter 220.220.0.0/16 orlonger reject;
  347. }
  348. }
  349. }
  350. }
  351. routing-options {
  352. static {
  353. route 120.120.0.0/16 discard;
  354. }
  355. autonomous-system 65050 loops 2;
  356. }
  357. }
  358. R1 {
  359. interfaces {
  360. ge-1/0/0 {
  361. unit 0 {
  362. family inet {
  363. address 10.0.5.1/24;
  364. }
  365. family iso;
  366. family mpls;
  367. }
  368. }
  369. ge-1/0/4 {
  370. unit 0 {
  371. family inet {
  372. address 10.0.4.5/30;
  373. }
  374. family iso;
  375. family mpls;
  376. }
  377. }
  378. ge-1/0/6 {
  379. unit 0 {
  380. family inet {
  381. address 10.0.4.18/30;
  382. }
  383. family iso;
  384. family mpls;
  385. }
  386. }
  387. ge-1/0/8 {
  388. unit 0 {
  389. family inet {
  390. address 10.0.4.14/30;
  391. }
  392. family iso;
  393. family mpls;
  394. }
  395. }
  396. lo0 {
  397. unit 1 {
  398. family inet {
  399. address 10.0.6.1/32;
  400. }
  401. family iso {
  402. address 49.0001.1111.1111.1111.00;
  403. }
  404. }
  405. }
  406. }
  407. protocols {
  408. mpls {
  409. interface all;
  410. }
  411. bgp {
  412. group int {
  413. type internal;
  414. local-address 10.0.6.1;
  415. neighbor 10.0.6.2;
  416. neighbor 10.0.3.3;
  417. neighbor 10.0.3.4;
  418. neighbor 10.0.3.5;
  419. neighbor 10.0.9.6;
  420. neighbor 10.0.9.7;
  421. }
  422. group p1 {
  423. type external;
  424. export ebgp-out;
  425. neighbor 10.0.5.254 {
  426. peer-as 65050;
  427. }
  428. }
  429. }
  430. isis {
  431. level 2 disable;
  432. interface ge-1/0/0.0 {
  433. passive;
  434. }
  435. interface ge-1/0/4.0;
  436. interface ge-1/0/6.0;
  437. interface ge-1/0/8.0;
  438. interface lo0.1;
  439. }
  440. }
  441. policy-options {
  442. policy-statement ebgp-out {
  443. term 1 {
  444. from {
  445. protocol aggregate;
  446. route-filter 10.0.0.0/16 exact;
  447. }
  448. then accept;
  449. }
  450. term 2 {
  451. from community transit;
  452. then reject;
  453. }
  454. }
  455. community transit members 65412:420;
  456. }
  457. routing-options {
  458. autonomous-system 65412;
  459. }
  460. }
  461. R2 {
  462. interfaces {
  463. ge-1/0/1 {
  464. unit 0 {
  465. family inet {
  466. address 10.0.5.2/24;
  467. }
  468. family iso;
  469. family mpls;
  470. }
  471. }
  472. ge-1/0/5 {
  473. unit 0 {
  474. family inet {
  475. address 10.0.4.6/30;
  476. }
  477. family iso;
  478. family mpls;
  479. }
  480. }
  481. ge-1/0/10 {
  482. unit 0 {
  483. family inet {
  484. address 10.0.4.2/30;
  485. }
  486. family iso;
  487. family mpls;
  488. }
  489. }
  490. ge-1/1/0 {
  491. unit 0 {
  492. family inet {
  493. address 10.0.4.10/30;
  494. }
  495. family iso;
  496. family mpls;
  497. }
  498. }
  499. lo0 {
  500. unit 2 {
  501. family inet {
  502. address 10.0.6.2/32;
  503. }
  504. family iso {
  505. address 49.0001.2222.2222.2222.00;
  506. }
  507. }
  508. }
  509. }
  510. protocols {
  511. mpls {
  512. interface all;
  513. }
  514. bgp {
  515. group int {
  516. type internal;
  517. local-address 10.0.6.2;
  518. neighbor 10.0.6.1;
  519. neighbor 10.0.3.3;
  520. neighbor 10.0.3.4;
  521. neighbor 10.0.3.5;
  522. neighbor 10.0.9.6;
  523. neighbor 10.0.9.7;
  524. }
  525. group p1 {
  526. type external;
  527. export ebgp-out;
  528. neighbor 10.0.5.254 {
  529. peer-as 65050;
  530. }
  531. }
  532. }
  533. isis {
  534. level 2 disable;
  535. interface ge-1/0/1.0 {
  536. passive;
  537. }
  538. interface ge-1/0/5.0;
  539. interface ge-1/0/10.0;
  540. interface ge-1/1/0.0;
  541. interface lo0.2;
  542. }
  543. }
  544. policy-options {
  545. policy-statement ebgp-out {
  546. term 1 {
  547. from {
  548. protocol aggregate;
  549. route-filter 10.0.0.0/16 exact;
  550. }
  551. then accept;
  552. }
  553. term 2 {
  554. from community transit;
  555. then reject;
  556. }
  557. }
  558. community transit members 65412:420;
  559. }
  560. routing-options {
  561. autonomous-system 65412;
  562. }
  563. }
  564. R3 {
  565. interfaces {
  566. ge-1/0/9 {
  567. unit 0 {
  568. family inet {
  569. address 10.0.4.13/30;
  570. }
  571. family iso;
  572. family mpls;
  573. }
  574. }
  575. ge-1/0/11 {
  576. unit 0 {
  577. family inet {
  578. address 10.0.4.1/30;
  579. }
  580. family iso;
  581. family mpls;
  582. }
  583. }
  584. ge-1/1/2 {
  585. unit 0 {
  586. family inet {
  587. address 10.0.2.5/30;
  588. }
  589. family iso;
  590. family mpls;
  591. }
  592. }
  593. ge-1/1/4 {
  594. unit 0 {
  595. family inet {
  596. address 10.0.2.2/30;
  597. }
  598. family iso;
  599. family mpls;
  600. }
  601. }
  602. ge-1/2/6 {
  603. unit 0 {
  604. family inet {
  605. address 172.16.0.13/30;
  606. }
  607. }
  608. }
  609. ge-1/3/2 {
  610. unit 0 {
  611. family inet {
  612. address 10.0.2.14/30;
  613. }
  614. family iso;
  615. family mpls;
  616. }
  617. }
  618. lo0 {
  619. unit 3 {
  620. family inet {
  621. address 10.0.3.3/32;
  622. }
  623. family iso {
  624. address 49.0001.3333.3333.3333.00;
  625. }
  626. }
  627. }
  628. }
  629. protocols {
  630. mpls {
  631. interface all;
  632. }
  633. bgp {
  634. advertise-inactive;
  635. group int {
  636. type internal;
  637. local-address 10.0.3.3;
  638. export nhs;
  639. neighbor 10.0.6.1 {
  640. export r1;
  641. }
  642. neighbor 10.0.6.2 {
  643. export r2;
  644. }
  645. neighbor 10.0.3.4;
  646. neighbor 10.0.3.5;
  647. neighbor 10.0.9.6;
  648. neighbor 10.0.9.7;
  649. }
  650. group ext {
  651. import ebgp-in;
  652. export ebgp-out;
  653. neighbor 172.16.0.14 {
  654. peer-as 65222;
  655. }
  656. }
  657. }
  658. isis {
  659. interface ge-1/0/9.0 {
  660. level 2 disable;
  661. }
  662. interface ge-1/0/11.0 {
  663. level 2 disable;
  664. }
  665. interface ge-1/1/2.0 {
  666. level 1 disable;
  667. }
  668. interface ge-1/1/4.0 {
  669. level 1 disable;
  670. }
  671. interface ge-1/3/2.0 {
  672. level 1 disable;
  673. }
  674. interface lo0.3 {
  675. level 1 disable;
  676. }
  677. }
  678. }
  679. policy-options {
  680. policy-statement ebgp-in {
  681. term 1 {
  682. from {
  683. protocol bgp;
  684. neighbor 172.16.0.14;
  685. }
  686. then {
  687. community add transit;
  688. }
  689. }
  690. }
  691. policy-statement ebgp-out {
  692. term 1 {
  693. from {
  694. protocol aggregate;
  695. route-filter 10.0.0.0/16 exact;
  696. }
  697. then accept;
  698. }
  699. }
  700. policy-statement nhs {
  701. term 1 {
  702. from {
  703. protocol bgp;
  704. neighbor 172.16.0.14;
  705. }
  706. then {
  707. next-hop self;
  708. }
  709. }
  710. }
  711. policy-statement r1 {
  712. term 1 {
  713. from {
  714. protocol aggregate;
  715. route-filter 10.0.0.0/16 exact;
  716. }
  717. then {
  718. next-hop 10.0.4.13;
  719. accept;
  720. }
  721. }
  722. term 2 {
  723. from {
  724. protocol bgp;
  725. neighbor 172.16.0.14;
  726. }
  727. then {
  728. next-hop self;
  729. }
  730. }
  731. }
  732. policy-statement r2 {
  733. term 1 {
  734. from {
  735. protocol aggregate;
  736. route-filter 10.0.0.0/16 exact;
  737. }
  738. then {
  739. next-hop 10.0.4.1;
  740. accept;
  741. }
  742. }
  743. term 2 {
  744. from {
  745. protocol bgp;
  746. neighbor 172.16.0.14;
  747. }
  748. then {
  749. next-hop self;
  750. }
  751. }
  752. }
  753. community transit members 65412:420;
  754. }
  755. routing-options {
  756. aggregate {
  757. route 10.0.0.0/16;
  758. }
  759. autonomous-system 65412;
  760. }
  761. firewall {
  762. family mpls {
  763. filter deny {
  764. term 1 {
  765. then discard;
  766. }
  767. }
  768. }
  769. }
  770. }
  771. R4 {
  772. interfaces {
  773. ge-1/0/7 {
  774. unit 0 {
  775. family inet {
  776. address 10.0.4.17/30;
  777. }
  778. family iso;
  779. family mpls;
  780. }
  781. }
  782. ge-1/1/1 {
  783. unit 0 {
  784. family inet {
  785. address 10.0.4.9/30;
  786. }
  787. family iso;
  788. family mpls;
  789. }
  790. }
  791. ge-1/1/3 {
  792. unit 0 {
  793. family inet {
  794. address 10.0.2.6/30;
  795. }
  796. family iso;
  797. family mpls;
  798. }
  799. }
  800. ge-1/1/6 {
  801. unit 0 {
  802. family inet {
  803. address 10.0.2.10/30;
  804. }
  805. family iso;
  806. family mpls;
  807. }
  808. }
  809. ge-1/2/0 {
  810. unit 0 {
  811. family inet {
  812. address 10.0.2.18/30;
  813. }
  814. family iso;
  815. family mpls;
  816. }
  817. }
  818. ge-1/2/10 {
  819. unit 0 {
  820. family inet {
  821. address 172.16.0.5/30;
  822. }
  823. }
  824. }
  825. lo0 {
  826. unit 4 {
  827. family inet {
  828. address 10.0.3.4/32;
  829. }
  830. family iso {
  831. address 49.0001.4444.4444.4444.00;
  832. }
  833. }
  834. }
  835. }
  836. protocols {
  837. mpls {
  838. label-switched-path r4-r6 {
  839. to 10.0.9.6;
  840. no-cspf;
  841. }
  842. label-switched-path r4-r7 {
  843. to 10.0.9.7;
  844. no-cspf;
  845. }
  846. interface all;
  847. }
  848. bgp {
  849. advertise-inactive;
  850. group int {
  851. type internal;
  852. local-address 10.0.3.4;
  853. export nhs;
  854. neighbor 10.0.6.1 {
  855. export r1;
  856. }
  857. neighbor 10.0.6.2 {
  858. export r2;
  859. }
  860. neighbor 10.0.3.3;
  861. neighbor 10.0.3.5;
  862. neighbor 10.0.9.6 {
  863. family inet {
  864. unicast;
  865. }
  866. family inet-vpn {
  867. unicast;
  868. }
  869. }
  870. neighbor 10.0.9.7 {
  871. family inet {
  872. unicast;
  873. }
  874. family inet-vpn {
  875. unicast;
  876. }
  877. }
  878. }
  879. }
  880. isis {
  881. interface ge-1/0/7.0 {
  882. level 2 disable;
  883. }
  884. interface ge-1/1/1.0 {
  885. level 2 disable;
  886. }
  887. interface ge-1/1/3.0 {
  888. level 1 disable;
  889. }
  890. interface ge-1/1/6.0 {
  891. level 1 disable;
  892. }
  893. interface ge-1/2/0.0 {
  894. level 1 disable;
  895. }
  896. interface lo0.4 {
  897. level 1 disable;
  898. }
  899. }
  900. }
  901. policy-options {
  902. policy-statement ebgp-out {
  903. term 1 {
  904. from {
  905. protocol aggregate;
  906. route-filter 10.0.0.0/16 exact;
  907. }
  908. then accept;
  909. }
  910. }
  911. policy-statement nhs {
  912. term 1 {
  913. from {
  914. protocol bgp;
  915. neighbor 172.16.0.6;
  916. }
  917. then {
  918. next-hop self;
  919. }
  920. }
  921. }
  922. policy-statement r1 {
  923. term 1 {
  924. from {
  925. protocol aggregate;
  926. route-filter 10.0.0.0/16 exact;
  927. }
  928. then {
  929. next-hop 10.0.4.17;
  930. accept;
  931. }
  932. }
  933. term 2 {
  934. from {
  935. protocol bgp;
  936. neighbor 172.16.0.6;
  937. }
  938. then {
  939. next-hop self;
  940. }
  941. }
  942. }
  943. policy-statement r2 {
  944. term 1 {
  945. from {
  946. protocol aggregate;
  947. route-filter 10.0.0.0/16 exact;
  948. }
  949. then {
  950. next-hop 10.0.4.9;
  951. accept;
  952. }
  953. }
  954. term 2 {
  955. from {
  956. protocol bgp;
  957. neighbor 172.16.0.6;
  958. }
  959. then {
  960. next-hop self;
  961. }
  962. }
  963. }
  964. }
  965. routing-instances {
  966. c1 {
  967. instance-type vrf;
  968. interface ge-1/2/10.0;
  969. vrf-target target:65412:420;
  970. protocols {
  971. bgp {
  972. group c1 {
  973. type external;
  974. peer-as 65010;
  975. neighbor 172.16.0.6;
  976. }
  977. }
  978. }
  979. }
  980. }
  981. routing-options {
  982. aggregate {
  983. route 10.0.0.0/16;
  984. }
  985. route-distinguisher-id 10.0.3.4;
  986. autonomous-system 65412;
  987. }
  988. }
  989. R5 {
  990. interfaces {
  991. ge-1/1/5 {
  992. unit 0 {
  993. family inet {
  994. address 10.0.2.1/30;
  995. }
  996. family iso;
  997. family mpls;
  998. }
  999. }
  1000. ge-1/1/7 {
  1001. unit 0 {
  1002. family inet {
  1003. address 10.0.2.9/30;
  1004. }
  1005. family iso;
  1006. family mpls;
  1007. }
  1008. }
  1009. ge-1/1/8 {
  1010. unit 0 {
  1011. family inet {
  1012. address 10.0.8.6/30;
  1013. }
  1014. family iso;
  1015. family mpls;
  1016. }
  1017. }
  1018. ge-1/1/10 {
  1019. unit 0 {
  1020. family inet {
  1021. address 10.0.8.9/30;
  1022. }
  1023. family iso;
  1024. family mpls;
  1025. }
  1026. }
  1027. lo0 {
  1028. unit 5 {
  1029. family inet {
  1030. address 10.0.3.5/32;
  1031. }
  1032. family iso {
  1033. address 49.0002.5555.5555.5555.00;
  1034. }
  1035. }
  1036. }
  1037. }
  1038. protocols {
  1039. mpls {
  1040. interface all;
  1041. }
  1042. bgp {
  1043. group int {
  1044. type internal;
  1045. local-address 10.0.3.5;
  1046. neighbor 10.0.6.1;
  1047. neighbor 10.0.6.2;
  1048. neighbor 10.0.3.3;
  1049. neighbor 10.0.3.4;
  1050. neighbor 10.0.9.6;
  1051. neighbor 10.0.9.7;
  1052. }
  1053. }
  1054. isis {
  1055. export l1-l2;
  1056. interface ge-1/1/5.0 {
  1057. level 1 passive;
  1058. }
  1059. interface ge-1/1/7.0 {
  1060. level 1 passive;
  1061. }
  1062. interface ge-1/1/8.0 {
  1063. level 2 disable;
  1064. }
  1065. interface ge-1/1/10.0 {
  1066. level 2 disable;
  1067. }
  1068. interface lo0.5;
  1069. }
  1070. }
  1071. policy-options {
  1072. policy-statement l1-l2 {
  1073. term 1 {
  1074. from {
  1075. protocol isis;
  1076. level 1;
  1077. route-filter 192.168.0.0/22 longer;
  1078. }
  1079. to level 2;
  1080. then accept;
  1081. }
  1082. }
  1083. }
  1084. routing-options {
  1085. autonomous-system 65412;
  1086. }
  1087. }
  1088. R6 {
  1089. interfaces {
  1090. ge-1/1/9 {
  1091. unit 0 {
  1092. family inet {
  1093. address 10.0.8.5/30;
  1094. }
  1095. family iso;
  1096. family mpls;
  1097. }
  1098. }
  1099. ge-1/2/2 {
  1100. unit 0 {
  1101. family inet {
  1102. address 10.0.8.2/30;
  1103. }
  1104. family iso;
  1105. }
  1106. }
  1107. ge-1/2/8 {
  1108. unit 0 {
  1109. family inet {
  1110. address 172.16.0.9/30;
  1111. }
  1112. }
  1113. }
  1114. ge-1/3/3 {
  1115. unit 0 {
  1116. family inet {
  1117. address 10.0.2.13/30;
  1118. }
  1119. family iso;
  1120. family mpls;
  1121. }
  1122. }
  1123. lo0 {
  1124. unit 6 {
  1125. family inet {
  1126. address 10.0.9.6/32;
  1127. }
  1128. family iso {
  1129. address 49.0002.6666.6666.6666.00;
  1130. }
  1131. }
  1132. }
  1133. }
  1134. protocols {
  1135. mpls {
  1136. label-switched-path r6-r4 {
  1137. to 10.0.3.4;
  1138. no-cspf;
  1139. }
  1140. label-switched-path r6-r7 {
  1141. to 10.0.9.7;
  1142. no-cspf;
  1143. }
  1144. interface all;
  1145. }
  1146. bgp {
  1147. group int {
  1148. type internal;
  1149. local-address 10.0.9.6;
  1150. export nhs;
  1151. neighbor 10.0.6.1;
  1152. neighbor 10.0.6.2;
  1153. neighbor 10.0.3.3;
  1154. neighbor 10.0.3.4 {
  1155. family inet {
  1156. unicast;
  1157. }
  1158. family inet-vpn {
  1159. unicast;
  1160. }
  1161. }
  1162. neighbor 10.0.3.5;
  1163. neighbor 10.0.9.7 {
  1164. family inet {
  1165. unicast;
  1166. }
  1167. family inet-vpn {
  1168. unicast;
  1169. }
  1170. }
  1171. }
  1172. }
  1173. isis {
  1174. export rip-isis;
  1175. interface ge-1/1/9.0 {
  1176. level 2 disable;
  1177. }
  1178. interface ge-1/2/2.0 {
  1179. level 2 disable;
  1180. level 1 passive;
  1181. }
  1182. interface ge-1/3/3.0 {
  1183. level 1 disable;
  1184. }
  1185. interface lo0.6;
  1186. }
  1187. rip {
  1188. group dc {
  1189. export static-rip;
  1190. neighbor ge-1/2/2.0;
  1191. }
  1192. }
  1193. }
  1194. policy-options {
  1195. policy-statement ebgp-out {
  1196. term 1 {
  1197. from {
  1198. protocol aggregate;
  1199. route-filter 10.0.0.0/16 exact;
  1200. }
  1201. then accept;
  1202. }
  1203. term 2 {
  1204. from {
  1205. route-filter 192.168.0.0/22 upto /24;
  1206. }
  1207. then accept;
  1208. }
  1209. }
  1210. policy-statement ibgp {
  1211. term 1 {
  1212. from {
  1213. protocol bgp;
  1214. neighbor 172.16.0.10;
  1215. }
  1216. then {
  1217. next-hop self;
  1218. }
  1219. }
  1220. term 2 {
  1221. from {
  1222. route-filter 192.168.0.0/22 longer;
  1223. }
  1224. then accept;
  1225. }
  1226. }
  1227. policy-statement isis-ospf {
  1228. term 1 {
  1229. from {
  1230. protocol isis;
  1231. route-filter 192.168.0.0/22 longer;
  1232. }
  1233. then accept;
  1234. }
  1235. }
  1236. policy-statement nhs {
  1237. term 1 {
  1238. from {
  1239. protocol bgp;
  1240. neighbor 172.16.0.10;
  1241. }
  1242. then {
  1243. next-hop self;
  1244. }
  1245. }
  1246. term 2 {
  1247. from {
  1248. route-filter 192.168.0.0/22 longer;
  1249. }
  1250. then accept;
  1251. }
  1252. }
  1253. policy-statement ospf-isis {
  1254. term 1 {
  1255. from {
  1256. protocol ospf;
  1257. route-filter 0.0.0.0/0 exact;
  1258. }
  1259. then accept;
  1260. }
  1261. }
  1262. policy-statement rip-isis {
  1263. term 1 {
  1264. from {
  1265. protocol rip;
  1266. route-filter 192.168.0.0/22 longer;
  1267. }
  1268. then accept;
  1269. }
  1270. }
  1271. policy-statement static-rip {
  1272. term 1 {
  1273. from {
  1274. protocol static;
  1275. route-filter 0.0.0.0/0 exact;
  1276. }
  1277. then accept;
  1278. }
  1279. }
  1280. }
  1281. routing-instances {
  1282. c2 {
  1283. instance-type vrf;
  1284. interface ge-1/2/8.0;
  1285. vrf-target target:65412:420;
  1286. protocols {
  1287. bgp {
  1288. group c2 {
  1289. type external;
  1290. peer-as 65020;
  1291. neighbor 172.16.0.10;
  1292. }
  1293. }
  1294. }
  1295. }
  1296. }
  1297. routing-options {
  1298. static {
  1299. route 0.0.0.0/0 reject;
  1300. }
  1301. aggregate {
  1302. route 10.0.0.0/16;
  1303. }
  1304. route-distinguisher-id 10.0.9.6;
  1305. autonomous-system 65412;
  1306. }
  1307. }
  1308. R7 {
  1309. interfaces {
  1310. ge-1/1/11 {
  1311. unit 0 {
  1312. family inet {
  1313. address 10.0.8.10/30;
  1314. }
  1315. family iso;
  1316. family mpls;
  1317. }
  1318. }
  1319. ge-1/2/1 {
  1320. unit 0 {
  1321. family inet {
  1322. address 10.0.2.17/30;
  1323. }
  1324. family iso;
  1325. family mpls;
  1326. }
  1327. }
  1328. ge-1/2/4 {
  1329. unit 0 {
  1330. family inet {
  1331. address 10.0.8.14/30;
  1332. }
  1333. family iso;
  1334. }
  1335. }
  1336. ge-1/3/1 {
  1337. unit 0 {
  1338. family inet {
  1339. address 172.16.0.1/30;
  1340. }
  1341. }
  1342. }
  1343. lo0 {
  1344. unit 7 {
  1345. family inet {
  1346. address 10.0.9.7/32;
  1347. }
  1348. family iso {
  1349. address 49.0002.7777.7777.7777.00;
  1350. }
  1351. }
  1352. }
  1353. }
  1354. protocols {
  1355. mpls {
  1356. label-switched-path r7-r4 {
  1357. to 10.0.3.4;
  1358. no-cspf;
  1359. }
  1360. label-switched-path r7-r6 {
  1361. to 10.0.9.6;
  1362. no-cspf;
  1363. }
  1364. interface all;
  1365. }
  1366. bgp {
  1367. group int {
  1368. type internal;
  1369. local-address 10.0.9.7;
  1370. export nhs;
  1371. neighbor 10.0.6.1;
  1372. neighbor 10.0.6.2;
  1373. neighbor 10.0.3.3;
  1374. neighbor 10.0.3.4 {
  1375. family inet {
  1376. unicast;
  1377. }
  1378. family inet-vpn {
  1379. unicast;
  1380. }
  1381. }
  1382. neighbor 10.0.3.5;
  1383. neighbor 10.0.9.6 {
  1384. family inet {
  1385. unicast;
  1386. }
  1387. family inet-vpn {
  1388. unicast;
  1389. }
  1390. }
  1391. }
  1392. }
  1393. isis {
  1394. export rip-isis;
  1395. interface ge-1/1/11.0 {
  1396. level 2 disable;
  1397. }
  1398. interface ge-1/2/1.0 {
  1399. level 1 disable;
  1400. }
  1401. interface ge-1/2/4.0 {
  1402. level 2 disable;
  1403. level 1 passive;
  1404. }
  1405. interface lo0.7;
  1406. }
  1407. rip {
  1408. group dc {
  1409. export static-rip;
  1410. neighbor ge-1/2/4.0;
  1411. }
  1412. }
  1413. }
  1414. policy-options {
  1415. policy-statement ebgp-out {
  1416. term 1 {
  1417. from {
  1418. protocol aggregate;
  1419. route-filter 10.0.0.0/16 exact;
  1420. }
  1421. then accept;
  1422. }
  1423. term 2 {
  1424. from {
  1425. route-filter 192.168.0.0/22 upto /24;
  1426. }
  1427. then accept;
  1428. }
  1429. }
  1430. policy-statement isis-ospf {
  1431. term 1 {
  1432. from {
  1433. protocol isis;
  1434. route-filter 192.168.0.0/22 longer;
  1435. }
  1436. then accept;
  1437. }
  1438. }
  1439. policy-statement nhs {
  1440. term 1 {
  1441. from {
  1442. protocol bgp;
  1443. neighbor 172.16.0.2;
  1444. }
  1445. then {
  1446. next-hop self;
  1447. }
  1448. }
  1449. term 2 {
  1450. from {
  1451. route-filter 192.168.0.0/22 longer;
  1452. }
  1453. then accept;
  1454. }
  1455. }
  1456. policy-statement ospf-isis {
  1457. term 1 {
  1458. from {
  1459. protocol ospf;
  1460. route-filter 0.0.0.0/0 exact;
  1461. }
  1462. then accept;
  1463. }
  1464. }
  1465. policy-statement rip-isis {
  1466. term 1 {
  1467. from {
  1468. protocol rip;
  1469. route-filter 192.168.0.0/22 longer;
  1470. }
  1471. then accept;
  1472. }
  1473. }
  1474. policy-statement static-rip {
  1475. term 1 {
  1476. from {
  1477. protocol static;
  1478. route-filter 0.0.0.0/0 exact;
  1479. }
  1480. then accept;
  1481. }
  1482. }
  1483. }
  1484. routing-instances {
  1485. c1 {
  1486. instance-type vrf;
  1487. interface ge-1/3/1.0;
  1488. vrf-target target:65412:420;
  1489. protocols {
  1490. bgp {
  1491. group c1 {
  1492. type external;
  1493. peer-as 65010;
  1494. neighbor 172.16.0.2;
  1495. }
  1496. }
  1497. }
  1498. }
  1499. }
  1500. routing-options {
  1501. aggregate {
  1502. route 10.0.0.0/16;
  1503. }
  1504. route-distinguisher-id 10.0.9.7;
  1505. autonomous-system 65412;
  1506. }
  1507. }
  1508. T1 {
  1509. interfaces {
  1510. ge-1/2/7 {
  1511. unit 0 {
  1512. family inet {
  1513. address 172.16.0.14/30;
  1514. }
  1515. }
  1516. }
  1517. lo0 {
  1518. unit 31 {
  1519. family inet {
  1520. address 130.130.0.1/32;
  1521. }
  1522. }
  1523. }
  1524. }
  1525. protocols {
  1526. bgp {
  1527. group test {
  1528. type internal;
  1529. cluster 130.130.1.1;
  1530. neighbor 10.0.1.201 {
  1531. export null;
  1532. }
  1533. }
  1534. group ext {
  1535. type external;
  1536. export static;
  1537. neighbor 172.16.0.13 {
  1538. peer-as 65412;
  1539. }
  1540. }
  1541. }
  1542. }
  1543. policy-options {
  1544. policy-statement null {
  1545. then reject;
  1546. }
  1547. policy-statement r1-r2 {
  1548. term 1 {
  1549. from {
  1550. protocol static;
  1551. route-filter 120.120.0.0/16 exact;
  1552. }
  1553. then accept;
  1554. }
  1555. }
  1556. policy-statement static {
  1557. term 1 {
  1558. from protocol static;
  1559. then accept;
  1560. }
  1561. term 2 {
  1562. from {
  1563. route-filter 120.120.0.0/16 orlonger reject;
  1564. route-filter 200.200.0.0/16 orlonger reject;
  1565. route-filter 220.220.0.0/16 orlonger reject;
  1566. }
  1567. }
  1568. }
  1569. }
  1570. routing-options {
  1571. static {
  1572. route 130.130.0.0/16 discard;
  1573. }
  1574. autonomous-system 65222 loops 2;
  1575. }
  1576. }
  1577. }
  1578. interfaces {
  1579. fxp0 {
  1580. unit 0 {
  1581. family inet {
  1582. address 172.16.1.254/24;
  1583. }
  1584. }
  1585. }
  1586. }
  1587. protocols {
  1588. lldp {
  1589. interface all;
  1590. }
  1591. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement