vrf forwarding

Assigns a VRF routing instance to an interface.
Syntax
vrf forwarding vrf-name
no vrf forwarding vrf-name
Command Default

The default VRF.

Parameters
vrf-name
Specifies the name of the VRF that the interface is being assigned to.
Modes

Interface configuration mode

Usage Guidelines

When the VRF is configured on a tunnel, all IPv4 and IPv6 addresses are removed. The tunnel loopback configuration is removed.

The no form of the command removes the VRF routing instance assigned to an interface. IP addresses and protocol configuration on this Layer 3 interface are removed.

Examples

The following examples assigns a VRF instance to the Ethernet interface 1/1/1.

device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# vrf forwarding guest

The following example shows how to configure a forwarding VRF named red on an IPsec tunnel interface identified as 1.

 device(config)# interface tunnel 1 
 device(config-tnif-1)# tunnel mode ipsec ipv4                             
 device(config-tnif-1)# vrf forwarding red