Administrator Guide

ip address ip—address mask
A non-default VRF named VRF-Shared is created and the interface 1/4 is assigned to this VRF.
2 Congure the export target in the source VRF:.
ip route-export 1:1
3 Congure VRF-red.
ip vrf vrf-red
interface-type slot/port[/subport]
ip vrf forwarding VRF-red
ip address ip—address mask
A non-default VRF named VRF-red is created and the interface is assigned to this VRF.
4 Congure the import target in VRF-red.
ip route-import 1:1
5 Congure the export target in VRF-red.
ip route-export 2:2
6 Congure VRF-blue.
ip vrf vrf-blue
interface-type slot/port[/subport]
ip vrf forwarding VRF-blue
ip address ip—address mask
A non-default VRF named VRF-blue is created and the interface 1/12 is assigned to it.
7 Congure the import target in VRF-blue.
ip route-import 1:1
8 Congure the export target in VRF-blue.
ip route-import 3:3
9 Congure VRF-green.
ip vrf vrf-green
interface-type slot/port[/subport]
ip vrf forwarding VRF-green
ip address ip—address mask
A non-default VRF named VRF-green is created and the interface is assigned to it.
10 Congure the import target in the source VRF VRF-Shared for reverse communication with VRF-red and VRF-blue.
ip vrf vrf-shared
ip route—import 2:2
ip route-import 3:3
The show run output for the above conguration is as follows:
ip vrf VRF-Red
ip route-export 2:2
ip route-import 1:1
!
Virtual Routing and Forwarding (VRF)
1079