Configuring IP Unicast Routing
Configuring Multi-VRF CE
DETAILED STEPS
Command
1.
configure terminal
2.
ip routing
3.
ip vrf vrf-name
4.
rd route-distinguisher
5.
route-target {export | import |
both} route-target-ext-community
6.
import map route-map
7.
interface interface-id
8.
no shutdown
9.
ip vrf forwarding vrf-name
10.
end
11.
show ip vrf [brief | detail |
interfaces] [vrf-name]
12.
copy running-config
startup-config
Use the no ip vrf vrf-name global configuration command to delete a VRF and to remove all interfaces from it. Use the
no ip vrf forwarding interface configuration command to remove an interface from the VRF.
EXAMPLE
The following example shows how to import a route map to a VRF instance named VPN1:
Switch(config)# ip vrf vpn1
Switch(config-vrf)# rd 100:2
Switch(config-vrf)# route-target both 100:2
Switch(config-vrf)# route-target import 100:1
Configuring VRF-Aware Services
IP services can be configured on global interfaces, and these services run within the global routing instance. IP services
are enhanced to run on multiple routing instances; they are VRF-aware. Any configured VRF in the system can be
specified for a VRF-aware service.
VRF-aware services are implemented in platform-independent modules. VRF means multiple routing instances in Cisco
IOS. Each platform has its own limit on the number of VRFs it supports.
VRF-aware services have the following characteristics:
The user can ping a host in a user-specified VRF.
Purpose
Enter global configuration mode.
Enable IP routing.
Name the VRF, and enter VRF configuration mode.
Create a VRF table by specifying a route distinguisher. Enter
either an AS number and an arbitrary number (xxx:y) or an IP
address and arbitrary number (A.B.C.D:y).
Create a list of import, export, or import and export route target
communities for the specified VRF. Enter either an AS system
number and an arbitrary number (xxx:y) or an IP address and
an arbitrary number (A.B.C.D:y). The
route-target-ext-community should be the same as the
route-distinguisher entered in Step 4.
(Optional) Associate a route map with the VRF.
Specify the Layer 3 interface to be associated with the VRF, and
enter interface configuration mode. The interface can be a
routed port or SVI.
Enable the interface if necessary. By default, UNIs and ENIs are
disabled and NNIs are enabled.
Associate the VRF with the Layer 3 interface.
Return to privileged EXEC mode.
Verify the configuration. Display information about the
configured VRFs.
(Optional) Save your entries in the configuration file.
898