User's Manual
Configure VRF-lite | Page 29
Simple VRF-lite configuration examples
Dynamic inter-VRF communication with BGP routing to
external peers
The partial configuration example below shows the key components required to support
dynamic inter-VRF communication using BGP, with BGP routing to external peers.
...
!
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 bgp 100
!
address-family ipv4 vrf red
redistribute connected
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 activate
exit-address-family
!
address-family ipv4 vrf green
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 activate
redistribute connected
exit-address-family
!
...
BGP address-families are created. Each BGP address-family is associated with a VRF instance.
Routes within the VRF domain are advertised to external BGP peers. Selected BGP routes
(including connected routes redistributed into BGP, and BGP routes learned from external
BGP neighbors) are copied between VRF instances.