Advertisement
Guest User

PE03

a guest
Sep 19th, 2017
980
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.23 KB | None | 0 0
  1. root@PE03# show | display set
  2. set version 17.1R1.8
  3. set system host-name PE03
  4. set system domain-name testlab.com
  5. set system root-authentication encrypted-password "$6$wK/mIWcG$B7mBqdGVzcIdpXGjKSDQNMtu5RvD0FZtRboAWBhjJ3k84MPaLq9APLK2rJg8qmHCghwKETUtKhw33SMlJC9p81"
  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$Y22SK5CC$MJA2zWQToW3J.tD88QrydN54dGk1PbFrfdDpj.2QVIo6D3pfbadO.OXC2h0YRf69RGxP3w5sP2oaUhl84Kz0p1"
  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 interfaces ge-0/0/0 unit 0 family inet address 10.20.2.203/24
  15. set interfaces ge-0/0/1 vlan-tagging
  16. set interfaces ge-0/0/1 unit 3033 vlan-id 3033
  17. set interfaces ge-0/0/1 unit 3033 family inet address 10.3.33.254/24
  18. set interfaces ge-0/0/1 unit 3033 family mpls
  19. set interfaces ge-0/0/1 unit 3123 vlan-id 3123
  20. set interfaces ge-0/0/1 unit 3123 family inet address 10.0.123.33/24
  21. set interfaces ge-0/0/1 unit 3123 family mpls
  22. set interfaces ge-0/0/2 vlan-tagging
  23. set interfaces ge-0/0/2 unit 3123 vlan-id 3123
  24. set interfaces ge-0/0/2 unit 3123 family inet address 10.1.123.33/24
  25. set interfaces ge-0/0/2 unit 3123 family mpls
  26. set interfaces ge-0/0/5 unit 0 family inet address 192.168.3.254/24
  27. set interfaces lo0 unit 0 family inet address 192.168.255.33/32
  28. set interfaces lo0 unit 0 family mpls
  29. set routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
  30. set routing-options router-id 192.168.255.33
  31. set routing-options autonomous-system 65123
  32. set protocols mpls interface all
  33. set protocols bgp group PE-Internal type internal
  34. set protocols bgp group PE-Internal local-address 192.168.255.33
  35. set protocols bgp group PE-Internal family inet-vpn unicast
  36. set protocols bgp group PE-Internal neighbor 192.168.255.11
  37. set protocols bgp group PE-Internal neighbor 192.168.255.22
  38. set protocols bgp group PE-Internal neighbor 192.168.255.44
  39. deactivate protocols bgp group PE-Internal
  40. set protocols bgp group RR type internal
  41. set protocols bgp group RR local-address 192.168.255.33
  42. set protocols bgp group RR family inet-vpn unicast
  43. set protocols bgp group RR neighbor 192.168.255.154
  44. set protocols bgp group RR neighbor 192.168.255.254
  45. set protocols ospf area 0.0.0.0 interface all
  46. set protocols ospf area 0.0.0.0 interface lo0.0 passive
  47. set protocols ldp deaggregate
  48. set protocols ldp interface all
  49. set protocols lldp interface all
  50. set policy-options policy-statement EXPORT-CE03 term EXPORT from protocol direct
  51. set policy-options policy-statement EXPORT-CE03 term EXPORT from protocol ospf
  52. set policy-options policy-statement EXPORT-CE03 term EXPORT from protocol rip
  53. set policy-options policy-statement EXPORT-CE03 term EXPORT from protocol bgp
  54. set policy-options policy-statement EXPORT-CE03 term EXPORT then community add RT-EXPORT-CE03
  55. set policy-options policy-statement EXPORT-CE03 term EXPORT then accept
  56. set policy-options policy-statement EXPORT-CE03 term REJECT then reject
  57. set policy-options policy-statement EXPORT-OSPF then accept
  58. set policy-options policy-statement EXPORT-OSPF-CE term EXPORT from protocol direct
  59. set policy-options policy-statement EXPORT-OSPF-CE term EXPORT from protocol ospf
  60. set policy-options policy-statement EXPORT-OSPF-CE term EXPORT then community add RT-OSPF-CE03
  61. set policy-options policy-statement EXPORT-OSPF-CE term EXPORT then accept
  62. set policy-options policy-statement IMPORT-CE03 term IMPORT from protocol bgp
  63. set policy-options policy-statement IMPORT-CE03 term IMPORT from community RT-IMPORT-CE03
  64. set policy-options policy-statement IMPORT-CE03 term IMPORT from community RT-IMPORT-CE04
  65. set policy-options policy-statement IMPORT-CE03 term IMPORT then accept
  66. set policy-options policy-statement IMPORT-CE03 term REJECT then reject
  67. set policy-options community RT-EXPORT-CE03 members target:65123:103
  68. set policy-options community RT-IMPORT-CE01 members target:65123:101
  69. set policy-options community RT-IMPORT-CE02 members target:65123:102
  70. set policy-options community RT-IMPORT-CE03 members target:65123:103
  71. set policy-options community RT-IMPORT-CE04 members target:65123:104
  72. set policy-options community RT-OSPF-CE03 members target:65123:103
  73. set policy-options community RT-OSPF-CE03 members domain-id:192.168.255.34:0
  74. set policy-options community RT-OSPF-CE04 members target:65123:104
  75. set policy-options community RT-OSPF-CE04 members domain-id:192.168.255.34:0
  76. set routing-instances CE03 instance-type vrf
  77. set routing-instances CE03 interface ge-0/0/5.0
  78. set routing-instances CE03 route-distinguisher 65123:103
  79. set routing-instances CE03 vrf-import IMPORT-CE03
  80. set routing-instances CE03 vrf-export EXPORT-CE03
  81. set routing-instances CE03 vrf-table-label
  82. set routing-instances CE03 protocols ospf domain-id 192.168.255.34
  83. set routing-instances CE03 protocols ospf export EXPORT-OSPF
  84. set routing-instances CE03 protocols ospf area 0.0.0.0 interface all
  85. set routing-instances MGMT instance-type virtual-router
  86. set routing-instances MGMT interface ge-0/0/0.0
  87. set routing-instances MGMT routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
  88.  
  89. root@PE03# show
  90. ## Last changed: 2017-09-19 18:41:15 UTC
  91. version 17.1R1.8;
  92. system {
  93. host-name PE03;
  94. domain-name testlab.com;
  95. root-authentication {
  96. encrypted-password "$6$wK/mIWcG$B7mBqdGVzcIdpXGjKSDQNMtu5RvD0FZtRboAWBhjJ3k84MPaLq9APLK2rJg8qmHCghwKETUtKhw33SMlJC9p81"; ## SECRET-DATA
  97. }
  98. login {
  99. user the-packet-thrower {
  100. uid 2000;
  101. class super-user;
  102. authentication {
  103. encrypted-password "$6$Y22SK5CC$MJA2zWQToW3J.tD88QrydN54dGk1PbFrfdDpj.2QVIo6D3pfbadO.OXC2h0YRf69RGxP3w5sP2oaUhl84Kz0p1"; ## SECRET-DATA
  104. }
  105. }
  106. }
  107. services {
  108. ssh;
  109. }
  110. syslog {
  111. user * {
  112. any emergency;
  113. }
  114. file messages {
  115. any notice;
  116. authorization info;
  117. }
  118. file interactive-commands {
  119. interactive-commands any;
  120. }
  121. }
  122. }
  123. interfaces {
  124. ge-0/0/0 {
  125. unit 0 {
  126. family inet {
  127. address 10.20.2.203/24;
  128. }
  129. }
  130. }
  131. ge-0/0/1 {
  132. vlan-tagging;
  133. unit 3033 {
  134. vlan-id 3033;
  135. family inet {
  136. address 10.3.33.254/24;
  137. }
  138. family mpls;
  139. }
  140. unit 3123 {
  141. vlan-id 3123;
  142. family inet {
  143. address 10.0.123.33/24;
  144. }
  145. family mpls;
  146. }
  147. }
  148. ge-0/0/2 {
  149. vlan-tagging;
  150. unit 3123 {
  151. vlan-id 3123;
  152. family inet {
  153. address 10.1.123.33/24;
  154. }
  155. family mpls;
  156. }
  157. }
  158. ge-0/0/5 {
  159. unit 0 {
  160. family inet {
  161. address 192.168.3.254/24;
  162. }
  163. }
  164. }
  165. lo0 {
  166. unit 0 {
  167. family inet {
  168. address 192.168.255.33/32;
  169. }
  170. family mpls;
  171. }
  172. }
  173. }
  174. routing-options {
  175. static {
  176. route 0.0.0.0/0 next-hop 10.20.2.1;
  177. }
  178. router-id 192.168.255.33;
  179. autonomous-system 65123;
  180. }
  181. protocols {
  182. mpls {
  183. interface all;
  184. }
  185. bgp {
  186. inactive: group PE-Internal {
  187. type internal;
  188. local-address 192.168.255.33;
  189. family inet-vpn {
  190. unicast;
  191. }
  192. neighbor 192.168.255.11;
  193. neighbor 192.168.255.22;
  194. neighbor 192.168.255.44;
  195. }
  196. group RR {
  197. type internal;
  198. local-address 192.168.255.33;
  199. family inet-vpn {
  200. unicast;
  201. }
  202. neighbor 192.168.255.154;
  203. neighbor 192.168.255.254;
  204. }
  205. }
  206. ospf {
  207. area 0.0.0.0 {
  208. interface all;
  209. interface lo0.0 {
  210. passive;
  211. }
  212. }
  213. }
  214. ldp {
  215. deaggregate;
  216. interface all;
  217. }
  218. lldp {
  219. interface all;
  220. }
  221. }
  222. policy-options {
  223. policy-statement EXPORT-CE03 {
  224. term EXPORT {
  225. from protocol [ direct ospf rip bgp ];
  226. then {
  227. community add RT-EXPORT-CE03;
  228. accept;
  229. }
  230. }
  231. term REJECT {
  232. then reject;
  233. }
  234. }
  235. policy-statement EXPORT-OSPF {
  236. then accept;
  237. }
  238. policy-statement EXPORT-OSPF-CE {
  239. term EXPORT {
  240. from protocol [ direct ospf ];
  241. then {
  242. community add RT-OSPF-CE03;
  243. accept;
  244. }
  245. }
  246. }
  247. policy-statement IMPORT-CE03 {
  248. term IMPORT {
  249. from {
  250. protocol bgp;
  251. community [ RT-IMPORT-CE03 RT-IMPORT-CE04 ];
  252. }
  253. then accept;
  254. }
  255. term REJECT {
  256. then reject;
  257. }
  258. }
  259. community RT-EXPORT-CE03 members target:65123:103;
  260. community RT-IMPORT-CE01 members target:65123:101;
  261. community RT-IMPORT-CE02 members target:65123:102;
  262. community RT-IMPORT-CE03 members target:65123:103;
  263. community RT-IMPORT-CE04 members target:65123:104;
  264. community RT-OSPF-CE03 members [ target:65123:103 domain-id:192.168.255.34:0 ];
  265. community RT-OSPF-CE04 members [ target:65123:104 domain-id:192.168.255.34:0 ];
  266. }
  267. routing-instances {
  268. CE03 {
  269. instance-type vrf;
  270. interface ge-0/0/5.0;
  271. route-distinguisher 65123:103;
  272. vrf-import IMPORT-CE03;
  273. vrf-export EXPORT-CE03;
  274. vrf-table-label;
  275. protocols {
  276. ospf {
  277. domain-id 192.168.255.34;
  278. export EXPORT-OSPF;
  279. area 0.0.0.0 {
  280. interface all;
  281. }
  282. }
  283. }
  284. }
  285. MGMT {
  286. instance-type virtual-router;
  287. interface ge-0/0/0.0;
  288. routing-options {
  289. static {
  290. route 0.0.0.0/0 next-hop 10.20.2.1;
  291. }
  292. }
  293. }
  294. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement