Skip to main content

KONFIGURASI VPLS DENGAN MPLS LDP DI ROUTER MIKROTIK


REVIEW MPLS

What is MPLS • MPLS stands for “Multi-Protocol Label Switching”.
• 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 LABEL FORMAT



Label Switching

MPLS does “label switching” instead: The router applies a “label” based on this information. Future routers use the label to route the traffic At the final destination router the label is removed. And the packet is delivered via normal IP routing.

MPLS Operation

At ingress LSR (Label Switch Router) of an MPLS domain, an MPLS header is inserted to a packet before the packet is forwarded • At subsequent LSRs • The label is used as an index into a forwarding table that specifies the next hop and a new label. • The old label is replaced with the new label, and the packet is forwarded to the next hop. • Egress LSR strips the label and forwards the packet to final destination based on the IP packet header

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 Distribution Protocol ‒ LDP works between adjacent/non-adjacent peers LDP sessions are established between peers LDP messages sent in the form of TLVs (Type, Length, Value)  

Label Space Of LDP

LSRs establish one LDP session per label space. Perplatform label space requires only one LDP session, even if there are multiple parallel links between a pair of LSRs.
Per-platform label space is announced by setting the label space ID 

Tunnel VPN



LAB


1. MIKROTIK 1 (PE1)
-------------------------------------

/interface bridge
add name=loopback
/interface ethernet
set [ find default-name=ether2 ] mtu=1508
set [ find default-name=ether3 ] mtu=1508
set [ find default-name=ether4 ] 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=1.1.1.1
/ip address
add address=192.168.10.1/24 interface=ether5 network=192.168.10.0
add address=13.13.13.1/24 interface=ether3 network=13.13.13.0
add address=14.14.14.1/24 interface=ether4 network=14.14.14.0
add address=1.1.1.1 interface=loopback network=1.1.1.1
add address=12.12.12.1/24 interface=ether2 network=12.12.12.0
/ip dhcp-client
add disabled=no interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/mpls ldp
set distribute-for-default-route=yes enabled=yes loop-detect=yes lsr-id=\
    1.1.1.1 transport-address=1.1.1.1 use-explicit-null=yes
/mpls ldp interface
add interface=ether2
add interface=ether3
add interface=ether4
/routing ospf interface
add interface=ether2 network-type=point-to-point
add interface=ether3 network-type=point-to-point
add interface=ether4 network-type=point-to-point
/routing ospf network
add area=backbone network=12.12.12.0/24
add area=backbone network=13.13.13.0/24
add area=backbone network=14.14.14.0/24
add area=backbone network=1.1.1.1/32
/system identity
set name=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


Pastikan semua router (PE1, P, PE2, CE1, CE2) saling mendeteksi neighbornya masing", lalu lakukan ping p2p antar client.

SOURCE:
https://mum.mikrotik.com/presentations/KH19/presentation_6467_1548573103.pdf

TERIMA KASIH


Popular posts from this blog

Command Reference Raisecom OLT

Check onu status: show epon-onu information Check mac interface vlan: show pon mac-address-table l2-address interface epon-onu 1/1/14 Mac Address     Port                      VLAN  Flag ---------------------------------------------------- 9800.7457.ccd4  onu1/1/14                 713   Hit 9800.7457.ccd3  onu1/1/14                 46    Hit   Check illegal onu: show interface epon-olt illegal-onu

Konfigurasi IP Address Static Centos 7/8

  # static IP address on CentOS 7 or RHEL 7# HWADDR=00:08:A2:0A:BA:B8 TYPE=Ethernet BOOTPROTO=none # Server IP # IPADDR=192.168.2.203 # Subnet # PREFIX=24 # Set default gateway IP # GATEWAY=192.168.2.254 # Set dns servers # DNS1=192.168.2.254 DNS2=8.8.8.8 DNS3=8.8.4.4 DEFROUTE=yes IPV4_FAILURE_FATAL=no # Disable ipv6 # IPV6INIT=no NAME=eth0 # This is system specific and can be created using 'uuidgen eth0' command # UUID=41171a6f-bce1-44de-8a6e-cf5e782f8bd6 DEVICE=eth0 ONBOOT=yes