Specifications

Table Of Contents
vrf forwarding
MP-891
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
vrf forwarding
To associate a Virtual Private Network (VPN) routing and forwarding (VRF) instance with an interface
or subinterface, use the vrf forwarding command in interface configuration mode. To disassociate a
VRF from an interface, use the no form of this command.
vrf forwarding vr
f-name
no vrf forwarding vr
f-name
Syntax Description
Command Default The default for an interface is the global routing table.
Command Modes Interface configuration (config-if)
Command History
Usage Guidelines Use the v
rf forwarding command to associate an interface with a VRF. When the interface is bound to
a VRF, previously configured IPv4 and IPv6 addresses are removed, and they must be reconfigured.
Examples The following example shows how to associate a VRF named site1 to serial interface 0/0 and configure
an
IPv6 and an IPv4 address:
interface Serial0/0
vrf forwarding site1
ipv6 address 2001:100:1:1000::72b/64
ip address 10.11.11.1 255.255.255.0
Related Commands
vrf-name Name assigned to a VRF.
Release Modification
12.2(33)SRB This command was introduced.
12.2(33)SXH This command was integrated into Cisco IOS Release 12.2(33)SXH.
12.2(33)SB This command was integrated into Cisco IOS Release 12.2(33)SB.
12.4(20)T This command was integrated into Cisco IOS Release 12.4(20)T.
Command Description
vrf definition Configures a VRF routing table instance and enters VRF configuration
mod
e.