![](/images/new-backgrounds/1206105/20610555x1.webp)
Simple VRF-lite configuration examples
Dynamic inter-VRF communication with RIP routing to external peers
The partial configuration example below shows the key components required to support dynamic inter-VRF communication between two VRF instances using BGP, with RIP routing to external peers.
RIP address-families are created, and each RIP address-family is associated with a VRF instance. To achieve inter-VRF communications, BGP is redistributed into each RIP family. Conversely, BGP address-families are created and each BGP address-family is associated with a VRF instance, and RIP is redistributed into each BGP address-family. Connected routes are also redistributed into BGP to be leaked between VRF instances.
...
!
ip vrf red
rd 100:1
route-target export 100:1 route-target import 100:2
!
ip vrf green rd 100:2
route-target export 100:2 route-target import 100:1
!
router rip
!
address-family ipv4 vrf red network vlan20 redistribute bgp exit-address-family
!
address-family ipv4 vrf green network vlan60 redistribute bgp exit-address-family
!
router bgp 100 address-family ipv4 vrf red redistribute connected redistribute rip exit-address-family
!
address-family ipv4 vrf green redistribute connected redistribute rip
exit-address-family !
...
Page 28 Configure VRF-lite