Configuring VRF Lite
Configuring VRF Lite
Perform the following procedure to configure VRF Lite:
Command
Step 1
Router(config)# ip vrf vrf-name
Step 2
Router(config-vrf)# rd
route-distinguisher
Step 3
Router(config-vrf)# route-target {import
| export | both} route-distinguisher
Step 4
Router(config-vrf)# import map route-map
Step 5
Router(config-vrf)# exit
Step 6
Router(config)# interface type number
Step 7
Router(config-vrf)# ip vrf forwarding
vrf-name
Step 8
Router(config-if)# end
Step 9
Router# copy running-config
startup-config
The following example shows the procedure for configuring a VRF named customer_a with a
route-distinguisher of 1:1 to Fast Ethernet interface 0.1:
Router(config)# ip vrf customer_a
Router(config-vrf)# rd 1:1
Router(config-vrf)# route-target both 1:1
Router(config)# interface fastEthernet 0.1
Router(config-subif)# ip vrf forwarding customer_a
Cisco ONS 15454 SONET/SDH ML-Series Multilayer Ethernet Card Software Feature and Configuration Guide, R4.0
12-2
Chapter 12
Purpose
Enters VRF configuration mode and assigns a VRF
name.
Creates a VPN route distinguisher.
Creates a list of import and/or export route target
communities for the specified VRF.
(Optional) Associates the specified route map with
the VRF.
Exits the current configuration mode and enters
global configuration mode.
Specifies an interface and enters interface
configuration mode.
Associates a VRF with an interface or subinterface.
Exits to privileged EXEC mode.
(Optional) Saves configuration changes to NVRAM.
Configuring VRF Lite
78-15224-02