REVIEW MPLS
• MPLS is best summarized as a “Layer 2.5 networking protocol”.
• MPLS combines layer 2 switching technology and layer 3 routing technology so that it becomes the best network solution in solving speed, scalability, QOS (Quality of Service), and traffic engineering problems.
MPLS Operation
Classification Of VPNs
L2VPN Model
VPLS
- VPLS defines an architecture allows MPLS networks offer Layer 2 multipoint Ethernet Services • SP emulates an IEEE Ethernet bridge network (virtual)
LDP (Label Distribution Protocol)
Label Space Of LDP
Tunnel VPN
LAB
1. MIKROTIK 1 (PE1)
-------------------------------------
-------------------------------------
2. MIKROTIK2 (PE2)
/interface bridge
add name=loopback
/interface ethernet
set [ find default-name=ether1 ] mtu=1508
set [ find default-name=ether2 ] mtu=1508
set [ find default-name=ether3 ] mtu=1508
/routing ospf instance
set [ find default=yes ] distribute-default=always-as-type-1 \
redistribute-connected=as-type-1 redistribute-other-ospf=as-type-1 \
router-id=2.2.2.2
/ip address
add address=23.23.23.2/24 interface=ether2 network=23.23.23.0
add address=12.12.12.2/24 interface=ether1 network=12.12.12.0
add address=25.25.25.1/24 interface=ether3 network=25.25.25.0
add address=2.2.2.2 interface=loopback network=2.2.2.2
/ip dhcp-client
add disabled=no interface=ether1
/mpls ldp
set distribute-for-default-route=yes enabled=yes loop-detect=yes lsr-id=\
2.2.2.2 transport-address=2.2.2.2 use-explicit-null=yes
/mpls ldp interface
add interface=ether1
add interface=ether2
add interface=ether3
/routing ospf interface
add interface=ether1 network-type=point-to-point
add interface=ether2 network-type=point-to-point
add interface=ether3 network-type=point-to-point
/routing ospf network
add area=backbone network=2.2.2.2/32
add area=backbone network=12.12.12.0/24
add area=backbone network=23.23.23.0/24
add area=backbone network=25.25.25.0/24
/system identity
set name=PE2
-----------------------
3. MIKROTIK3 (P)
-----------------------------------------------
/interface bridge
add name=loopback
/interface ethernet
set [ find default-name=ether1 ] mtu=1508
set [ find default-name=ether2 ] mtu=1508
/routing ospf instance
set [ find default=yes ] distribute-default=always-as-type-1 \
redistribute-connected=as-type-1 redistribute-other-ospf=as-type-1 \
router-id=3.3.3.3
/ip address
add address=13.13.13.2/24 interface=ether1 network=13.13.13.0
add address=23.23.23.1/24 interface=ether2 network=23.23.23.0
add address=3.3.3.3 interface=loopback network=3.3.3.3
/ip dhcp-client
add disabled=no interface=ether1
/mpls ldp
set distribute-for-default-route=yes enabled=yes loop-detect=yes lsr-id=\
3.3.3.3 transport-address=3.3.3.3 use-explicit-null=yes
/mpls ldp interface
add interface=ether1
add interface=ether2
/routing ospf interface
add interface=ether1 network-type=point-to-point
add interface=ether2 network-type=point-to-point
/routing ospf network
add area=backbone network=3.3.3.3/32
add area=backbone network=13.13.13.0/24
add area=backbone network=23.23.23.0/24
/system identity
set name=P
-----------------------------------------------
4. MIKROTIK4 (CE1)
/interface bridge
add name=VPLS
add name=loopback
/interface ethernet
set [ find default-name=ether1 ] mtu=1508
set [ find default-name=ether2 ] mtu=1508
set [ find default-name=ether3 ] mtu=1508
set [ find default-name=ether4 ] mtu=1508
/interface vpls
add disabled=no l2mtu=1500 mac-address=02:7D:5E:0C:A0:E0 name=VPLS-LAN1 \
remote-peer=5.5.5.5 vpls-id=2:2
/routing ospf instance
set [ find default=yes ] distribute-default=always-as-type-1 \
redistribute-connected=as-type-1 redistribute-other-ospf=as-type-1 \
router-id=4.4.4.4
/interface bridge port
add bridge=VPLS interface=VPLS-LAN1
add bridge=VPLS interface=ether3
/ip address
add address=14.14.14.2/24 interface=ether1 network=14.14.14.0
add address=4.4.4.4 interface=loopback network=4.4.4.4
add address=10.100.1.1/30 interface=VPLS network=10.100.1.0
/ip dhcp-client
add disabled=no interface=ether1
/mpls ldp
set distribute-for-default-route=yes enabled=yes loop-detect=yes lsr-id=\
4.4.4.4 transport-address=4.4.4.4 use-explicit-null=yes
/mpls ldp interface
add interface=ether1
/routing ospf interface
add interface=ether1 network-type=point-to-point
/routing ospf network
add area=backbone network=14.14.14.0/24
add area=backbone network=4.4.4.4/32
/system identity
set name=CE1
-----------------------------------------------
5. MIKROTIK5 (CE2)
/interface bridge
add name=VPLS
add name=loopback
/interface ethernet
set [ find default-name=ether1 ] mtu=1508
set [ find default-name=ether3 ] mtu=1508
/interface vpls
add disabled=no l2mtu=1500 mac-address=02:E7:BB:B1:55:B0 name=VPLS-LAN2 \
remote-peer=4.4.4.4 vpls-id=2:2
/routing ospf instance
set [ find default=yes ] distribute-default=always-as-type-1 \
redistribute-connected=as-type-1 redistribute-other-ospf=as-type-1 \
router-id=5.5.5.5
/interface bridge port
add bridge=VPLS interface=VPLS-LAN2
add bridge=VPLS interface=ether3
/ip address
add address=25.25.25.2/24 interface=ether1 network=25.25.25.0
add address=5.5.5.5 interface=loopback network=5.5.5.5
add address=10.100.1.2/30 interface=VPLS network=10.100.1.0
/ip dhcp-client
add disabled=no interface=ether1
/mpls ldp
set distribute-for-default-route=yes enabled=yes loop-detect=yes lsr-id=\
5.5.5.5 transport-address=5.5.5.5 use-explicit-null=yes
/mpls ldp interface
add interface=ether1
/routing ospf interface
add interface=ether1 network-type=point-to-point
/routing ospf network
add area=backbone network=25.25.25.0/24
add area=backbone network=5.5.5.5/32
/system identity
set name=CE2
VERIFIKASI
routing ospf neighbor print
mpls ldp neighbor print