Study guide
1.3 Layer 2 Bridging Mechanics & Packet Forwarding
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
1.3 Layer 2 Bridging Mechanics & Packet Forwarding
Key Takeaways Explain This Topic AI
Layer 2 bridging in Junos OS executes five fundamental operations: Learning source MAC addresses, Forwarding known unicasts, Flooding unknown/broadcast/multicast traffic, Filtering unauthorized frames, and Aging dynamic entries.
The Packet Forwarding Engine learns source MAC addresses at hardware wire-speed, storing port and VLAN associations in the local Ethernet switching table with a default aging interval of 300 seconds.
Enhanced Layer 2 Software (ELS) modernizes Junos switching syntax to use interface-mode access/trunk and irb interfaces, replacing legacy non-ELS commands such as port-mode and vlan.0.
Operational verification relies on commands such as show ethernet-switching table, show ethernet-switching table detail, and clear ethernet-switching table to monitor and maintain Layer 2 forwarding states.
The packet forwarding pipeline systematically evaluates header parsing, Layer 2 MAC tables, Layer 2 firewall filters, storm control thresholds, Spanning Tree port states, and egress 802.1Q tag manipulations.
Last updated: October 2026
Layer 2 Bridging Mechanics & Packet Forwarding
Ethernet switching at Layer 2 establishes local connectivity across enterprise campus LANs. Within Junos OS, bridging operates directly in hardware inside the Packet Forwarding Engine (PFE). Understanding how frames are parsed, how the Ethernet switching table learns and ages MAC entries, and how the Junos CLI configures and monitors bridge domains is fundamental to the JNCIS-ENT curriculum.
1. The 5 Core Operations of Junos Layer 2 Bridging
When Ethernet frames traverse an EX Series switch or enterprise MX bridge domain, the PFE executes five distinct operations: +---------------------------------------------------------------------------------------------------+
- | THE FIVE CORE BRIDGING OPERATIONS |
- +-------------+-------------------------------------------------------------------------------------+
- | Operation | Functional Description |
- +-------------+-------------------------------------------------------------------------------------+
- | 1. Learning | PFE inspects Source MAC & Ingress VLAN. Updates Ethernet switching table in ASIC. |
- | 2. Forward | PFE matches Destination MAC in switching table; transmits out unique egress port. |
- | 3. Flooding | Unknown unicast, broadcast, or multicast frames are replicated to all ports in VLAN.|
- | 4. Filtering| Packets violating MAC limits, storm control, or firewall filters are dropped. |
- | 5. Aging | Inactive dynamic MAC entries expire after 300 seconds (default) to clear stale paths.|
- +-------------+-------------------------------------------------------------------------------------+
- 1. Learning
When an Ethernet frame arrives on a switchport, the PFE reads the frame header and extracts the Source MAC address and the Ingress VLAN ID . The PFE checks its hardware Ethernet switching table:
If the MAC address does not exist for that VLAN, the PFE creates a new dynamic entry binding the MAC address to the ingress physical port, logical unit, and VLAN ID, initializing an aging timer.
If the MAC address already exists on that port, the PFE resets the aging timer.
If the MAC address exists on a different port within the same VLAN, the PFE detects a station move, updates the entry to the new ingress port, resets the timer, and triggers internal logging if MAC move limits are configured.
2. Forwarding (Known Unicast)
The PFE extracts the frame's Destination MAC address . If the destination MAC is a known unicast address present in the Ethernet switching table for that VLAN, the PFE looks up the associated egress interface. The frame is placed into the egress port queue and transmitted exclusively out that single physical interface.
3. Flooding (Unknown Unicast, Broadcast & Multicast)
If the destination MAC address cannot be resolved to a specific egress port:
Unknown Unicast : If the destination MAC is not present in the Ethernet switching table, the PFE replicates the frame and floods it out all active interfaces participating in that VLAN, except the ingress port on which the frame arrived.
Broadcast ( FF:FF:FF:FF:FF:FF ) : The frame is flooded out all member ports of that VLAN (excluding the ingress port). If an irb interface is active on that VLAN, a copy is punted across the internal link to the Routing Engine for local protocol processing (e.g., ARP resolution).
Multicast (01:00:5E:xx:xx:xx for IPv4 / 33:33:xx:xx:xx for IPv6) : If IGMP snooping is disabled, multicast frames are flooded across the VLAN identical to broadcast frames. If IGMP snooping is enabled, the PFE constrains multicast delivery strictly to ports that have registered active IGMP membership reports or connected multicast routers (mrouter ports).
4. Filtering
Before transmitting or forwarding a frame, the PFE evaluates multiple Layer 2 policy and protection controls:
Spanning Tree Protocol State : If the egress port is in an STP Discarding or Blocking state, user data frames are dropped.
Port Security & MAC Limiting : If a port exceeds its configured maximum MAC address limit, newly arriving frames with unknown source MACs are dropped, and the interface may be placed into an error-disabled state.
Storm Control : If incoming broadcast, unknown unicast, or multicast traffic exceeds the configured bandwidth threshold (e.g., 80% or 10,000 pps), excess frames are dropped.
Layer 2 Firewall Filters : Custom packet filter terms applied under family ethernet-switching filter can match on MAC addresses, EtherTypes, or IP headers and apply supported actions such as accept , count , or discard ; Layer 2 action support differs from family inet .
5. Aging
Dynamic entries in the Ethernet switching table cannot remain indefinitely; otherwise, disconnected workstations or decommissioned servers would consume finite ASIC table capacity and cause blackholing. Junos applies a hardware countdown timer to every learned dynamic entry.
Default Aging Interval : 300 seconds (5 minutes) on EX Series switches.
Every time a frame arrives with a matching source MAC, the timer resets to 300 seconds.
If no frames arrive from that source MAC before the timer reaches 0, the PFE purges the entry.
2. Ethernet Switching Table Architecture & Tuning
The Ethernet switching table is maintained in high-speed hardware memory (TCAM or specialized hash tables) within the PFE, with a synchronized shadow table maintained in the Routing Engine's kernel memory.
Modifying the MAC Aging Timer
Network administrators can adjust ELS global aging under protocols l2-learning . The documented global range is 10 through 1,000,000 seconds ; zero is not an ELS global no-aging setting. [edit]
set protocols l2-learning global-mac-table-aging-time 600
Per-VLAN controls vary by platform. Check the supported hierarchy instead of copying a non-ELS mac-table-aging-time command into an ELS VLAN. Persistent learning or supported no-aging controls solve a different requirement from increasing the inactivity timer.
3. Enhanced Layer 2 Software (ELS) vs Legacy Non-ELS
A central theme on the JNCIS-ENT exam is distinguishing between modern Enhanced Layer 2 Software (ELS) and legacy non-ELS configuration syntax. ELS was introduced to standardize Layer 2 CLI terminology with Junos routing and carrier platforms.
ELS Platforms : EX2300, EX3400, EX4300, EX4400, EX4600, EX4650, QFX Series, and MX Series switches.
Legacy Non-ELS Platforms : EX2200, EX3200, EX3300, EX4200, and EX8200 switches.
Configuration Task Legacy Non-ELS CLI Syntax Modern ELS CLI Syntax
Port Access Mode set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode access set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode access
Port Trunk Mode set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk set interfaces ge-0/0/1 unit 0 family ethernet-switching interface-mode trunk
VLAN Membership set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members [ DATA VOIP ] set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members [ DATA VOIP ]
Native VLAN on Trunk set interfaces ge-0/0/1 unit 0 family ethernet-switching native-vlan-id 100 set interfaces ge-0/0/1 native-vlan-id 100 (applied at interface level)
Layer 3 VLAN Interface set interfaces vlan unit 10 family inet address 10.1.10.1/24 ; set vlans DATA l3-interface vlan.10 set interfaces irb unit 10 family inet address 10.1.10.1/24 ; set vlans DATA l3-interface irb.10
Layer 2 Protocol Tuning set ethernet-switching-options ... set protocols l2-learning ... and set vlans <vlan> switch-options ...
4. Verification and Diagnostic CLI Commands
Operating and troubleshooting Junos Layer 2 networks requires familiarity with operational commands that interrogate the PFE forwarding table.
show ethernet-switching table
Displays the active MAC addresses learned or statically configured on the device: user@EX4300> show ethernet-switching table
MAC flags (count):
- S - static MAC, D - dynamic MAC, L - locally learned, P - persistent MAC,
- DR - remote dynamic MAC, DC - do not clear, R - remote PE MAC, O - ovsdb MAC
- Routing Instance : default
- Vlan MAC MAC Logical Active
- name address flags interface source
- DATA 00:50:56:a1:b2:c3 D ge-0/0/10.0
- VOIP 00:04:f2:11:22:33 D ge-0/0/11.0
- MGMT 00:1c:73:99:88:77 S ge-0/0/47.0
- show ethernet-switching table detail
Provides granular diagnostic information for individual entries, including hit counts, precise remaining aging time, and learning domain: user@EX4300> show ethernet-switching table detail
- Routing Instance : default
- Vlan name : DATA, VLAN ID : 10
- MAC address : 00:50:56:a1:b2:c3
- Status : Active
- Logical interface : ge-0/0/10.0
- MAC type : Dynamic
- Age : 42 seconds
- Remaining aging time : 258 seconds
- Hit count : 1420
- show ethernet-switching table count
Displays total counts of learned MAC entries per VLAN and per routing instance. This command is an engineer's first line of defense when investigating MAC table exhaustion attacks or bridge loop broadcast storms.
Clearing MAC Table Entries
To manually purge stale entries or force re-learning during topology migrations, use the clear operational command:
clear ethernet-switching table : Flushes all dynamic MAC addresses across all VLANs and interfaces.
clear ethernet-switching table vlan DATA : Flushes dynamic MAC addresses strictly within the specified VLAN.
clear ethernet-switching table interface ge-0/0/10.0 : Purges entries learned on a specific logical interface.
Output note: Command output shown here is a schematic teaching example, not a captured device session. Field names and feature support depend on platform and Junos release.
Official references checked 2026-10-18: ELS aging controls .