Technical Documentation

Configuring Virtual Routing Instances (CLI Procedure)

Use virtual routing and forwarding (VRF) to divide an EX Series switch into multiple virtual routing instances. VRF allows you to isolate traffic traversing the network without using multiple devices to segment your network. VRF is supported on all Layer 3 interfaces.

Before you begin, make sure to set up your VLANs. See Configuring VLANs for EX Series Switches (CLI Procedure) or Configuring VLANs for EX Series Switches (J-Web Procedure).

To configure virtual routing instances:

  1. Create a routing instance:

    [edit routing-instances]
    user@switch# set routing-instance-name instance-type virtual-router

    Note: EX Series switches only support the virtual-router instance type.

  2. Bind each routing instance to the corresponding physical interfaces:

    [edit routing-instances]
    user@switch# set routing-instance-name interface interface-name.logical-unit-number
  3. Create the logical interfaces that are bound to the routing instance.
    • To create a logical interface with an IPv4 address:

      [edit interfaces]
      user@switch# set interface-name unit logical-unit-number family inet address ip-address
    • To create a logical interface with an IPv6 address:

      [edit interfaces]
      user@switch# set interface-name unit logical-unit-number family inet6 address ipv6–address

    Note: Do not create a logical interface using the family ethernet-switching option in this step. Binding an interface using the family ethernet-switching option to a routing instance can cause the interface to shutdown.

  4. Enable VLAN tagging on each physical interface that was bound to the routing instance:

    [edit interfaces]
    user@switch# set interface-name vlan-tagging

Published: 2010-01-13