User's Manual

Configure VRF-lite | Page 27
Simple VRF-lite configuration examples
VRFs accessing a shared network. An example of static inter-VRF routing
The partial configuration example below shows the key components required to support
static inter-VRF routing.
100.100.100.0/24
- Inter VRF (IVR) communications
via static IVR routes
VRF red
VRF green
Global default
VRF domain
vlan 100
1.20.1.0/24
vlan 14
1.10.1.0/24
vlan 12
Two companies (VRF red and VRF green) are able to access shared vlan100. Shared vlan100
exists in the Global default VRF. Static inter-VRF routing is used in this example to facilitate
inter-VRF communication. There are no overlapping IP addresses. As there is no external
router in vlan100 and there is no Internet access via vlan100, ACLs are not required.
...
!
ip vrf red
!
ip vrf green
!
interface vlan12
ip vrf forwarding red
ip address 1.10.1.1/24
!
interface vlan14
ip vrf forwarding green
ip address 1.20.1.1/24
!
interface vlan100
ip address 100.100.100.100/24
!
ip route vrf red 0.0.0.0/0 vlan100
ip route vrf green 0.0.0.0/0 vlan100
ip route 1.10.1.0/24 vlan12
ip route 1.20.1.0/24 vlan14
!
...