Study guide

2.4 IRB Configuration and Packet Walk

JNCIS-ENT Enterprise Routing and Switching Study Guide 2026 Exam

Track your progress as you read

Finished sections get a check mark.

1 Chapter 1: Exam Overview & Junos Enterprise Fundamentals

1.1 JNCIS-ENT Exam Logistics & Blueprint Breakdown 1.2 Junos CLI, Enterprise Platforms & Interface Families 1.3 Layer 2 Bridging Mechanics & Packet Forwarding

2 Chapter 2: VLANs & Inter-VLAN Routing

2.1 VLAN Segmentation and 802.1Q Tags 2.2 Access, Trunk, Native and Voice VLANs 2.3 IRB Architecture and Interface Families 2.4 IRB Configuration and Packet Walk 2.5 VLAN Configuration, Verification & Troubleshooting

3 Chapter 3: Spanning Tree Protocols

3.1 Layer 2 Loops and Root Bridge Election 3.2 STP Costs, Port Roles, States and BPDUs 3.3 RSTP Rapid Convergence & Link Types 3.4 MSTP Architecture & Spanning Tree Operations

4 Chapter 4: Layer 2 Security & Feature Protection

4.1 Edge BPDU and Root Protection 4.2 Loop Protection and Diagnostic States 4.3 Port Security, MAC Limiting & Persistent MAC Learning 4.4 DHCP Snooping, Dynamic ARP Inspection (DAI) & IP Source Guard 4.5 Layer 2 Firewall Filters: Types, Order and Actions

5 Chapter 5: Advanced Layer 2 Features & Storm Control

5.1 Storm Control & Broadcast/Multicast Suppression 5.2 MACsec Link Security and Key Agreement 5.3 LLDP and LLDP-MED Operations & Verification

6 Chapter 6: Protocol-Independent Routing & Load Balancing

6.1 Static, Aggregate, and Generated Routes 6.2 Routing Instances and RIB Groups 6.3 Junos Load Balancing & Filter-Based Forwarding (FBF) 6.4 Martian Routes and Route Acceptance

7 Chapter 7: Junos Routing Policy & Firewall Filters

7.1 Routing Policy Framework & Term Evaluation 7.2 Prefix Lists & Route Filters 7.3 Firewall Filters & Policers

8 Chapter 8: Open Shortest Path First (OSPF) Operation

8.1 OSPF Architecture & Neighbor Adjacency Formation 8.2 OSPF Areas & LSA Types 8.3 OSPFv2 & OSPFv3 Configuration and Verification

9 Chapter 9: Advanced OSPF Features & Routing Policies

9.1 OSPF Special Area Types 9.2 Route Summarization & OSPF Authentication 9.3 OSPF Diagnostics & Common Failure Scenarios

10 Chapter 10: Intermediate System to Intermediate System (IS-IS)

10.1 IS-IS Encapsulation and NET Identity 10.2 IS-IS Levels, Areas and Default Routing 10.3 IS-IS PDU Families and Neighbor Exchange 10.4 IS-IS Database Synchronization and DIS 10.5 IS-IS Configuration, Metrics & Troubleshooting

11 Chapter 11: Border Gateway Protocol (BGP)

11.1 BGP Roles, AS Numbers and TCP Transport 11.2 EBGP/IBGP Sessions, State Machine and Messages 11.3 BGP Attributes & Junos Path Selection Algorithm 11.4 BGP Configuration & Policy Implementation 11.5 BGP Scaling with Route Reflection & Diagnostics

12 Chapter 12: IP Tunneling & High Availability

12.1 GRE & IP-IP Tunneling Architecture 12.2 Link Aggregation (LAG/LACP) & Redundant Trunk Groups (RTG) 12.3 Virtual Chassis Roles and Elections 12.4 Virtual Chassis Links, Splits and Provisioning 12.5 Routing Engine Redundancy: GRES, NSR, NSB and GR 12.6 BFD Detection and VRRP Gateway Redundancy 12.7 Unified ISSU: Requirements and Verification

