Backbone MPLS Topology
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#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#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#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#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#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: 202LDP Neighbor Relationship তৈরী হওয়ার পর আমরা রাউটারে নিচের কমান্ডের মাধ্যমে স্ট্যাটাস দেখতে পারি।
PE-1_Router#show mpls ldp neighborPeer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0TCP connection: 2.2.2.2.38799 - 1.1.1.1.646State: Oper; Msgs sent/rcvd: 44/45; DownstreamUp time: 00:29:08LDP discovery sources:Ethernet0/0, Src IP addr: 20.0.0.2Addresses bound to peer LDP Ident:20.0.0.2 2.2.2.2 30.0.0.1P2_Router>show mpls ldp neighborPeer LDP Ident: 4.4.4.4:0; Local LDP Ident 3.3.3.3:0TCP connection: 4.4.4.4.65106 - 3.3.3.3.646State: Oper; Msgs sent/rcvd: 45/44; DownstreamUp time: 00:29:46LDP discovery sources:Ethernet0/0, Src IP addr: 40.0.0.2Addresses bound to peer LDP Ident:40.0.0.2 4.4.4.4 50.0.0.1Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0TCP connection: 2.2.2.2.646 - 3.3.3.3.59189State: Oper; Msgs sent/rcvd: 46/45; DownstreamUp time: 00:29:36LDP discovery sources:Ethernet0/1, Src IP addr: 30.0.0.1Addresses bound to peer LDP Ident:20.0.0.2 2.2.2.2 30.0.0.1P2_Router>
কোন রাউটারের পূর্ণাঙ্গ Label Database দেখতে চাইলে রাউটারে নিচের কমান্ড দিতে হবে।PE-1_Router#show mpls ldp bindingslib entry: 1.1.1.1/32, rev 2local binding: label: imp-nullremote binding: lsr: 2.2.2.2:0, label: 204lib entry: 2.2.2.2/32, rev 12local binding: label: 102remote binding: lsr: 2.2.2.2:0, label: imp-nulllib entry: 3.3.3.3/32, rev 10local binding: label: 101remote binding: lsr: 2.2.2.2:0, label: 201lib entry: 4.4.4.4/32, rev 8local binding: label: 100remote binding: lsr: 2.2.2.2:0, label: 200lib entry: 10.0.0.0/30, rev 6local binding: label: imp-nullremote binding: lsr: 2.2.2.2:0, label: 205lib entry: 20.0.0.0/30, rev 4local binding: label: imp-nullremote binding: lsr: 2.2.2.2:0, label: imp-nulllib entry: 30.0.0.0/30, rev 18local binding: label: 105remote binding: lsr: 2.2.2.2:0, label: imp-nulllib entry: 40.0.0.0/30, rev 16local binding: label: 104remote binding: lsr: 2.2.2.2:0, label: 203lib entry: 50.0.0.0/30, rev 14local binding: label: 103remote binding: lsr: 2.2.2.2:0, label: 202PE-1_Router#
আমরা যদি রাউটারের পূর্ণাঙ্গ Label Database থেকে শুধুমাত্র একটি নির্দিষ্ট রাউটের তথ্য দেখতে চাই তাহলে রাউটারে নিচের কমান্ড দিতে হবে।PE-1_Router# show mpls ldp bindings 50.0.0.0 30lib entry: 50.0.0.0/30, rev 14local binding: label: 103remote binding: lsr: 2.2.2.2:0, label: 202PE-1_Router#
কোন রাউটারের সম্পূর্ণ MPLS Forwarding Table দেখতে চাইলে রাউটারে নিচের কমান্ড দিতে হবে।PE-1_Router#show mpls forwarding-tableLocal Outgoing Prefix Bytes Label Outgoing Next HopLabel Label or Tunnel Id Switched interface100 200 4.4.4.4/32 0 Et0/0 20.0.0.2101 201 3.3.3.3/32 0 Et0/0 20.0.0.2102 Pop Label 2.2.2.2/32 0 Et0/0 20.0.0.2103 202 50.0.0.0/30 0 Et0/0 20.0.0.2104 203 40.0.0.0/30 0 Et0/0 20.0.0.2105 Pop Label 30.0.0.0/30 0 Et0/0 20.0.0.2PE-1_Router#
এখন আমরা C1-A এ থেকে যদি C1-B তে Traceroute দেই তাহলে আই.এস.পি এর Hop গুলোতে আই.পি এ্যাড্রেসের পাশাপাশি MPLS এর Label ও দেখতে পাব।PE-1_Router#traceroute 50.0.0.2Type 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 সম্পর্কে কিছু ধারণা পাবেন। ভাল থাকবেন, আল্লাহ হাফেজ।