MPLS LAB - Core Network

The next posts will be about MPLS and how to set up the network which you can see below in the network-diagram. In this post I will set up the core part of the network. In the next post I will show how to configure VRF’s, how to confiugure PE to CE routing, management VPN’s, central services VPN’s etc.

MPLS

If you want to set up this network in GNS3 you can download the GNS3 file here

Below are the configurations for router R3, R1, R5 and R6.

In this network routers R3 and R6 are PE routers and routers R1 and R5 are P routers. First off I will show the configurations of the P routers because they are the most simple. Basically what you need to configure on the P routers :

ip cef
!
mpls ip
!
int (core-link interface)
mpls ip

R1 :


hostname R1
!
ip cef
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ip address 15.15.15.1 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
interface FastEthernet1/0
 ip address 13.13.13.1 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 network 1.1.1.1 0.0.0.0 area 0
 network 13.13.13.1 0.0.0.0 area 0
 network 15.15.15.1 0.0.0.0 area 0
    

R5 :


hostname R5
!
ip cef
!
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
 ip address 15.15.15.5 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
interface FastEthernet1/0
 ip address 56.56.56.5 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
router ospf 1
 router-id 5.5.5.5
 log-adjacency-changes
 network 5.5.5.5 0.0.0.0 area 0
 network 15.15.15.5 0.0.0.0 area 0
 network 56.56.56.5 0.0.0.0 area 0
    

Next we will configure the PE routers R3 and R6, basically what you need to configure on the PE routers is :

ip cef
!
ip bgp-community new-format
!
mpls ip
!
interface (core-link interface)
mpls ip
!
router bgp (AS nr)
neighbor (remote PE ip address) remote-as (AS nr)
neighbor (remote PE ip address) upd lo 0
!
address-family vpnv4
neighbor (remote PE ip address) activate
neighbor (remote PE ip address) send-comm both

R3 :


hostname R3
!
ip cef
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet1/0
 ip address 13.13.13.3 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 network 3.3.3.3 0.0.0.0 area 0
 network 13.13.13.3 0.0.0.0 area 0
!
router bgp 100
 no synchronization
 bgp router-id 3.3.3.3
 bgp log-neighbor-changes
 neighbor 6.6.6.6 remote-as 100
 neighbor 6.6.6.6 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
 neighbor 6.6.6.6 activate
 neighbor 6.6.6.6 send-community both
 exit-address-family
!
ip bgp-community new-format
    

R6 :


hostname R6
!
ip cef
!
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet1/0
 ip address 56.56.56.6 255.255.255.0
 duplex auto
 speed auto
 mpls ip
!
router ospf 1
 router-id 6.6.6.6
 log-adjacency-changes
 network 6.6.6.6 0.0.0.0 area 0
 network 56.56.56.6 0.0.0.0 area 0
!
router bgp 100
 no synchronization
 bgp router-id 6.6.6.6
 bgp log-neighbor-changes
 neighbor 3.3.3.3 remote-as 100
 neighbor 3.3.3.3 update-source Loopback0
 no auto-summary
 !
 address-family vpnv4
 neighbor 3.3.3.3 activate
 neighbor 3.3.3.3 send-community both
 exit-address-family
!
ip bgp-community new-format
    

In the next post I will configure the VRF’s for VPN A and VPN B.

Leave a comment

Your comment