ip vrf forwarding

This command associates an interface with a VRFClosed Virtual Routing and Forwarding.

Use the no parameter with this command to unbind an interface.

 

When you give this command in interface configuration or subinterface configuration mode of the parent VR, the IP address and other attributes of the interface are deleted from the interface. After giving this command, the IP attributes must then be configured in the context of the VRF.
The Out Of Band (OOB) management port is part of the “management” VRF. Also, this port cannot be moved out of “management” VRF.

Command Syntax

Copy
ip vrf forwarding WORD
no ip vrf forwarding WORD

Parameters

WORD

Name of the VRF.

Default

None

Command Mode

Interface mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

Copy
#configure terminal
(config)#ip vrf myVRF
(config-vrf)#exit
(config)#interface eth1
(config-if)#ip vrf forwarding myVRF