Junos EX VLAN and MAC learning investigation cheat sheet
Trace an access VLAN and learned MAC addresses on a Juniper EX switch using read-only operational commands.
Junos OS on EX switches; output and available syntax depend on platform, release and switching configuration.
Updated · Juniper · 6 min read
| Command | What it does |
|---|---|
show version | Identify the platform and release |
show interfaces terse | Check physical and logical interface state |
show vlans | Inspect operational VLAN membership |
show ethernet-switching interfaces | Inspect Ethernet switching interfaces |
show ethernet-switching table | Inspect learned Ethernet addresses |
Walkthrough
Run in operational mode with authorized read access. Inspect the relevant interfaces and VLANs without clearing the forwarding table or changing configuration.
Step 1: Identify the platform and release
show version
Record the switch model and Junos version before comparing output with documentation. EX platform features and output can differ between releases.
Step 2: Check physical and logical interface state
show interfaces terse
Find the affected interface and inspect administrative and operational state. An up interface confirms link state only; it does not establish VLAN membership or end-to-end reachability.
Step 3: Inspect operational VLAN membership
show vlans
Find the intended VLAN and compare listed interfaces with the approved design. Tagged uplinks and untagged access ports must be interpreted in the context of the switch configuration.
Step 4: Inspect Ethernet switching interfaces
show ethernet-switching interfaces
Compare the affected interface and uplink switching information with the expected forwarding domain. Interpret fields according to the installed Junos release and interface configuration.
Step 5: Inspect learned Ethernet addresses
show ethernet-switching table
Look for the endpoint MAC and VLAN in the forwarding table and record its learned interface. An absent entry may reflect aging or lack of recent traffic, rather than a definite configuration fault.
WORKED INCIDENT
Practical case: An endpoint cannot reach its gateway
Fictional teaching scenario; observations are examples, not captured production output.
Situation
A workstation is connected to an EX access switch but cannot reach its expected gateway.
Investigation sequence
1. Identify the platform and release
show versionConfirm the device model and installed Junos release before using platform guidance.
2. Check physical and logical interface state
show interfaces terseCheck the affected access interface and the upstream interface operational state.
3. Inspect operational VLAN membership
show vlansCompare observed VLAN membership with the documented access and uplink design.
4. Inspect Ethernet switching interfaces
show ethernet-switching interfacesReview switching interface information for the access port and uplink.
5. Inspect learned Ethernet addresses
show ethernet-switching tableFind the endpoint MAC after authorized test traffic and compare its learned VLAN and port.
Example findings
Illustrative findings: the workstation MAC is learned on the expected port in a VLAN that differs from the approved access design.
Interpret the findings
The observed VLAN mismatch is a specific configuration lead in this example. The forwarding table is dynamic and must be interpreted with recent traffic and the correct VLAN.
Verify the outcome
After the switch owner applies the approved correction, repeat the read-only checks and test connectivity through the expected gateway.
Escalation handoff
Provide the switch model, interface, expected and observed VLAN and sanitized MAC-table evidence to the network owner.
Primary references
Documented reference; examples above are teaching scenarios. Confirm behavior against your deployed version.