Specifications

Table Of Contents
ip vrf
MP-117
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
ip vrf
To define a VPN routing and forwarding (VRF) instance and to enter VRF configuration mode, use the
ip vrf co
mmand in global configuration mode. To remove a VRF instance, use the no form of this
command.
ip vrf v
rf-name
no ip
vrf vrf-name
Syntax Description
Command Default No VRFs are defined. No import or export lists are associated with a VRF. No route maps are associated
wi
th a VRF.
Command Modes Global configuration (config)
Command History
Usage Guidelines The ip
vrf vrf-name command creates a VRF instance named vrf-name. To make the VRF functional, a
route distinguisher (RD) must be created using the rd route-distinguisher command in VRF
configuration mode. The rd route-distinguisher command creates the routing and forwarding tables and
associates the RD with the VRF instance named vrf-name.
The ip v
rf default command can be used to configure a VRF instance that is a NULL value until a default
VRF name can be configured. This is typically before any VRF related AAA commands are configured.
Examples The following example shows how to import a route map to a VRF instance named VPN1:
ip vrf vpn1
rd 100:2
route-target both 100:2
route-target import 100:1
vrf-name Name assigned to a VRF.
Release Modification
12.0(5)T This command was introduced.
12.0(21)ST This command was integrated into Cisco IOS Release 12.0(21)ST.
12.0(22)S This command was integrated into Cisco IOS Release 12.0(22)S.
12.2(14)S This command was integrated into Cisco IOS 12.2(14)S.
12.2(28)SB This command was integrated into Cisco IOS Release 12.2(28)SB.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2(33)SXH This command was integrated into Cisco IOS Release 12.2(33)SXH.
Cisco IOS XE
Re
lease 2.1
This command was integrated into Cisco IOS XE Release 2.1.