Thursday, July 31, 2025

MPLS Backbone in Cisco Router

                                                        Backbone MPLS Topology




CE-1_Router:


C1-A#show running-config 

Building configuration...


Current configuration : 884 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname C1-A

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!

  

!         

redundancy

!         

      

!         

interface Ethernet0/0

 no ip address

 shutdown 

!         

interface Ethernet0/1

 ip address 10.0.0.2 255.255.255.252

!         

interface Ethernet0/2

 no ip address

 shutdown 

!         

interface Ethernet0/3

 no ip address

 shutdown 

!         

ip forward-protocol nd

!         

!         

no ip http server

no ip http secure-server

ip route 50.0.0.0 255.255.255.252 10.0.0.1

!         


!         

control-plane

!         

!         

line con 0

 logging synchronous

line aux 0

line vty 0 4

 login    

 transport input none

!         

!         

end       

          

C1-A#

PE-1_Router

PE-1_Router#show running-config 

Building configuration...


Current configuration : 1101 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname PE-1_Router

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

mpls label range 100 199

!

!

redundancy

!


!

interface Loopback0

 ip address 1.1.1.1 255.255.255.255

!

interface Ethernet0/0

 ip address 20.0.0.1 255.255.255.252

 mpls ip

!

interface Ethernet0/1

 ip address 10.0.0.1 255.255.255.252

!

interface Ethernet0/2

 no ip address

 shutdown

!

interface Ethernet0/3

 no ip address

 shutdown

!

router ospf 10

 passive-interface Ethernet0/1

 network 1.1.1.1 0.0.0.0 area 10

 network 10.0.0.0 0.0.0.3 area 10

 network 20.0.0.0 0.0.0.3 area 10

!

ip forward-protocol nd

!

!

no ip http server

no ip http secure-server

!

!

!

!

control-plane


!

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 login

 transport input none

!

!

end


PE-1_Router#    


P1_Router

P1_Router#show running-config 

Building configuration...


Current configuration : 1077 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname P1_Router

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!

!

!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

mpls label range 200 299

!

!

!         

redundancy

!

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.255

!

interface Ethernet0/0

 ip address 20.0.0.2 255.255.255.252

 mpls ip

!         

interface Ethernet0/1

 ip address 30.0.0.1 255.255.255.252

 mpls ip

!

interface Ethernet0/2

 no ip address

 shutdown

!

interface Ethernet0/3

 no ip address

 shutdown

!

router ospf 20

 network 2.2.2.2 0.0.0.0 area 10

 network 20.0.0.0 0.0.0.3 area 10

 network 30.0.0.0 0.0.0.3 area 10

!

ip forward-protocol nd

!

!

no ip http server

no ip http secure-server

!         

!

control-plane

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 login

 transport input none

!

!

end


P1_Router#  

P2_Router

P2_Router#show running-config 

Building configuration...


Current configuration : 1077 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname P2_Router

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!


!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

mpls label range 300 399

!

!         

redundancy

!

!

!

interface Loopback0

 ip address 3.3.3.3 255.255.255.255

!

interface Ethernet0/0

 ip address 40.0.0.1 255.255.255.252

 mpls ip

!         

interface Ethernet0/1

 ip address 30.0.0.2 255.255.255.252

 mpls ip

!

interface Ethernet0/2

 no ip address

 shutdown

!

interface Ethernet0/3

 no ip address

 shutdown

!

router ospf 30

 network 3.3.3.3 0.0.0.0 area 10

 network 30.0.0.0 0.0.0.3 area 10

 network 40.0.0.0 0.0.0.3 area 10

!

ip forward-protocol nd

!

!

no ip http server

no ip http secure-server

!         

!

control-plane

!

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 login

 transport input none

!

!

end


P2_Router# 

PE2_Router

PE2_Router#show running-config 

Building configuration...


Current configuration : 1069 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname PE2_Router

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!

!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

mpls label range 400 499

!

!         

redundancy

!

!

interface Loopback0

 ip address 4.4.4.4 255.255.255.255

!

interface Ethernet0/0

 ip address 40.0.0.2 255.255.255.252

 mpls ip

!         

interface Ethernet0/1

 ip address 50.0.0.1 255.255.255.252

!

interface Ethernet0/2

 no ip address

 shutdown

!

interface Ethernet0/3

 no ip address

 shutdown

!

