Select Page

RVI & IRB Interfaces

CONFIGURATION

Routed VLAN interfaces (RVIs) | Integrated Routing and Bridging (IRB)

To configure the RVI:

  1. Create a Layer 2 VLAN by assigning it a name and a VLAN ID:
    [edit]
    [email protected]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:
    [edit]
    [email protected]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:
    [edit]
    [email protected]set interfaces vlan unit logical-unit-number family inet address inet-address
  4. Link the Layer 2 VLAN to the logical Layer 3 interface:
    [edit]
    [email protected]set vlans vlan-name l3-interface vlan.logical-interface-number

    NOTE: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:
    [edit]
    [email protected]set vlans vlan-name l3-interface vlan logical-interface-number l3-interface-ingress-counting
 

To configure the routed VLAN interface:

  1. Create the VLAN by assigning it a name and a VLAN ID:
    [edit]
    [email protected]set vlans support vlan-id 111
  2. Assign an interface to the VLAN by specifying the logical interface (with the unit statement) and specifying the VLAN name as the member:
    [edit]
    [email protected]set interfaces ge-0/0/18 unit 0 family ethernet-switching vlan members support
  3. Create the subnet for the VLAN’s broadcast domain:
    [edit]
    [email protected]set interfaces irb unit 111 family inet address 10.0.0.X/8

    Where the value of X can be any number between the range 1 to 254.

  4. Bind a Layer 3 interface with the VLAN:
    [edit]
    [email protected]set vlans support l3-interface irb.111
     

    NOTE

    If you are using a version of Junos OS that does not support ELS, you create a Layer 3 virtual interface named vlan

 

NOTE

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

You can display the configuration settings:

 
[email protected]show interfaces irb terse
 
Interface               Admin Link Proto    Local                 Remote
vlan                    up    up  
irb.111                up    up   inet     10.0.0.0/8

The Juniper All-Access | Reading List

Leave a reply

Your email address will not be published. Required fields are marked *

Share on print
Print
Share on google
Google+
Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

ADENTECH guides

We love to help.

Get our newsletter, join the community: