MPLS LAB - PE to CE routing - RIPv2
January 8th, 2009 in
CCIE SP | tags:
MPLS,
RIPv2
In this post I will show how to configure RIPv2 as the PE to CE routing protocol. You can see the network-diagram below.

The configurations for routers R7, R8, R11 and R13 are straightforward RIPv2 configurations like so :
Router R7 :
R7 :
|
|
|
router rip
version 2
network 7.0.0.0
network 37.0.0.0
no auto-summary
|
Router R8 :
R8 :
|
|
|
router rip
version 2
network 8.0.0.0
network 68.0.0.0
no auto-summary
|
Router R11 :
R11 :
|
|
|
router rip
version 2
network 11.0.0.0
network 61.0.0.0
no auto-summary
|
Router R13 :
R13 :
|
|
|
router rip
version 2
network 13.0.0.0
network 31.0.0.0
no auto-summary
|
Below the relevant configuration on router R3 :
R3 :
|
|
|
router rip
version 2
no auto-summary
!
address-family ipv4 vrf VPN_B
redistribute bgp 100 metric transparent
network 31.0.0.0
no auto-summary
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute bgp 100 metric transparent
network 37.0.0.0
no auto-summary
exit-address-family
!
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
!
address-family ipv4 vrf VPN_B
redistribute rip
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute rip
no auto-summary
no synchronization
exit-address-family
|
And on router R6 :
R6 :
|
|
|
router rip
version 2
no auto-summary
!
address-family ipv4 vrf VPN_B
redistribute bgp 100 metric transparent
network 68.0.0.0
no auto-summary
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute bgp 100 metric transparent
network 61.0.0.0
no auto-summary
exit-address-family
!
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
!
address-family ipv4 vrf VPN_B
redistribute rip
no auto-summary
no synchronization
exit-address-family
!
address-family ipv4 vrf VPN_A
redistribute rip
no auto-summary
no synchronization
exit-address-family
|
Let’s check the routing table on router R11 :
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 not set
37.0.0.0/24 is subnetted, 1 subnets
R 37.37.37.0 [120/1] via 61.61.61.6, 00:00:08, FastEthernet2/0
7.0.0.0/32 is subnetted, 1 subnets
R 7.7.7.7 [120/2] via 61.61.61.6, 00:00:08, FastEthernet2/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
R11#ping 7.7.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/98/212 ms
|