2.4 IRB Configuration and Packet Walk

Key Takeaways Explain This Topic AI

Configure the IRB address and explicitly bind the unit with the VLAN l3-interface statement.

IRB unit number and VLAN ID are independent identifiers even though matching them improves readability.

Routing decrements IPv4 TTL and rewrites Ethernet source/destination headers while preserving transit source/destination IPs.

Last updated: October 2026

Binding VLANs to IRB Interfaces: Step-by-Step Configuration

Configuring inter-VLAN routing on a Junos ELS switch involves three distinct configuration steps:

  • Step 1: Define the Layer 2 VLANs
  • Create the VLAN broadcast domains and assign their unique 802.1Q VLAN IDs: [edit]
  • user@EX4400# set vlans SALES vlan-id 10
  • user@EX4400# set vlans ENGINEERING vlan-id 20
  • Step 2: Configure the Layer 3 IRB Logical Units

Configure the logical units under interfaces irb , assigning the IPv4 default gateway address and subnet mask for each workgroup: [edit]

  • user@EX4400# set interfaces irb unit 10 description "Gateway for Sales (VLAN 10)"
  • user@EX4400# set interfaces irb unit 10 family inet address 192.168.10.1/24
  • user@EX4400# set interfaces irb unit 20 description "Gateway for Engineering (VLAN 20)"
  • user@EX4400# set interfaces irb unit 20 family inet address 192.168.20.1/24
  • Step 3: Bind the IRB Interfaces to Their Respective VLANs
  • Link the Layer 2 broadcast domain to its Layer 3 gateway using the l3-interface statement under vlans : [edit]
  • user@EX4400# set vlans SALES l3-interface irb.10
  • user@EX4400# set vlans ENGINEERING l3-interface irb.20

Critical Exam Rule : While Junos technically permits assigning arbitrary logical unit numbers (for instance, binding irb.1 to vlan-id 10 ), standard operational best practice requires matching the unit number directly to the VLAN ID ( irb.10 for VLAN 10). More importantly, if you omit the l3-interface irb.<unit> statement under vlans , the IRB interface remains completely disconnected from the broadcast domain . The switch will not listen for or reply to host ARP requests, and inter-VLAN routing will fail completely.

MTU and Addressing Considerations on IRB Interfaces

When routing between VLANs, network engineers must manage Maximum Transmission Unit (MTU) boundaries across Layer 2 and Layer 3 interfaces:

Physical MTU vs. Protocol MTU

Physical Layer 2 MTU : Configured under interfaces ge-0/0/0 mtu <bytes> . By default, standard Ethernet interfaces have an MTU of 1514 bytes (1500-byte IP payload + 14-byte Ethernet header). When 802.1Q tags are added, the frame expands to 1518 bytes. Junos automatically accounts for 802.1Q tag overhead on physical ports.

Protocol Layer 3 MTU : Configured under interfaces irb unit 10 family inet mtu <bytes> . This dictates the maximum IP packet size permitted without fragmentation. By default, family inet mtu is 1500 bytes.

Jumbo Frame Environments : In storage (iSCSI/NFS) or high-performance compute VLANs where jumbo frames are enabled, the physical interface MTU must be increased (e.g., set interfaces ge-0/0/0 mtu 9216 ). To allow unfragmented Layer 3 routing of jumbo packets, the IRB interface MTU must be scaled concurrently ( set interfaces irb unit 10 family inet mtu 9000 ). If the physical MTU is 9216 but the IRB MTU is left at 1500, the switch will fragment outgoing packets larger than 1500 bytes or drop them if the "Don't Fragment" (DF) bit is set.

Secondary IP Addresses on IRB Interfaces

An IRB interface can host multiple IP subnets concurrently using secondary addresses. This is invaluable when migrating an existing subnet or accommodating address exhaustion without provisioning a new VLAN: [edit interfaces irb unit 10 family inet]

  • user@EX4400# set address 192.168.10.1/24
  • user@EX4400# set address 10.10.10.1/24