router ospf 40

 network 4.4.4.4 0.0.0.0 area 10

 network 40.0.0.0 0.0.0.3 area 10

 network 50.0.0.0 0.0.0.3 area 10

!

ip forward-protocol nd

!

!

no ip http server

no ip http secure-server

!

!

control-plane

!

!

line con 0

 logging synchronous

line aux 0

line vty 0 4

 login

 transport input none

!

!

end


PE2_Router# 

C1_B_Router

C1_B#show  running-config 

Building configuration...


Current configuration : 884 bytes

!

version 15.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname C1_B

!

boot-start-marker

boot-end-marker

!

aqm-register-fnf

!

!

no aaa new-model

mmi polling-interval 60

no mmi auto-configure

no mmi pvc

mmi snmp-timeout 180

!


!

ip cef

no ipv6 cef

!

multilink bundle-name authenticated

!

!

redundancy

!


!

interface Ethernet0/0

 no ip address

 shutdown

!

interface Ethernet0/1

 ip address 50.0.0.2 255.255.255.252

!

interface Ethernet0/2

 no ip address

 shutdown

!

interface Ethernet0/3

 no ip address

 shutdown

!

ip forward-protocol nd

!

!

no ip http server

no ip http secure-server

ip route 10.0.0.0 255.255.255.252 50.0.0.1

!


!

control-plane

!


line con 0

 logging synchronous

line aux 0

line vty 0 4

 login

 transport input none

!

end


C1_B#   




কোন রাউটারের Local Label ডাটাবেজ দেখতে হলে নিচের কমান্ড দিতে হবে।

PE-1_Router>enable 
PE-1_Router#show mpls ldp bindings local
  lib entry: 1.1.1.1/32, rev 2
        local binding:  label: imp-null
  lib entry: 2.2.2.2/32, rev 12
        local binding:  label: 102
  lib entry: 3.3.3.3/32, rev 10
        local binding:  label: 101
  lib entry: 4.4.4.4/32, rev 8
        local binding:  label: 100
  lib entry: 10.0.0.0/30, rev 6
        local binding:  label: imp-null
  lib entry: 20.0.0.0/30, rev 4
        local binding:  label: imp-null
  lib entry: 30.0.0.0/30, rev 18
        local binding:  label: 105
  lib entry: 40.0.0.0/30, rev 16
        local binding:  label: 104
  lib entry: 50.0.0.0/30, rev 14
        local binding:  label: 103
PE-1_Router#


P1_Router#show mpls ldp bindings local
  lib entry: 1.1.1.1/32, rev 17
        local binding:  label: 204
  lib entry: 2.2.2.2/32, rev 2
        local binding:  label: imp-null
  lib entry: 3.3.3.3/32, rev 10
        local binding:  label: 201
  lib entry: 4.4.4.4/32, rev 8
        local binding:  label: 200
  lib entry: 10.0.0.0/30, rev 18
        local binding:  label: 205
  lib entry: 20.0.0.0/30, rev 4
        local binding:  label: imp-null
  lib entry: 30.0.0.0/30, rev 6
        local binding:  label: imp-null
  lib entry: 40.0.0.0/30, rev 14
        local binding:  label: 203
  lib entry: 50.0.0.0/30, rev 12
        local binding:  label: 202

LDP Neighbor Relationship তৈরী হওয়ার পর আমরা রাউটারে নিচের কমান্ডের মাধ্যমে স্ট্যাটাস দেখতে পারি।

PE-1_Router#show mpls ldp neighbor
    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
        TCP connection: 2.2.2.2.38799 - 1.1.1.1.646
        State: Oper; Msgs sent/rcvd: 44/45; Downstream
        Up time: 00:29:08
        LDP discovery sources:
          Ethernet0/0, Src IP addr: 20.0.0.2
        Addresses bound to peer LDP Ident:
          20.0.0.2        2.2.2.2         30.0.0.1   


P2_Router>show mpls ldp neighbor
    Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 3.3.3.3:0
        TCP connection: 4.4.4.4.65106 - 3.3.3.3.646
        State: Oper; Msgs sent/rcvd: 45/44; Downstream
        Up time: 00:29:46
        LDP discovery sources:
          Ethernet0/0, Src IP addr: 40.0.0.2
        Addresses bound to peer LDP Ident:
          40.0.0.2        4.4.4.4         50.0.0.1        
    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
        TCP connection: 2.2.2.2.646 - 3.3.3.3.59189
        State: Oper; Msgs sent/rcvd: 46/45; Downstream
        Up time: 00:29:36
        LDP discovery sources:
          Ethernet0/1, Src IP addr: 30.0.0.1
        Addresses bound to peer LDP Ident:
          20.0.0.2        2.2.2.2         30.0.0.1        
