Advertisement
Guest User

PE01

a guest
Sep 19th, 2017
1,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.73 KB | None | 0 0
  1. root@PE11# show | display set
  2. set version 17.1R1.8
  3. set system host-name PE11
  4. set system domain-name testlab.com
  5. set system root-authentication encrypted-password "$6$xeotM6nn$DitjFeRjbapDRr0RPpSzJqBB6mB5eOhyG062pQPzFaPeVjKpOxWjknVbF66LYld3GUhyx.sKQJCFygIUmAwF51"
  6. set system login user the-packet-thrower uid 2000
  7. set system login user the-packet-thrower class super-user
  8. set system login user the-packet-thrower authentication encrypted-password "$6$eNn4D2jr$2nNfLEYQHFWErl2SlDg3rHqXkIYsFi1tl0ov5VW3RLDvLy6p4AS342Nwzt2LYptBCqwqsuE1CnpdAM16w4l4a."
  9. set system services ssh
  10. set system syslog user * any emergency
  11. set system syslog file messages any notice
  12. set system syslog file messages authorization info
  13. set system syslog file interactive-commands interactive-commands any
  14. set logical-systems RR01 interfaces ge-0/0/2 unit 3123 vlan-id 3123
  15. set logical-systems RR01 interfaces ge-0/0/2 unit 3123 family inet address 10.0.123.254/24
  16. set logical-systems RR01 interfaces ge-0/0/2 unit 3123 family mpls
  17. set logical-systems RR01 interfaces lo0 unit 1 family inet address 192.168.255.154/32
  18. set logical-systems RR01 protocols mpls interface all
  19. set logical-systems RR01 protocols bgp group PE-INTERNAL type internal
  20. set logical-systems RR01 protocols bgp group PE-INTERNAL local-address 192.168.255.154
  21. set logical-systems RR01 protocols bgp group PE-INTERNAL family inet-vpn unicast
  22. set logical-systems RR01 protocols bgp group PE-INTERNAL cluster 192.168.255.254
  23. set logical-systems RR01 protocols bgp group PE-INTERNAL neighbor 192.168.255.11
  24. set logical-systems RR01 protocols bgp group PE-INTERNAL neighbor 192.168.255.22
  25. set logical-systems RR01 protocols bgp group PE-INTERNAL neighbor 192.168.255.33
  26. set logical-systems RR01 protocols bgp group PE-INTERNAL neighbor 192.168.255.44
  27. set logical-systems RR01 protocols ospf area 0.0.0.0 interface all
  28. set logical-systems RR01 protocols ldp interface all
  29. set logical-systems RR01 routing-options autonomous-system 65123
  30. set interfaces ge-0/0/0 unit 0 family inet address 10.20.2.201/24
  31. set interfaces ge-0/0/1 vlan-tagging
  32. set interfaces ge-0/0/1 unit 3011 vlan-id 3011
  33. set interfaces ge-0/0/1 unit 3011 family inet address 10.1.11.254/24
  34. set interfaces ge-0/0/1 unit 3011 family mpls
  35. set interfaces ge-0/0/1 unit 3123 vlan-id 3123
  36. set interfaces ge-0/0/1 unit 3123 family inet address 10.0.123.11/24
  37. set interfaces ge-0/0/1 unit 3123 family mpls
  38. set interfaces ge-0/0/2 vlan-tagging
  39. set interfaces ge-0/0/5 unit 0 family inet address 192.168.1.254/24
  40. set interfaces lo0 unit 0 family inet address 192.168.255.11/32
  41. set interfaces lo0 unit 0 family inet6 address 2001:1234::1/128
  42. set interfaces lo0 unit 0 family mpls
  43. set routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
  44. set routing-options router-id 192.168.255.11
  45. set routing-options autonomous-system 65123
  46. set protocols mpls interface all
  47. set protocols bgp group RR type internal
  48. set protocols bgp group RR local-address 192.168.255.11
  49. set protocols bgp group RR family inet-vpn unicast
  50. set protocols bgp group RR neighbor 192.168.255.154
  51. set protocols bgp group RR neighbor 192.168.255.254
  52. set protocols ospf area 0.0.0.0 interface all
  53. set protocols ospf area 0.0.0.0 interface lo0.0 passive
  54. set protocols ldp deaggregate
  55. set protocols ldp interface all
  56. set protocols lldp interface all
  57. set policy-options policy-statement EXPORT-BGP then accept
  58. set policy-options policy-statement EXPORT-CE01 term EXPORT from protocol direct
  59. set policy-options policy-statement EXPORT-CE01 term EXPORT from protocol bgp
  60. set policy-options policy-statement EXPORT-CE01 term EXPORT from protocol rip
  61. set policy-options policy-statement EXPORT-CE01 term EXPORT from protocol ospf
  62. set policy-options policy-statement EXPORT-CE01 term EXPORT then community add RT-EXPORT-CE01
  63. set policy-options policy-statement EXPORT-CE01 term EXPORT then accept
  64. set policy-options policy-statement EXPORT-CE01 term REJECT then reject
  65. set policy-options policy-statement EXPORT-OSPF from protocol bgp
  66. set policy-options policy-statement EXPORT-OSPF then accept
  67. set policy-options policy-statement EXPORT-RIP then metric 5
  68. set policy-options policy-statement EXPORT-RIP then accept
  69. set policy-options policy-statement IMPORT-CE01 term IMPORT from protocol bgp
  70. set policy-options policy-statement IMPORT-CE01 term IMPORT from community RT-IMPORT-CE01
  71. set policy-options policy-statement IMPORT-CE01 term IMPORT from community RT-IMPORT-CE02
  72. set policy-options policy-statement IMPORT-CE01 term IMPORT then accept
  73. set policy-options policy-statement IMPORT-CE01 term REJECT then reject
  74. set policy-options community RT-EXPORT-CE01 members target:65123:101
  75. set policy-options community RT-IMPORT-CE01 members target:65123:101
  76. set policy-options community RT-IMPORT-CE02 members target:65123:102
  77. set policy-options community RT-IMPORT-CE03 members target:65123:103
  78. set policy-options community RT-IMPORT-CE04 members target:65123:104
  79. set routing-instances CE01 instance-type vrf
  80. set routing-instances CE01 interface ge-0/0/5.0
  81. set routing-instances CE01 route-distinguisher 65123:101
  82. set routing-instances CE01 vrf-import IMPORT-CE01
  83. set routing-instances CE01 vrf-export EXPORT-CE01
  84. set routing-instances CE01 vrf-table-label
  85. set routing-instances CE01 routing-options router-id 192.168.255.11
  86. set routing-instances CE01 protocols bgp group CUST-A type external
  87. set routing-instances CE01 protocols bgp group CUST-A export EXPORT-BGP
  88. set routing-instances CE01 protocols bgp group CUST-A peer-as 65101
  89. set routing-instances CE01 protocols bgp group CUST-A neighbor 192.168.1.1 as-override
  90. set routing-instances MGMT instance-type virtual-router
  91. set routing-instances MGMT interface ge-0/0/0.0
  92. set routing-instances MGMT routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
  93.  
  94.  
  95. root@PE11# show
  96. ## Last changed: 2017-09-19 07:36:02 UTC
  97. version 17.1R1.8;
  98. system {
  99. host-name PE11;
  100. domain-name testlab.com;
  101. root-authentication {
  102. encrypted-password "$6$xeotM6nn$DitjFeRjbapDRr0RPpSzJqBB6mB5eOhyG062pQPzFaPeVjKpOxWjknVbF66LYld3GUhyx.sKQJCFygIUmAwF51"; ## SECRET-DATA
  103. }
  104. login {
  105. user the-packet-thrower {
  106. uid 2000;
  107. class super-user;
  108. authentication {
  109. encrypted-password "$6$eNn4D2jr$2nNfLEYQHFWErl2SlDg3rHqXkIYsFi1tl0ov5VW3RLDvLy6p4AS342Nwzt2LYptBCqwqsuE1CnpdAM16w4l4a."; ## SECRET-DATA
  110. }
  111. }
  112. }
  113. services {
  114. ssh;
  115. }
  116. syslog {
  117. user * {
  118. any emergency;
  119. }
  120. file messages {
  121. any notice;
  122. authorization info;
  123. }
  124. file interactive-commands {
  125. interactive-commands any;
  126. }
  127. }
  128. }
  129. logical-systems {
  130. RR01 {
  131. interfaces {
  132. ge-0/0/2 {
  133. unit 3123 {
  134. vlan-id 3123;
  135. family inet {
  136. address 10.0.123.254/24;
  137. }
  138. family mpls;
  139. }
  140. }
  141. lo0 {
  142. unit 1 {
  143. family inet {
  144. address 192.168.255.154/32;
  145. }
  146. }
  147. }
  148. }
  149. protocols {
  150. mpls {
  151. interface all;
  152. }
  153. bgp {
  154. group PE-INTERNAL {
  155. type internal;
  156. local-address 192.168.255.154;
  157. family inet-vpn {
  158. unicast;
  159. }
  160. cluster 192.168.255.254;
  161. neighbor 192.168.255.11;
  162. neighbor 192.168.255.22;
  163. neighbor 192.168.255.33;
  164. neighbor 192.168.255.44;
  165. }
  166. }
  167. ospf {
  168. area 0.0.0.0 {
  169. interface all;
  170. }
  171. }
  172. ldp {
  173. interface all;
  174. }
  175. }
  176. routing-options {
  177. autonomous-system 65123;
  178. }
  179. }
  180. }
  181. interfaces {
  182. ge-0/0/0 {
  183. unit 0 {
  184. family inet {
  185. address 10.20.2.201/24;
  186. }
  187. }
  188. }
  189. ge-0/0/1 {
  190. vlan-tagging;
  191. unit 3011 {
  192. vlan-id 3011;
  193. family inet {
  194. address 10.1.11.254/24;
  195. }
  196. family mpls;
  197. }
  198. unit 3123 {
  199. vlan-id 3123;
  200. family inet {
  201. address 10.0.123.11/24;
  202. }
  203. family mpls;
  204. }
  205. }
  206. ge-0/0/2 {
  207. vlan-tagging;
  208. }
  209. ge-0/0/5 {
  210. unit 0 {
  211. family inet {
  212. address 192.168.1.254/24;
  213. }
  214. }
  215. }
  216. lo0 {
  217. unit 0 {
  218. family inet {
  219. address 192.168.255.11/32;
  220. }
  221. family inet6 {
  222. address 2001:1234::1/128;
  223. }
  224. family mpls;
  225. }
  226. }
  227. }
  228. routing-options {
  229. static {
  230. route 0.0.0.0/0 next-hop 10.20.2.1;
  231. }
  232. router-id 192.168.255.11;
  233. autonomous-system 65123;
  234. }
  235. protocols {
  236. mpls {
  237. interface all;
  238. }
  239. bgp {
  240. group RR {
  241. type internal;
  242. local-address 192.168.255.11;
  243. family inet-vpn {
  244. unicast;
  245. }
  246. neighbor 192.168.255.154;
  247. neighbor 192.168.255.254;
  248. }
  249. }
  250. ospf {
  251. area 0.0.0.0 {
  252. interface all;
  253. interface lo0.0 {
  254. passive;
  255. }
  256. }
  257. }
  258. ldp {
  259. deaggregate;
  260. interface all;
  261. }
  262. lldp {
  263. interface all;
  264. }
  265. }
  266. policy-options {
  267. policy-statement EXPORT-BGP {
  268. then accept;
  269. }
  270. policy-statement EXPORT-CE01 {
  271. term EXPORT {
  272. from protocol [ direct bgp rip ospf ];
  273. then {
  274. community add RT-EXPORT-CE01;
  275. accept;
  276. }
  277. }
  278. term REJECT {
  279. then reject;
  280. }
  281. }
  282. policy-statement EXPORT-OSPF {
  283. from protocol bgp;
  284. then accept;
  285. }
  286. policy-statement EXPORT-RIP {
  287. then {
  288. metric 5;
  289. accept;
  290. }
  291. }
  292. policy-statement IMPORT-CE01 {
  293. term IMPORT {
  294. from {
  295. protocol bgp;
  296. community [ RT-IMPORT-CE01 RT-IMPORT-CE02 ];
  297. }
  298. then accept;
  299. }
  300. term REJECT {
  301. then reject;
  302. }
  303. }
  304. community RT-EXPORT-CE01 members target:65123:101;
  305. community RT-IMPORT-CE01 members target:65123:101;
  306. community RT-IMPORT-CE02 members target:65123:102;
  307. community RT-IMPORT-CE03 members target:65123:103;
  308. community RT-IMPORT-CE04 members target:65123:104;
  309. }
  310. routing-instances {
  311. CE01 {
  312. instance-type vrf;
  313. interface ge-0/0/5.0;
  314. route-distinguisher 65123:101;
  315. vrf-import IMPORT-CE01;
  316. vrf-export EXPORT-CE01;
  317. vrf-table-label;
  318. routing-options {
  319. router-id 192.168.255.11;
  320. }
  321. protocols {
  322. bgp {
  323. group CUST-A {
  324. type external;
  325. export EXPORT-BGP;
  326. peer-as 65101;
  327. neighbor 192.168.1.1 {
  328. as-override;
  329. }
  330. }
  331. }
  332. }
  333. }
  334. MGMT {
  335. instance-type virtual-router;
  336. interface ge-0/0/0.0;
  337. routing-options {
  338. static {
  339. route 0.0.0.0/0 next-hop 10.20.2.1;
  340. }
  341. }
  342. }
  343. }
  344.  
  345. [edit]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement