Manual - Layer-3 MPLS VPN Example - MikroTik Wiki
Manual - Layer-3 MPLS VPN Example - MikroTik Wiki
Technologies used:
Software:
PE and P routers have RouterOS 3.17 with routing-test and mpls-test packages.
CE routers have RouterOS 3.17 with routing-test package. (routing package and older versions can be used here
as well.)
Contents
1 IP addressing & routing
1.1 Provider's network
1.2 Client's sites
2 LDP
2.1 Results
3 BGP
3.1 Results
4 OSPF
4.1 Results
5 Test
5.1 Connecting from PE to CE
IP addressing & routing
Provider's network
On Router B:
# loopback interface
/interface bridge add name=lobridge
/ip address add address=10.9.9.2/32 interface=lobridge
On Router C:
# loopback interface
/interface bridge add name=lobridge
/ip address add address=10.9.9.3/32 interface=lobridge
On Router D:
# loopback interface
/interface bridge add name=lobridge
/ip address add address=10.9.9.4/32 interface=lobridge
Client's sites
On Router A:
On Router E:
LDP
On Router B:
/mpls ldp set enabled=yes transport-address=10.9.9.2
/mpls ldp interface add interface=ether3
On Router C:
On Router D:
Setting transport address for LDP is not required, but very recommended. If the address is not set, the router will pick
any address at random, which may be an address belonging to VRF, and as such not connectible from internal P routers.
Results
BGP
On Router B:
On Router C:
On Router D:
Note that route reflection here is used for the sake of an example. A simpler configuration would work as well - one
where there is a BGP session between B and D and C is not running BGP at all.
Results
and
OSPF
On Router A:
On Router B:
On Router D:
On Router E:
Results
Test
On Router A:
To see whole MPLS cloud as one IP hop, configure propagate-ttl=no. This setting should be the same on all provider's
routers.
On Routers B,C,D:
No failures here.
Connecting from PE to CE