Advertisement
Guest User

PE02

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