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

    Understanding Routed VLAN Interfaces

    To segment traffic on a LAN into separate broadcast domains, you create separate virtual LANs (VLANs). VLANs limit the amount of traffic flowing across the entire LAN, reducing the possible number of collisions and packet retransmissions within the LAN. For example, you might want to create a VLAN that includes the employees in a department and the resources that they use often, such as printers, servers, and so on.

    Of course, you also want to allow these employees to communicate with people and resources in other VLANs. To forward packets between VLANs, you normally you need a router that connects the VLANs. However, you can accomplish this forwarding on a switch without using a router by configuring a routed VLAN interface (RVI). Using this approach reduces complexity and avoids the costs associated with purchasing, installing, managing, powering, and cooling another device.

    An RVI is a special type of Layer 3 virtual interface named vlan. Like normal Layer 3 interfaces, the vlan interface needs a logical unit number with an IP address. In fact, to be useful an RVI needs at least two logical units and two IP addresses—you must create units with addresses in each of the subnets associated with the VLANs between which you want traffic to be routed. That is, if you have two VLANs (for example, VLAN red and VLAN blue) with corresponding subnets, your RVI must have a logical unit with an address in the subnet for red and a logical unit with an address in the subnet for blue. The switch automatically creates direct routes to these subnets and uses these routes to forward traffic between VLANs.

    Note: If you are using a version of Junos OS that supports Enhanced Layer 2 Software (ELS), you can also create a Layer 3 virtual interface named irb instead of vlan—that is, both statements are supported by ELS

    Table 1 shows values you might use when configuring an RVI:

    Table 1: Sample RVI Values

    PropertySettings

    VLAN names and tags (IDs)

    blue, ID 100
    red, ID 200

    Subnets associated with VLANs

    blue: 192.0.2.0/25 (addresses 192.0.2.1 through 192.0.2.126)
    red: 192.0.2.128/25 (addresses 192.0.2.129 through 192.0.2.254)

    RVI name

    interface vlan

    RVI units and addresses

    logical unit 100: 192.0.2.1/25

    logical unit 200: 192.0.2.129/25

    For the sake of consistency and to avoid confusion, Table 1 shows RVI logical unit numbers that match the IDs of the corresponding VLANs. However, you do not have to assign logical unit numbers that match the VLAN IDs—you can use any values for the units. To bind the logical units of the RVI to the appropriate VLANs, you use the l3-interface statement.

    Because RVIs operate at Layer 3, you can use Layer 3 services such as firewall filters or CoS rewriting with them. RVIs are similar to integrated routing and bridging (IRB) interfaces supported on Juniper routers and switch virtual interfaces (SVIs) and bridge-group virtual interfaces (BVIs) supported on other vendors’ devices.

    Table 2 shows the number of RVIs that each QFX platform supports.

    Table 2: Number of Supported RVIs by Platform

    PlatformNumber of Supported RVIs

    QFX3500

    1200

    QFX3000-G

    1024

    QFX3000-M

    1024

    Published: 2014-03-18