PE-CE Communication via RIP

Problem

You want to use RIP to exchange routing information between the CE and PE routers.

Solution

You can use RIP to exchange customer routing information between the CE and PE routers at each site. The advantage to doing this is that any customer routes at one site can be automatically propagated to other customer sites. This requires a normal RIP configuration on the CE router:

Router-CE-A2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-CE-A2(config)#router rip
Router-CE-A2(config-router)#version 2
Router-CE-A2(config-router)#network 10.0.0.0
Router-CE-A2(config-router)#network 192.168.3.0
Router-CE-A2(config-router)#end
Router-CE-A2#

And there must be a matching RIP configuration for this VRF on the PE router:

Router-PE2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-PE2(config)#router rip
Router-PE2(config-router)#version 2
Router-PE2(config-router)#address-family ipv4 vrf NetworkA
Router-PE2(config-router-af)#version 2
Router-PE2(config-router-af)#redistribute bgp 100 metric 4
Router-PE2(config-router-af)#network 192.168.3.0
Router-PE2(config-router-af)#exit-address-family
Router-PE2(config-router)#exit
Router-PE2(config)#router bgp 100
Router-PE2(config-router)#address-family ipv4 vrf NetworkA
Router-PE2(config-router-af)#redistribute rip metric 4
Router-PE2(config-router-af)#end
Router-PE2#

Discussion

There are a few key points to note in this configuration. First, this just ...

Get Cisco IOS Cookbook, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.