https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&feed=atom&action=history
MPLS Lab Setup - Revision history
2024-03-29T11:21:27Z
Revision history for this page on the wiki
MediaWiki 1.38.2
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=34131&oldid=prev
Reinisjs: /* Introduction */
2020-07-29T05:27:28Z
<p><span dir="auto"><span class="autocomment">Introduction</span></span></p>
<p><b>New page</b></p><div>== Introduction ==<br />
This page is an attempt to put together a lab setup for the testing of MPLS / VPLS as well as Traffic Engineering. This is not an attempt to explain how MPLS works, rather it is to promote discussion around the operation of MPLS. Before working through this lab you should first familiarize yourself with the concepts in this WIKI article http://wiki.mikrotik.com/wiki/MPLSVPLS as most of the setup has been based around those concepts. As my understanding of MPLS is also rather limited please feel free to edit and correct where required. If you want the original network diagram (in Visio format) please email me on david [at] mikrotiksa dot com. I can also export to some other formats.<br />
There is also a discussion on the forum about this wiki. Please check for updates.<br />
<br />
== Lab Setup ==<br />
=== Network Diagram ===<br />
First lets look at a network diagram of the basic setup<br />
[[Image:MPLS_Lab_Setup.png]]<br />
<br />
The setup was created using 6 RB532's, but anything with 3 network interfaces and 32MB memory should be able to do the job. P1 - P3 are the Provider (MPLS Backbone) routers. PE1 - PE3 are the Provider Edge routers which do the Label Popping<br />
=== Router Setup ===<br />
==== Loopback Interface ====<br />
Each router is setup with a loopback adapter lobridge which holds the loopback address. From http://wiki.mikrotik.com/wiki/MPLSVPLS we can see this serves 2 purposes:<br />
* as there is only one LDP session between any 2 routers, no matter how many links connect them, loopback IP address ensures that the LDP session is not affected by interface state or address changes<br />
* use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS<br />
Here is a typical router setup (this is from P1)<br />
<br />
'''P1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.1/32 interface=lobridge<br />
</pre><br />
The other routers are setup with 10.255.255.2-6 as per the diagram above<br />
<br />
'''P2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.2/32 interface=lobridge<br />
</pre><br />
'''P3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.3/32 interface=lobridge<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.4/32 interface=lobridge<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.5/32 interface=lobridge<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.6/32 interface=lobridge<br />
</pre><br />
==== IP Addressing ====<br />
We then setup the links between the core routers and the core-edge routers as per the diagram:<br />
<br />
'''P1'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.1/30 interface=ether1 <br />
add address=10.0.255.5/30 interface=ether2<br />
add address=10.1.0.254/24 interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.6/30 interface=ether1 <br />
add address=10.0.255.9/30 interface=ether2<br />
add address=10.2.0.254/24 interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.10/30 interface=ether1<br />
add address=10.0.255.2/30 interface=ether2<br />
add address=10.3.0.254/24 interface=ether3<br />
</pre><br />
<br />
'''PE1'''<br />
<pre><br />
/ip address <br />
add address=10.1.0.1/24 interface=ether1<br />
</pre><br />
<br />
'''PE2'''<br />
<pre><br />
/ip address <br />
add address=10.2.0.1/24 interface=ether1<br />
</pre><br />
<br />
'''PE3'''<br />
<pre><br />
/ip address <br />
add address=10.3.0.1/24 interface=ether1<br />
</pre><br />
<br />
==== Dynamic Routing Setup ====<br />
Next we can setup OSPF on each router to dynamically distribute routes<br />
<br />
'''P1'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.1 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''P2'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.2 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''P3'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.3 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.3.0.0/24 <br />
</pre><br />
'''PE1'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.4 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''PE2'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.5 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''PE3'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.6 numbers=default<br />
/routing ospf network <br />
add area=backbone network=10.3.0.0/24 <br />
</pre><br />
You should now have a working OSPF routed system<br />
<br />
=== MPLS Setup ===<br />
The next step is to add and configure the MPLS system. In order to distribute labels for routes, LDP needs to be enabled. Then all interfaces that participate in MPLS need to be added.<br />
<br />
'''P1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.1 transport-address=10.255.255.1<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.2 transport-address=10.255.255.2<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.3 transport-address=10.255.255.3<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.4 transport-address=10.255.255.4<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.5 transport-address=10.255.255.5<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.6 transport-address=10.255.255.6<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
This should now give you an operational MPLS setup.<br />
<br />
[[Image:LDP1.png]]<br />
[[Image:mpls2.png]]<br />
[[Image:mpls1.png]]<br />
<br />
[[Category:Routing]]<br />
[[Category:Internetworking]]</div>
Reinisjs
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=27950&oldid=prev
SergejsB: /* Dynamic Routing Setup */
2015-12-23T13:03:37Z
<p><span dir="auto"><span class="autocomment">Dynamic Routing Setup</span></span></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 13:03, 23 December 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l98">Line 98:</td>
<td colspan="2" class="diff-lineno">Line 98:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''P1'''</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''P1'''</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf <del style="font-weight: bold; text-decoration: none;"> </del>instance</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf instance</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.1 </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.1 </div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l107">Line 107:</td>
<td colspan="2" class="diff-lineno">Line 107:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''P2'''</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''P2'''</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf <del style="font-weight: bold; text-decoration: none;"> </del>instance</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf instance</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.2</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.2</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l139">Line 139:</td>
<td colspan="2" class="diff-lineno">Line 139:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''PE3'''</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''PE3'''</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf </div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf <ins style="font-weight: bold; text-decoration: none;">instance</ins></div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.6</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.6</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>/routing ospf network </div></td></tr>
</table>
SergejsB
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=27949&oldid=prev
SergejsB at 13:02, 23 December 2015
2015-12-23T13:02:45Z
<p></p>
<p><b>New page</b></p><div>== Introduction ==<br />
This page is an attempt to put together a lab setup for the testing of MPLS / VPLS as well as Traffic Engineering. This is not an attempt to explain how MPLS works, rather it is to promote discussion around the operation of MPLS. Before working through this lab you should first familiarize yourself with the concepts in this WIKI article http://wiki.mikrotik.com/wiki/MPLSVPLS as most of the setup has been based around those concepts. As my understanding of MPLS is also rather limited please feel free to edit and correct where required. If you want the original network diagram (in Visio format) please email me on david [at] mikrotiksa dot com. I can also export to some other formats.<br />
There is also a discussion on the forum about this wiki. Please check for updates.<br />
<br />
--[[User:Savagedavid|savagedavid]] 11:59, 21 April 2008 (EEST)<br />
<br />
== Lab Setup ==<br />
=== Network Diagram ===<br />
First lets look at a network diagram of the basic setup<br />
[[Image:MPLS_Lab_Setup.png]]<br />
<br />
The setup was created using 6 RB532's, but anything with 3 network interfaces and 32MB memory should be able to do the job. P1 - P3 are the Provider (MPLS Backbone) routers. PE1 - PE3 are the Provider Edge routers which do the Label Popping<br />
=== Router Setup ===<br />
==== Loopback Interface ====<br />
Each router is setup with a loopback adapter lobridge which holds the loopback address. From http://wiki.mikrotik.com/wiki/MPLSVPLS we can see this serves 2 purposes:<br />
* as there is only one LDP session between any 2 routers, no matter how many links connect them, loopback IP address ensures that the LDP session is not affected by interface state or address changes<br />
* use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS<br />
Here is a typical router setup (this is from P1)<br />
<br />
'''P1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.1/32 interface=lobridge<br />
</pre><br />
The other routers are setup with 10.255.255.2-6 as per the diagram above<br />
<br />
'''P2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.2/32 interface=lobridge<br />
</pre><br />
'''P3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.3/32 interface=lobridge<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.4/32 interface=lobridge<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.5/32 interface=lobridge<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.6/32 interface=lobridge<br />
</pre><br />
==== IP Addressing ====<br />
We then setup the links between the core routers and the core-edge routers as per the diagram:<br />
<br />
'''P1'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.1/30 interface=ether1 <br />
add address=10.0.255.5/30 interface=ether2<br />
add address=10.1.0.254/24 interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.6/30 interface=ether1 <br />
add address=10.0.255.9/30 interface=ether2<br />
add address=10.2.0.254/24 interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.10/30 interface=ether1<br />
add address=10.0.255.2/30 interface=ether2<br />
add address=10.3.0.254/24 interface=ether3<br />
</pre><br />
<br />
'''PE1'''<br />
<pre><br />
/ip address <br />
add address=10.1.0.1/24 interface=ether1<br />
</pre><br />
<br />
'''PE2'''<br />
<pre><br />
/ip address <br />
add address=10.2.0.1/24 interface=ether1<br />
</pre><br />
<br />
'''PE3'''<br />
<pre><br />
/ip address <br />
add address=10.3.0.1/24 interface=ether1<br />
</pre><br />
<br />
==== Dynamic Routing Setup ====<br />
Next we can setup OSPF on each router to dynamically distribute routes<br />
<br />
'''P1'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.1 <br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''P2'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.2<br />
/routing ospf network <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''P3'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.3 <br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.3.0.0/24 <br />
</pre><br />
'''PE1'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.4<br />
/routing ospf network <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''PE2'''<br />
<pre><br />
/routing ospf instance<br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.5<br />
/routing ospf network <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''PE3'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.6<br />
/routing ospf network <br />
add area=backbone network=10.3.0.0/24 <br />
</pre><br />
You should now have a working OSPF routed system<br />
<br />
=== MPLS Setup ===<br />
The next step is to add and configure the MPLS system. In order to distribute labels for routes, LDP needs to be enabled. Then all interfaces that participate in MPLS need to be added.<br />
<br />
'''P1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.1 transport-address=10.255.255.1<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.2 transport-address=10.255.255.2<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.3 transport-address=10.255.255.3<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.4 transport-address=10.255.255.4<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.5 transport-address=10.255.255.5<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.6 transport-address=10.255.255.6<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
This should now give you an operational MPLS setup.<br />
<br />
[[Image:LDP1.png]]<br />
[[Image:mpls2.png]]<br />
[[Image:mpls1.png]]<br />
<br />
[[Category:Routing]]<br />
[[Category:Internetworking]]</div>
SergejsB
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=9688&oldid=prev
Normis at 11:24, 28 November 2008
2008-11-28T11:24:25Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:24, 28 November 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l202">Line 202:</td>
<td colspan="2" class="diff-lineno">Line 202:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Routing]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Routing]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Internetworking]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Internetworking]]</div></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[Category:Manual]]</del></div></td><td colspan="2" class="diff-side-added"></td></tr>
</table>
Normis
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=9687&oldid=prev
Normis at 11:24, 28 November 2008
2008-11-28T11:24:10Z
<p></p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:24, 28 November 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l199">Line 199:</td>
<td colspan="2" class="diff-lineno">Line 199:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:mpls2.png]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:mpls2.png]]</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:mpls1.png]]</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Image:mpls1.png]]</div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Routing]]</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Internetworking]]</ins></div></td></tr>
<tr><td colspan="2" class="diff-side-deleted"></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Manual]]</ins></div></td></tr>
</table>
Normis
https://wiki.mikrotik.com/index.php?title=MPLS_Lab_Setup&diff=7478&oldid=prev
Route: Reverted edits by Biswa81 (Talk); changed back to last version by Savagedavid
2008-05-26T09:01:17Z
<p>Reverted edits by <a href="/wiki/Special:Contributions/Biswa81" title="Special:Contributions/Biswa81">Biswa81</a> (<a href="/index.php?title=User_talk:Biswa81&action=edit&redlink=1" class="new" title="User talk:Biswa81 (page does not exist)">Talk</a>); changed back to last version by <a href="/index.php?title=User:Savagedavid&action=edit&redlink=1" class="new" title="User:Savagedavid (page does not exist)">Savagedavid</a></p>
<p><b>New page</b></p><div>== Introduction ==<br />
This page is an attempt to put together a lab setup for the testing of MPLS / VPLS as well as Traffic Engineering. This is not an attempt to explain how MPLS works, rather it is to promote discussion around the operation of MPLS. Before working through this lab you should first familiarize yourself with the concepts in this WIKI article http://wiki.mikrotik.com/wiki/MPLSVPLS as most of the setup has been based around those concepts. As my understanding of MPLS is also rather limited please feel free to edit and correct where required. If you want the original network diagram (in Visio format) please email me on david [at] mikrotiksa dot com. I can also export to some other formats.<br />
There is also a discussion on the forum about this wiki. Please check for updates.<br />
<br />
--[[User:Savagedavid|savagedavid]] 11:59, 21 April 2008 (EEST)<br />
<br />
== Lab Setup ==<br />
=== Network Diagram ===<br />
First lets look at a network diagram of the basic setup<br />
[[Image:MPLS_Lab_Setup.png]]<br />
<br />
The setup was created using 6 RB532's, but anything with 3 network interfaces and 32MB memory should be able to do the job. P1 - P3 are the Provider (MPLS Backbone) routers. PE1 - PE3 are the Provider Edge routers which do the Label Popping<br />
=== Router Setup ===<br />
==== Loopback Interface ====<br />
Each router is setup with a loopback adapter lobridge which holds the loopback address. From http://wiki.mikrotik.com/wiki/MPLSVPLS we can see this serves 2 purposes:<br />
* as there is only one LDP session between any 2 routers, no matter how many links connect them, loopback IP address ensures that the LDP session is not affected by interface state or address changes<br />
* use of loopback address as LDP transport address ensures proper penultimate hop popping behavior when multiple labels are attached to packet as in case of VPLS<br />
Here is a typical router setup (this is from P1)<br />
<br />
'''P1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.1/32 interface=lobridge<br />
</pre><br />
The other routers are setup with 10.255.255.2-6 as per the diagram above<br />
<br />
'''P2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.2/32 interface=lobridge<br />
</pre><br />
'''P3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.3/32 interface=lobridge<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.4/32 interface=lobridge<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.5/32 interface=lobridge<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/interface bridge add name=lobridge<br />
/ip address add address=10.255.255.6/32 interface=lobridge<br />
</pre><br />
==== IP Addressing ====<br />
We then setup the links between the core routers and the core-edge routers as per the diagram:<br />
<br />
'''P1'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.1/30 interface=ether1 <br />
add address=10.0.255.5/30 interface=ether2<br />
add address=10.1.0.254/24 interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.6/30 interface=ether1 <br />
add address=10.0.255.9/30 interface=ether2<br />
add address=10.2.0.254/24 interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/ip address <br />
add address=10.0.255.2/30 interface=ether1 <br />
add address=10.0.255.10/30 interface=ether2<br />
add address=10.3.0.254/24 interface=ether3<br />
</pre><br />
<br />
'''PE1'''<br />
<pre><br />
/ip address <br />
add address=10.1.0.1/24 interface=ether1<br />
</pre><br />
<br />
'''PE2'''<br />
<pre><br />
/ip address <br />
add address=10.1.0.2/24 interface=ether1<br />
</pre><br />
<br />
'''PE3'''<br />
<pre><br />
/ip address <br />
add address=10.1.0.3/24 interface=ether1<br />
</pre><br />
<br />
==== Dynamic Routing Setup ====<br />
Next we can setup OSPF on each router to dynamically distribute routes<br />
<br />
'''P1'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.1 <br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''P2'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.2<br />
/routing ospf network <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.0.255.4/30 <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''P3'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.3 <br />
/routing ospf network <br />
add area=backbone network=10.0.255.0/30 <br />
add area=backbone network=10.0.255.8/30 <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''PE1'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.4<br />
/routing ospf network <br />
add area=backbone network=10.1.0.0/24 <br />
</pre><br />
'''PE2'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.5<br />
/routing ospf network <br />
add area=backbone network=10.2.0.0/24 <br />
</pre><br />
'''PE3'''<br />
<pre><br />
/routing ospf <br />
set distribute-default=never redistribute-connected=as-type-1 router-id=10.255.255.6<br />
/routing ospf network <br />
add area=backbone network=10.3.0.0/24 <br />
</pre><br />
You should now have a working OSPF routed system<br />
=== MPLS Setup ===<br />
The next step is to add and configure the MPLS system. In order to distribute labels for routes, LDP needs to be enabled. Then all interfaces that participate in MPLS need to be added.<br />
<br />
'''P1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.1 transport-address=10.255.255.1<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.2 transport-address=10.255.255.2<br />
/mpls ldp interface <br />
add interface=ether1<br />
add interface=ether2<br />
add interface=ether3<br />
</pre><br />
'''P3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.3 transport-address=10.255.255.3<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE1'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.4 transport-address=10.255.255.4<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE2'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.5 transport-address=10.255.255.5<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
'''PE3'''<br />
<pre><br />
/mpls ldp <br />
set enabled=yes lsr-id=10.255.255.6 transport-address=10.255.255.6<br />
/mpls ldp interface <br />
add interface=ether1<br />
</pre><br />
This should now give you an operational MPLS setup.<br />
<br />
[[Image:LDP1.png]]<br />
[[Image:mpls2.png]]<br />
[[Image:mpls1.png]]</div>
Route