Advertisement
networkstatic

Juniper VPLS MPLS Junos Configuration

Sep 29th, 2012
844
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. Blog Post with explanation http://networkstatic.net/mpls-vpls-configuration-with-juniper-junos/
  2.  
  3. ## Last changed:
  4. version 10.0R3.10;
  5. system {
  6. host-name J1;
  7. root-authentication {
  8. encrypted-password ## SECRET-DATA
  9. }
  10. services {
  11. ftp;
  12. web-management {
  13. http {
  14. interface [ ge-0/0/0.0 ge-0/0/1.0 ge-0/0/2.0 ge-0/0/3.0 ];
  15. }
  16. }
  17. }
  18. syslog {
  19. file logs {
  20. any any;
  21. }
  22. }
  23. }
  24. ge-1/0/1 {
  25. unit 0 {
  26. family inet {
  27. address 10.1.1.1/24;
  28. }
  29. family mpls;
  30. }
  31. }
  32. ge-1/0/2 {
  33. encapsulation ethernet-vpls;
  34. unit 0;
  35. }
  36. lo0 {
  37. unit 0 {
  38. family inet {
  39. address 1.1.1.1/32;
  40. }
  41. }
  42. unit 10 {
  43. family inet {
  44. address 11.11.11.11/32;
  45. }
  46. }
  47. }
  48. }
  49. routing-options {
  50. autonomous-system 65001;
  51. }
  52. protocols {
  53. mpls {
  54. interface lo0.0;
  55. interface ge-1/0/0.10;
  56. }
  57. bgp {
  58. group ibgp {
  59. type internal;
  60. local-address 1.1.1.1;
  61. family inet {
  62. unicast;
  63. }
  64. family inet-vpn {
  65. unicast;
  66. }
  67. family l2vpn {
  68. signaling;
  69. }
  70. local-as 65001;
  71. neighbor 2.2.2.2;
  72. }
  73. }
  74. ospf {
  75. area 0.0.0.0 {
  76. interface lo0.0;
  77. interface ge-1/0/1.0;
  78. }
  79. }
  80. ldp {
  81. interface ge-1/0/1.0;
  82. }
  83. }
  84. policy-options {
  85. policy-statement direct-int {
  86. from protocol direct;
  87. then accept;
  88. }
  89. policy-statement r2-peer {
  90. term loop1 {
  91. from {
  92. route-filter 192.168.250.1/32 exact;
  93. route-filter 192.168.252.1/32 exact;
  94. }
  95. then accept;
  96. }
  97. term exp-deny {
  98. then reject;
  99. }
  100. }
  101. }
  102. security {
  103. forwarding-options {
  104. family {
  105. mpls {
  106. mode packet-based;
  107. }
  108. }
  109. }
  110. flow {
  111. tcp-session {
  112. no-syn-check;
  113. no-syn-check-in-tunnel;
  114. }
  115. }
  116. }
  117. routing-instances {
  118. blue {
  119. instance-type vpls;
  120. interface ge-1/0/2.0;
  121. route-distinguisher 65001:12;
  122. vrf-target target:65001:15;
  123. protocols {
  124. vpls {
  125. interface ge-1/0/2.0;
  126. no-tunnel-services;
  127. site blue1 {
  128. site-identifier 1;
  129. }
  130. vpls-id 101;
  131. neighbor 2.2.2.2;
  132. }
  133. }
  134. }
  135. red {
  136. instance-type vrf;
  137. interface lo0.10;
  138. route-distinguisher 65001:2;
  139. vrf-target target:65001:1;
  140. }
  141. }
  142.  
  143.  
  144. ## Last changed:
  145. version 10.0R3.10;
  146. system {
  147. host-name J2;
  148. root-authentication {
  149. encrypted-password ## SECRET-DATA
  150. }
  151. services {
  152. ftp;
  153. }
  154. }
  155. ge-0/0/1 {
  156. unit 0 {
  157. family inet {
  158. address 10.1.1.2/24;
  159. }
  160. family mpls;
  161. }
  162. }
  163. ge-0/0/2 {
  164. encapsulation ethernet-vpls;
  165. unit 0;
  166. }
  167. lo0 {
  168. unit 0 {
  169. family inet {
  170. address 2.2.2.2/32;
  171. }
  172. }
  173. unit 10 {
  174. family inet {
  175. address 22.22.22.22/32;
  176. }
  177. }
  178. }
  179. }
  180. routing-options {
  181. autonomous-system 65001;
  182. }
  183. protocols {
  184. mpls {
  185. interface ge-0/0/1.0;
  186. interface lo0.0;
  187. }
  188. bgp {
  189. group ibgp {
  190. type internal;
  191. local-address 2.2.2.2;
  192. family inet {
  193. unicast;
  194. }
  195. family inet-vpn {
  196. unicast;
  197. }
  198. family l2vpn {
  199. signaling;
  200. }
  201. local-as 65001;
  202. neighbor 1.1.1.1;
  203. }
  204. }
  205. ospf {
  206. area 0.0.0.0 {
  207. interface lo0.0;
  208. interface ge-0/0/1.0;
  209. }
  210. }
  211. ldp {
  212. interface ge-0/0/1.0;
  213. }
  214. }
  215. security {
  216. forwarding-options {
  217. family {
  218. mpls {
  219. mode packet-based;
  220. }
  221. }
  222. }
  223. flow {
  224. tcp-session {
  225. no-syn-check;
  226. no-syn-check-in-tunnel;
  227. }
  228. }
  229. }
  230. routing-instances {
  231. blue {
  232. instance-type vpls;
  233. interface ge-0/0/2.0;
  234. route-distinguisher 65001:11;
  235. vrf-target target:65001:15;
  236. protocols {
  237. vpls {
  238. interface ge-0/0/2.0;
  239. no-tunnel-services;
  240. site blue2 {
  241. site-identifier 2;
  242. }
  243. vpls-id 101;
  244. neighbor 1.1.1.1;
  245. }
  246. }
  247. }
  248. red {
  249. instance-type vrf;
  250. interface lo0.10;
  251. route-distinguisher 65001:3;
  252. vrf-target target:65001:1;
  253. }
  254. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement