How to understand MPLS protocol by example !!!

How to understand MPLS protocol by example?

1- Using OSPF as routing protocol.
2- Apply MPLS LDP protocol.

------------------------------------------------------------
(R1):

mpls label range 100 199
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
 ip address 12.1.1.1 255.255.255.0
 duplex full
 mpls ip
!

router ospf 1
 network 1.1.1.0 0.0.0.255 area 0
 network 12.1.1.0 0.0.0.255 area 0

!
mpls ldp router-id Loopback0

!
end

------------------------------------
(R2)

mpls label range 200 299
mpls label protocol ldp
multilink bundle-name authenticated
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
 ip address 12.1.1.2 255.255.255.0
 speed auto
 duplex auto
 mpls ip
!
interface FastEthernet0/1
 ip address 23.1.1.2 255.255.255.0
 speed auto
 duplex auto
 mpls ip
!
!
router ospf 1
 network 2.2.2.0 0.0.0.255 area 0
 network 12.1.1.0 0.0.0.255 area 0
 network 23.1.1.0 0.0.0.255 area 0

!
mpls ldp router-id Loopback0
!
!
end

----------------------------------------
(R3)

mpls label range 300 399
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
 ip address 23.1.1.3 255.255.255.0
 duplex full
 mpls ip
!
interface Serial1/0
 ip address 34.1.1.3 255.255.255.0
 mpls ip
 serial restart-delay 0
!
!
router ospf 1
 network 3.3.3.0 0.0.0.255 area 0
 network 23.1.1.0 0.0.0.255 area 0
 network 34.1.1.0 0.0.0.255 area 0
!

!
mpls ldp router-id Loopback0
!

end
-----------------------------------------------
(R4)

mpls label range 400 499
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 4.4.4.4 255.255.255.0
!
interface Serial1/0
 ip address 34.1.1.4 255.255.255.0
 mpls ip
 serial restart-delay 0
!
interface Serial1/1
 ip address 45.1.1.4 255.255.255.0
 mpls ip
 serial restart-delay 0
!
!
router ospf 1
 network 4.4.4.0 0.0.0.255 area 0
 network 34.1.1.0 0.0.0.255 area 0
 network 45.1.1.0 0.0.0.255 area 0
!
mpls ldp router-id Loopback0
!
!
end
----------------------------------------------------------------------------
(R5)

mpls label range 500 599
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 5.5.5.5 255.255.255.0
!
interface FastEthernet0/0
 ip address 56.1.1.5 255.255.255.0
 duplex full
 mpls ip
!
interface Serial1/1
 ip address 45.1.1.5 255.255.255.0
 mpls ip
 serial restart-delay 0

!
router ospf 1
 network 5.5.5.0 0.0.0.255 area 0
 network 45.1.1.0 0.0.0.255 area 0
 network 56.1.1.0 0.0.0.255 area 0
!
!
mpls ldp router-id Loopback0
!

!
end

---------------------------------------------------------------------------------------------
(R6)

mpls label range 600 699
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 6.6.6.6 255.255.255.0
!
interface FastEthernet0/0
 ip address 56.1.1.6 255.255.255.0
 speed auto
 duplex auto
 mpls ip
!
interface FastEthernet0/1
 ip address 67.1.1.6 255.255.255.0
 speed auto
 duplex auto
 mpls ip
!
!
router ospf 1
 network 6.6.6.0 0.0.0.255 area 0
 network 56.1.1.0 0.0.0.255 area 0
 network 67.1.1.0 0.0.0.255 area 0
!
mpls ldp router-id Loopback0
!
!
end
---------------------------------------------------------------------------
(R7)

mpls label range 700 799
mpls label protocol ldp
multilink bundle-name authenticated
!
!
interface Loopback0
 ip address 7.7.7.7 255.255.255.0
!
interface FastEthernet0/0
 ip address 67.1.1.7 255.255.255.0
 speed auto
 duplex full
 mpls ip
!
interface FastEthernet0/1
 ip address 100.100.100.100 255.255.255.0
 speed auto
 duplex auto
!
!
router ospf 1
 network 7.7.7.0 0.0.0.255 area 0
 network 67.1.1.0 0.0.0.255 area 0
 network 100.100.100.100 0.0.0.0 area 0
 network 100.100.100.0 0.0.0.255 area 0
!
!
mpls ldp router-id Loopback0
!
!
end

--------------------------------------------------------------------------------------
Good Luck
https://www.linkedin.com/in/ahmedms

Comments

Popular posts from this blog

Kubernetes 104: Create a 2-node k3s cluster with k3sup

DevNet 103: Network Automation Using Python

How to configure OSPF on Palo Alto Networks Firewall?