ip vrf forwarding

This command associates an interface with a given vrf.

Syntax

ip vrf forwarding <string>
no ip vrf forwarding

Command

Description

string

Defines the VRF name.

Default

Interface is not associated with vrf.

Note

■ This command is supported on all MSBR devices.
■ The maximum number of interfaces per vrf is 20.
■ The following interfaces are supported:
● GigabitEthernet
● cellular
● gre
● ipip
● atm
● pppoe
● multilink
● vlan

Command Mode

Privileged User

Related Commands

ip vrf, show ip vrf

Example

This example associate interface VLAN 4 with vrf data:

# configure data
(config-data)# interface vlan 4
(conf-if-VLAN 4)# ip vrf forwarding data