P2_Router>


কোন রাউটারের পূর্ণাঙ্গ Label Database দেখতে চাইলে রাউটারে নিচের কমান্ড দিতে হবে।

PE-1_Router#show mpls ldp bindings
  lib entry: 1.1.1.1/32, rev 2
        local binding:  label: imp-null
        remote binding: lsr: 2.2.2.2:0, label: 204
  lib entry: 2.2.2.2/32, rev 12
        local binding:  label: 102
        remote binding: lsr: 2.2.2.2:0, label: imp-null
  lib entry: 3.3.3.3/32, rev 10
        local binding:  label: 101
        remote binding: lsr: 2.2.2.2:0, label: 201
  lib entry: 4.4.4.4/32, rev 8
        local binding:  label: 100
        remote binding: lsr: 2.2.2.2:0, label: 200
  lib entry: 10.0.0.0/30, rev 6
        local binding:  label: imp-null
        remote binding: lsr: 2.2.2.2:0, label: 205
  lib entry: 20.0.0.0/30, rev 4
        local binding:  label: imp-null
        remote binding: lsr: 2.2.2.2:0, label: imp-null
  lib entry: 30.0.0.0/30, rev 18
        local binding:  label: 105
        remote binding: lsr: 2.2.2.2:0, label: imp-null
  lib entry: 40.0.0.0/30, rev 16
        local binding:  label: 104
        remote binding: lsr: 2.2.2.2:0, label: 203
  lib entry: 50.0.0.0/30, rev 14
        local binding:  label: 103
        remote binding: lsr: 2.2.2.2:0, label: 202
PE-1_Router# 

আমরা যদি রাউটারের পূর্ণাঙ্গ Label Database থেকে শুধুমাত্র একটি নির্দিষ্ট রাউটের তথ্য দেখতে চাই তাহলে রাউটারে নিচের কমান্ড দিতে হবে।

PE-1_Router# show mpls ldp bindings 50.0.0.0 30
  lib entry: 50.0.0.0/30, rev 14
        local binding:  label: 103
        remote binding: lsr: 2.2.2.2:0, label: 202
PE-1_Router#



কোন রাউটারের সম্পূর্ণ MPLS Forwarding Table দেখতে চাইলে রাউটারে নিচের কমান্ড দিতে হবে।



PE-1_Router#show mpls forwarding-table
Local      Outgoing   Prefix           Bytes Label   Outgoing   Next Hop    
Label      Label      or Tunnel Id     Switched      interface              
100        200        4.4.4.4/32       0             Et0/0      20.0.0.2    
101        201        3.3.3.3/32       0             Et0/0      20.0.0.2    
102        Pop Label  2.2.2.2/32       0             Et0/0      20.0.0.2    
103        202        50.0.0.0/30      0             Et0/0      20.0.0.2    
104        203        40.0.0.0/30      0             Et0/0      20.0.0.2    
105        Pop Label  30.0.0.0/30      0             Et0/0      20.0.0.2    
PE-1_Router#


এখন আমরা C1-A এ থেকে যদি C1-B তে Traceroute দেই তাহলে আই.এস.পি এর Hop গুলোতে আই.পি এ্যাড্রেসের পাশাপাশি MPLS এর Label ও দেখতে পাব।
PE-1_Router#traceroute 50.0.0.2
Type escape sequence to abort.
Tracing the route to 50.0.0.2
  1 10.0.0.1 48 msec 24 msec 8 msec
  2 20.0.0.1 [MPLS: Label 201 Exp 0] 68 msec 72 msec 100 msec
  3 30.0.0.2 [MPLS: Label 311 Exp 0] 48 msec 56 msec 40 msec
  4 40.0.0.2 104 msec 76 msec 92 msec
  5 50.0.0.2 76 msec 92 msec 80 msec

আশাকরি এই টিউটোরিয়ালটি দেখে আপনারা MPLS সম্পর্কে কিছু ধারণা পাবেন। ভাল থাকবেন, আল্লাহ হাফেজ।

MPLS Backbone in Cisco Router

                                                        Backbone MPLS Topology CE-1_Router: C1-A#show running-config  Building configuration...