Do not infer source-address selection from entry order. Junos provides explicit primary and preferred address options; otherwise default selection depends on the address set and destination. Configure these options deliberately during subnet migrations and verify locally sourced traffic.

The Inter-VLAN Packet Walk: Step-by-Step Anatomy

To master inter-VLAN routing for the JNCIS-ENT exam, trace the exact end-to-end packet journey between two hosts on different VLANs connected to a multilayer Junos switch:

Host A : IP 192.168.10.50 , MAC AA:AA:AA:11:11:11 , Default Gateway 192.168.10.1 (VLAN 10, Port ge-0/0/1 ).

Switch IRB Gateway : MAC 00:05:86:71:00:01 (assigned to both irb.10 and irb.20 ).

Host B : IP 192.168.20.75 , MAC B8:BB:BB:22:22:22 , Default Gateway 192.168.20.1 (VLAN 20, Port ge-0/0/2 ).

Step-by-Step Forwarding Breakdown

Subnet Comparison : Host A intends to transmit an IP packet to Host B ( 192.168.20.75 ). Host A applies its local subnet mask ( 255.255.255.0 ) to both its own IP and Host B's IP. Recognizing that Host B resides on a different network, Host A determines it must send the packet to its default gateway ( 192.168.10.1 ).

Gateway ARP Resolution : Host A inspects its local ARP cache for 192.168.10.1 . If no entry exists, Host A broadcasts an ARP Request into VLAN 10: "Who has 192.168.10.1? Tell 192.168.10.50."

Switch ARP Reply : The switch receives the broadcast frame on ge-0/0/1 in VLAN 10. The irb.10 interface intercepts the ARP request and replies with its virtual MAC address: "192.168.10.1 is at 00:05:86:71:00:01."

Host A Frame Transmission : Host A encapsulates the IP packet into an Ethernet frame and transmits it out its NIC:

  • Source MAC : AA:AA:AA:11:11:11 (Host A)
  • Destination MAC : 00:05:86:71:00:01 (Switch IRB Gateway)
  • Source IP : 192.168.10.50 (Host A)
  • Destination IP : 192.168.20.75 (Host B)

Ingress Processing on Switch : Port ge-0/0/1 ingresses the frame and maps it to VLAN 10. The PFE inspects the Destination MAC address. Because the DMAC matches the switch's local IRB MAC address, the frame is not bridged at Layer 2. The PFE strips the Layer 2 header and passes the IP packet to the Layer 3 route engine in hardware.

FIB Route Lookup : The PFE queries the hardware forwarding table derived from the active routes in inet.0 . The destination IP 192.168.20.75 matches the directly connected route 192.168.20.0/24 , pointing out interface irb.20 .

TTL Decrement & Checksum Recalculation : The switch decrements the IPv4 Time-to-Live (TTL) field from 64 to 63. Because the IP header has changed, the switch recomputes the IPv4 Header Checksum. (If TTL reached 0, the packet would be dropped and an ICMP Time Exceeded message returned to Host A).

Egress ARP Resolution : The switch checks its ARP table for 192.168.20.75 on irb.20 . If unlearned, the switch generates an ARP Request out all member ports of VLAN 20. Host B replies, allowing the switch to populate its ARP table with B8:BB:BB:22:22:22 .

Layer 2 Header Rewrite : The switch encapsulates the IP packet into a completely new Layer 2 Ethernet header:

  • Source MAC : 00:05:86:71:00:01 (Switch IRB Gateway on egress VLAN)
  • Destination MAC : B8:BB:BB:22:22:22 (Host B MAC)
  • Source IP : 192.168.10.50 (Unchanged!)
  • Destination IP : 192.168.20.75 (Unchanged!)

Egress Transmission : The frame is forwarded out access port ge-0/0/2 toward Host B as standard untagged Ethernet. Host B receives the frame, verifies its own Destination MAC, and delivers the payload to its application layer.

Loading diagram... Inter-VLAN Packet Walk Sequence: Host A (VLAN 10) to Host B (VLAN 20)