MPLS LAB - PE to CE routing - Static routes
January 8th, 2009 in
CCIE SP | tags:
MPLS,
PE to CE routing
In the previous posts in this series I explained how to setup the core network and how to configure VRF’s, in this post I will set-up PE to CE routing. There are various ways to set up PE to CE routing, in this example I will configure static-routing between the PE and CE routers.
Below is the diagram of our network again.

For VPN_A we are going to route the network of 10.1.7.0/24 connected via router R7 and router R7’s loopback address of 7.7.7.7/32 and the loopback address of 11.11.11.11/32 which is the loopback address of router R11.
For VPN_B we are going to route the network of 10.1.8.0/24 connected via router R8 and router R7’s loopback address of 8.8.8.8/32 and the loopback address of 13.13.13.13/32 which is the loopback address of router R13.
Below is the configuration of this static routing for VPN_A on router R3:
R3 :
|
|
|
ip route vrf VPN_A 7.7.7.7 255.255.255.255 37.37.37.7
ip route vrf VPN_A 10.1.7.0 255.255.255.0 37.37.37.7
router bgp 100
!
address-family ipv4 vrf VPN_A
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
|
Below is the configuration of this static routing for VPN_A on router R6:
R6 :
|
|
|
ip route vrf VPN_A 11.11.11.11 255.255.255.255 61.61.61.11
router bgp 100
!
address-family ipv4 vrf VPN_A
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
|
Below is the configuration of this static routing for VPN_B on router R3:
R3 :
|
|
|
ip route vrf VPN_B 13.13.13.13 255.255.255.255 31.31.31.13
router bgp 100
!
address-family ipv4 vrf VPN_B
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
|
Below is the configuration of this static routing for VPN_B on router R6:
R6 :
|
|
|
ip route vrf VPN_B 8.8.8.8 255.255.255.255 68.68.68.8
ip route vrf VPN_B 10.1.8.0 255.255.255.0 68.68.68.8
router bgp 100
!
address-family ipv4 vrf VPN_B
redistribute connected
redistribute static
no auto-summary
no synchronization
exit-address-family
|
On the CE routers we need to set up a default-route to the PE routers.
On router R7 :
ip route 0.0.0.0 0.0.0.0 37.37.37.3
On router R8 ;
ip route 0.0.0.0 0.0.0.0 68.68.68.6
On router R11 :
ip route 0.0.0.0 0.0.0.0 61.61.61.6
On router R13 :
ip route 0.0.0.0 0.0.0.0 31.31.31.3
Now let’s have a look at router’s R11 routing table and do a ping to 10.1.7.7 on router R7 :
R11 :
|
|
|
R11#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 61.61.61.6 to network 0.0.0.0
11.0.0.0/32 is subnetted, 1 subnets
C 11.11.11.11 is directly connected, Loopback0
61.0.0.0/24 is subnetted, 1 subnets
C 61.61.61.0 is directly connected, FastEthernet2/0
S* 0.0.0.0/0 [1/0] via 61.61.61.6
R11#ping 10.1.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.7.7, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/82/148 ms
|
Now let’s have a look at router’s R8 routing table and to a ping to 13.13.13.13 on router R13 :
R8 :
|
|
|
R8#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 68.68.68.6 to network 0.0.0.0
68.0.0.0/24 is subnetted, 1 subnets
C 68.68.68.0 is directly connected, FastEthernet1/6
8.0.0.0/32 is subnetted, 1 subnets
C 8.8.8.8 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.8.0 is directly connected, Loopback1
S* 0.0.0.0/0 [1/0] via 68.68.68.6
R8#ping 13.13.13.13
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.13.13.13, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/67/96 ms
|
In the next post I will configure RIPv2 as PE to CE routing protocol.