Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    ip vrf forwarding

    Syntax

    [ no ] ip vrf forwarding vrfName [ fallback global ]

    Release Information

    Command introduced before JunosE Release 7.1.0.

    Description

    Assigns a VRF to an interface or subinterface. Optionally specifies secondary routing table lookup on the parent (global) virtual router forwarding table if a lookup on the initial VRF forwarding table does not yield any results. The no version removes the assignment or discontinues the secondary routing table lookup option.

    Note: The ip vrf forwarding command changes the prompt to indicate that the CLI is now in Interface or Subinterface Configuration mode within the child VRF. This condition persists only for as long as you are configuring attributes on the given interface within the VRF. Entering a top-level command, such as interface, within this VRF context takes the CLI out of the VRF context back to the parent VR context.

    When you issue the ip vrf forwarding command from within the Interface Configuration or Subinterface Configuration mode of the parent VR, the IP address and other attributes of the interface are deleted from the interface. You must then reconfigure the IP attributes in the context of the VRF after issuing the command.

    Options

    • vrfName—Name of the VRF; a string of 1–32 alphanumeric characters
    • fallback global—Specifies secondary routing table lookup on the parent (global) virtual router forwarding table, if an initial VRF forwarding table lookup does not yield results.

    Mode

    Interface Configuration, Subinterface Configuration

    Published: 2014-08-14