Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configuring Routed VLAN Interfaces on Switches (CLI Procedure)


Routed VLAN interfaces (RVIs) allow the switch to recognize packets that are being sent to local addresses so that they are bridged (switched) whenever possible and are routed only when necessary. Whenever packets can be switched instead of routed, several layers of processing are eliminated.

An interface named vlan functions as a logical router on which you can configure a Layer 3 logical interface for each virtual LAN (VLAN). For redundancy, you can combine an RVI with implementations of the Virtual Router Redundancy Protocol (VRRP) in both bridging and virtual private LAN service (VPLS) environments.

Jumbo frames of up to 9216 bytes are supported on an RVI. To route jumbo data packets on the RVI, you must configure the jumbo MTU size on the member physical interfaces of the VLAN that you have associated with the RVI, as well as on the RVI itself (the interface named vlan).


Setting or deleting the jumbo MTU size on the RVI (the interface named vlan) while the switch is transmitting packets might result in dropped packets.

To configure the RVI:

  1. Create a Layer 2 VLAN by assigning it a name and a VLAN ID:

    user@switch# set vlans vlan-name vlan-id vlan-id
  2. Assign an interface to the VLAN by naming the VLAN as a trunk member on the logical interface, thereby making the interface part of the VLAN’s broadcast domain:

    user@switch# set interfaces interface-name unit logical-unit-number family ethernet-switching vlan members vlan-name
  3. Create a logical Layer 3 RVI (its name will be vlan.logical-interface-number, where the value for logical-interface-number is the value you supplied for vlan-id in Step 1; in the following command, it is the logical-unit-number) on a subnet for the VLAN’s broadcast domain:

    user@switch# set interfaces vlan unit logical-unit-number family inet address inet-address
  4. Link the Layer 2 VLAN to the logical Layer 3 interface:

    user@switch# set vlans vlan-name l3-interface vlan.logical-interface-number

    Layer 3 interfaces on trunk ports allow the interface to transfer traffic between multiple Layer 2 VLANs. Within a VLAN, traffic is switched, while across VLANs, traffic is routed.

  5. (Optional) On an EX8200 switch, enable an input counter for tracking or billing purposes:

    user@switch# set vlans vlan-name l3-interface vlan logical-interface-number l3-interface-ingress-counting

The input counter is maintained by a firewall filter—these counters are allocated on a first-come, first-served basis.