Supported Platforms
Related Documentation
- QFabric System, QFX Series standalone switches
- Example: Configuring Routing Between VLANs on One Switch
Understanding Integrated Routing and Bridging
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 an integrated routing and bridging (IRB) interface. (These interfaces are also called routed VLAN interfaces, or RVIs). Using this approach reduces complexity and avoids the costs associated with purchasing, installing, managing, powering, and cooling another device.
An IRB 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 IRB 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 IRB 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 IRB:
Table 1: Sample IRB Values
Property | Settings |
---|---|
VLAN names and tags (IDs) | blue, ID 100 |
Subnets associated with VLANs | blue: 192.0.2.0/25 (addresses 192.0.2.1 through 192.0.2.126) |
IRB name | interface irb |
IRB 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 IRB 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 IRB to the appropriate VLANs, you use the l3-interface statement.
Because IRBs operate at Layer 3, you can use Layer 3 services such as firewall filters or CoS rewriting with them.
Table 2 shows the number of IRBs/RVIs that each QFX platform supports.
Table 2: Number of Supported IRBs/RVIs by Platform
Platform | Number of Supported IRBs/RVIs |
QFX3500 | 1200 |
QFX3000-G | 1024 |
QFX3000-M | 1024 |
Related Documentation
- QFabric System, QFX Series standalone switches
- Example: Configuring Routing Between VLANs on One Switch
Published: 2014-10-07
Supported Platforms
Related Documentation
- QFabric System, QFX Series standalone switches
- Example: Configuring Routing Between VLANs on One Switch