Advertisement
ag9973

MPLS dev

Jun 16th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.35 KB | None | 0 0
  1. *********P1 Config*******
  2. /interface bridge
  3. add name=lobridge
  4. /interface ethernet
  5. set [ find default-name=ether1 ] disable-running-check=no
  6. set [ find default-name=ether2 ] disable-running-check=no
  7. set [ find default-name=ether3 ] disable-running-check=no
  8. set [ find default-name=ether4 ] disable-running-check=no
  9. set [ find default-name=ether5 ] disable-running-check=no
  10. set [ find default-name=ether6 ] disable-running-check=no
  11. /interface wireless security-profiles
  12. set [ find default=yes ] supplicant-identity=MikroTik
  13. /routing ospf instance
  14. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.1
  15. /ip address
  16. add address=10.255.255.1 interface=lobridge network=10.255.255.1
  17. add address=10.0.255.1/30 interface=ether1 network=10.0.255.0
  18. add address=10.0.255.5/30 interface=ether2 network=10.0.255.4
  19. add address=10.1.0.254/24 interface=ether3 network=10.1.0.0
  20. /mpls ldp
  21. set enabled=yes lsr-id=10.255.255.1 transport-address=10.255.255.1
  22. /mpls ldp interface
  23. add interface=ether1
  24. add interface=ether2
  25. add interface=ether3
  26. /routing bgp peer
  27. add address-families=l2vpn name=peer1 remote-address=10.255.255.2 remote-as=65530 route-reflect=yes update-source=lobridge
  28. add address-families=l2vpn name=peer2 remote-address=10.255.255.3 remote-as=65530 route-reflect=yes update-source=lobridge
  29. add address-families=l2vpn name=peer3 remote-address=10.255.255.4 remote-as=65530 route-reflect=yes update-source=lobridge
  30. add address-families=l2vpn name=peer4 remote-address=10.255.255.5 remote-as=65530 route-reflect=yes update-source=lobridge
  31. add address-families=l2vpn name=peer5 remote-address=10.255.255.6 remote-as=65530 route-reflect=yes update-source=lobridge
  32. /routing ospf network
  33. add area=backbone network=10.0.255.0/30
  34. add area=backbone network=10.0.255.4/30
  35. add area=backbone network=10.1.0.0/24
  36. /system identity
  37. set name=P1
  38.  
  39.  
  40. *********P2 Config*******
  41. /interface bridge
  42. add name=lobridge
  43. /interface ethernet
  44. set [ find default-name=ether1 ] disable-running-check=no
  45. set [ find default-name=ether2 ] disable-running-check=no
  46. set [ find default-name=ether3 ] disable-running-check=no
  47. set [ find default-name=ether4 ] disable-running-check=no
  48. set [ find default-name=ether5 ] disable-running-check=no
  49. set [ find default-name=ether6 ] disable-running-check=no
  50. /interface wireless security-profiles
  51. set [ find default=yes ] supplicant-identity=MikroTik
  52. /routing ospf instance
  53. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.2
  54. /ip address
  55. add address=10.255.255.2 interface=lobridge network=10.255.255.2
  56. add address=10.0.255.6/30 interface=ether1 network=10.0.255.4
  57. add address=10.0.255.9/30 interface=ether2 network=10.0.255.8
  58. add address=10.2.0.254/24 interface=ether3 network=10.2.0.0
  59. /mpls ldp
  60. set enabled=yes lsr-id=10.255.255.2 transport-address=10.255.255.2
  61. /mpls ldp interface
  62. add interface=ether1
  63. add interface=ether2
  64. add interface=ether3
  65. /routing bgp peer
  66. add address-families=l2vpn name=peer1 remote-address=10.255.255.1 remote-as=65530 route-reflect=yes update-source=lobridge
  67. /routing ospf network
  68. add area=backbone network=10.0.255.8/30
  69. add area=backbone network=10.0.255.4/30
  70. add area=backbone network=10.2.0.0/24
  71. /system identity
  72. set name=P2
  73.  
  74.  
  75. *********P3 Config*******
  76. /interface bridge
  77. add name=lobridge
  78. /interface ethernet
  79. set [ find default-name=ether1 ] disable-running-check=no
  80. set [ find default-name=ether2 ] disable-running-check=no
  81. set [ find default-name=ether3 ] disable-running-check=no
  82. set [ find default-name=ether4 ] disable-running-check=no
  83. set [ find default-name=ether5 ] disable-running-check=no
  84. set [ find default-name=ether6 ] disable-running-check=no
  85. /interface wireless security-profiles
  86. set [ find default=yes ] supplicant-identity=MikroTik
  87. /routing ospf instance
  88. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.3
  89. /ip address
  90. add address=10.255.255.3 interface=lobridge network=10.255.255.3
  91. add address=10.0.255.10/30 interface=ether1 network=10.0.255.8
  92. add address=10.0.255.2/30 interface=ether2 network=10.0.255.0
  93. add address=10.3.0.254/24 interface=ether3 network=10.3.0.0
  94. /mpls ldp
  95. set enabled=yes lsr-id=10.255.255.3 transport-address=10.255.255.3
  96. /mpls ldp interface
  97. add interface=ether1
  98. add interface=ether2
  99. add interface=ether3
  100. /routing bgp peer
  101. add address-families=l2vpn name=peer1 remote-address=10.255.255.1 remote-as=65530 route-reflect=yes update-source=lobridge
  102. /routing ospf network
  103. add area=backbone network=10.0.255.0/30
  104. add area=backbone network=10.0.255.8/30
  105. add area=backbone network=10.3.0.0/24
  106. /system identity
  107. set name=P3
  108.  
  109.  
  110. *********PE1 Config*******
  111. /interface bridge
  112. add name=B
  113. add name=lobridge
  114. /interface ethernet
  115. set [ find default-name=ether1 ] disable-running-check=no
  116. set [ find default-name=ether2 ] disable-running-check=no
  117. set [ find default-name=ether3 ] disable-running-check=no
  118. set [ find default-name=ether4 ] disable-running-check=no
  119. set [ find default-name=ether5 ] disable-running-check=no
  120. set [ find default-name=ether6 ] disable-running-check=no
  121. /interface wireless security-profiles
  122. set [ find default=yes ] supplicant-identity=MikroTik
  123. /routing ospf instance
  124. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.4
  125. /interface bridge port
  126. add bridge=B interface=ether6
  127. /interface vpls bgp-vpls
  128. add bridge=B bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bgp-vpls1 route-distinguisher=1:1 site-id=3
  129. /ip address
  130. add address=10.255.255.4 interface=lobridge network=10.255.255.4
  131. add address=10.1.0.1/24 interface=ether1 network=10.1.0.0
  132. /mpls ldp
  133. set enabled=yes lsr-id=10.255.255.4 transport-address=10.255.255.4
  134. /mpls ldp interface
  135. add interface=ether1
  136. /routing bgp peer
  137. add address-families=l2vpn name=peer1 remote-address=10.255.255.1 remote-as=65530 route-reflect=yes update-source=lobridge
  138. /routing ospf network
  139. add area=backbone network=10.1.0.0/24
  140. /system identity
  141. set name=PE1
  142.  
  143.  
  144. *********PE2 Config*******
  145. /interface bridge
  146. add name=B
  147. add name=lobridge
  148. /interface ethernet
  149. set [ find default-name=ether1 ] disable-running-check=no
  150. set [ find default-name=ether2 ] disable-running-check=no
  151. set [ find default-name=ether3 ] disable-running-check=no
  152. set [ find default-name=ether4 ] disable-running-check=no
  153. set [ find default-name=ether5 ] disable-running-check=no
  154. set [ find default-name=ether6 ] disable-running-check=no
  155. /interface wireless security-profiles
  156. set [ find default=yes ] supplicant-identity=MikroTik
  157. /routing ospf instance
  158. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.5
  159. /interface bridge port
  160. add bridge=B interface=ether6
  161. /interface vpls bgp-vpls
  162. add bridge=B bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bgp-vpls1 route-distinguisher=1:1 site-id=5
  163. /ip address
  164. add address=10.255.255.5 interface=lobridge network=10.255.255.5
  165. add address=10.2.0.1/24 interface=ether1 network=10.2.0.0
  166. /mpls ldp
  167. set enabled=yes lsr-id=10.255.255.5 transport-address=10.255.255.5
  168. /mpls ldp interface
  169. add interface=ether1
  170. /routing bgp peer
  171. add address-families=l2vpn name=peer1 remote-address=10.255.255.1 remote-as=65530 route-reflect=yes update-source=lobridge
  172. /routing ospf network
  173. add area=backbone network=10.2.0.0/24
  174. /system identity
  175. set name=PE2
  176.  
  177.  
  178. *********PE3 Config*******
  179. /interface bridge
  180. add name=B
  181. add name=lobridge
  182. /interface ethernet
  183. set [ find default-name=ether1 ] disable-running-check=no
  184. set [ find default-name=ether2 ] disable-running-check=no
  185. set [ find default-name=ether3 ] disable-running-check=no
  186. set [ find default-name=ether4 ] disable-running-check=no
  187. set [ find default-name=ether5 ] disable-running-check=no
  188. set [ find default-name=ether6 ] disable-running-check=no
  189. /interface wireless security-profiles
  190. set [ find default=yes ] supplicant-identity=MikroTik
  191. /routing ospf instance
  192. set [ find default=yes ] redistribute-connected=as-type-1 router-id=10.255.255.6
  193. /interface bridge port
  194. add bridge=B interface=ether6
  195. /interface vpls bgp-vpls
  196. add bridge=B bridge-horizon=1 export-route-targets=1:1 import-route-targets=1:1 name=bgp-vpls1 route-distinguisher=1:1 site-id=6
  197. /ip address
  198. add address=10.255.255.6 interface=lobridge network=10.255.255.6
  199. add address=10.3.0.1/24 interface=ether1 network=10.3.0.0
  200. /mpls ldp
  201. set enabled=yes lsr-id=10.255.255.6 transport-address=10.255.255.6
  202. /mpls ldp interface
  203. add interface=ether1
  204. /routing bgp peer
  205. add address-families=l2vpn name=peer1 remote-address=10.255.255.1 remote-as=65530 route-reflect=yes update-source=lobridge
  206. /routing ospf network
  207. add area=backbone network=10.3.0.0/24
  208. /system identity
  209. set name=PE3
  210.  
  211. *********CE1 Config*******
  212. /interface ethernet
  213. set [ find default-name=ether1 ] disable-running-check=no
  214. set [ find default-name=ether2 ] disable-running-check=no
  215. set [ find default-name=ether3 ] disable-running-check=no
  216. set [ find default-name=ether4 ] disable-running-check=no
  217. set [ find default-name=ether5 ] disable-running-check=no
  218. set [ find default-name=ether6 ] disable-running-check=no
  219. /interface wireless security-profiles
  220. set [ find default=yes ] supplicant-identity=MikroTik
  221. /ip address
  222. add address=192.168.1.1/24 interface=ether1 network=192.168.1.0
  223. /system identity
  224. set name=CE1
  225.  
  226. *********CE2 Config*******
  227. /interface ethernet
  228. set [ find default-name=ether1 ] disable-running-check=no
  229. set [ find default-name=ether2 ] disable-running-check=no
  230. set [ find default-name=ether3 ] disable-running-check=no
  231. set [ find default-name=ether4 ] disable-running-check=no
  232. set [ find default-name=ether5 ] disable-running-check=no
  233. set [ find default-name=ether6 ] disable-running-check=no
  234. /interface wireless security-profiles
  235. set [ find default=yes ] supplicant-identity=MikroTik
  236. /ip address
  237. add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
  238. /system identity
  239. set name=CE2
  240.  
  241.  
  242. *********CE3 Config*******
  243. /interface ethernet
  244. set [ find default-name=ether1 ] disable-running-check=no
  245. set [ find default-name=ether2 ] disable-running-check=no
  246. set [ find default-name=ether3 ] disable-running-check=no
  247. set [ find default-name=ether4 ] disable-running-check=no
  248. set [ find default-name=ether5 ] disable-running-check=no
  249. set [ find default-name=ether6 ] disable-running-check=no
  250. /interface wireless security-profiles
  251. set [ find default=yes ] supplicant-identity=MikroTik
  252. /ip address
  253. add address=192.168.1.3/24 interface=ether1 network=192.168.1.0
  254. /system identity
  255. set name=CE3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement