Port Recovery

Juniper Switch Port auto-negotiation mismatch (speed / duplex): How to Fix

By Sai Kiran Pandrala · reviewed by Sai Kiran Pandrala, Editor Last verified: 2026-05-30

⚡ At a glance
VendorJuniper
Operating systemJunos OS
CategoryPort Recovery
Skill levelIntermediate to advanced
DIY-able?Yes with CLI access; some scenarios need JTAC + RMA.

What this guide covers

Resolve a Juniper switch port auto-negotiation mismatch (speed / duplex).

Cause + fix

One side auto, the other hard-coded → mismatch → duplex collisions. Set both to auto OR both hard-coded.

CLI / commands

show interfaces terse
show interfaces ge-0/0/0 extensive

# Apply the fix above, then bounce the port:
configure
# (interface shutdown / no shutdown, vendor-specific)
commit

Avoid recurrence

Frequently asked questions

Will this work on my specific Junos OS version?

The procedure reflects current Junos OS behaviour. Older releases may need minor syntax adjustments. use the CLI help (? or tab-completion) to verify.

Should I open a JTAC case immediately?

Open one if you suspect hardware failure or the symptom persists after a maintenance-window reload. Make sure your support entitlement is active first.

Where can I find the Juniper official documentation?

https://kb.juniper.net/, search the product family + feature name.

Is this procedure safe in production?

Test in a lab or maintenance window first. Capture pre-change state so you can roll back.

Related guides worth a look while you sort this one out:

References


Reference material, not professional advice. Validate against your specific Junos OS version and test in a non-production environment before applying.

Why this matters for your day-to-day

A Juniper device that's misbehaving costs more than the fix itself: lost productivity, missed calls, security risk, even safety risk in some categories. Treating the symptom quickly with a documented procedure is cheaper than letting it persist. The steps above are written to get you back to working in under an hour where possible, and to flag clearly when escalation is the right call.

Before you start

A few things to confirm so the Juniper device fix goes cleanly:

Verification checklist

After applying the fix on your Juniper device, confirm:

When to call Juniper support instead

Escalate if:

More frequently asked questions

How long does this fix usually take?

Most users complete the steps in 20-45 minutes the first time, and 5-10 minutes on subsequent runs once the menu paths are familiar.

Why is this happening on a brand-new unit?

Out-of-box defects do occur. If you've owned the device under 30 days and the symptom persists after a factory reset, escalate to the seller for replacement under DOA terms before opening a manufacturer support case.

What if my model isn't exactly the same revision?

Cross-check the model code on the rating plate against the manufacturer support page. Major firmware generations sometimes shift the menu path; the option is usually under a similarly-named section.

What if the fix returns after a reboot?

Persistent fault returns mean either: a hardware fault (escalate), a configuration that's being overwritten by a sync source (check cloud profiles), or a regression in a recent firmware update (rollback).

Are there safer alternatives for non-technical users?

Yes. the manufacturer's self-service troubleshooter (HP Smart, LG ThinQ, Samsung Members, similar) usually walks through the same steps in a guided UI. Use that first if you're not comfortable with menu paths.

Topology deep dive, Juniper EX access switch in a BFSI floor

The Juniper EX4300/EX3400 access fleet I run for an NBFC in Lower Parel terminates 1,200 user ports across 14 IDF rooms, each room hanging off a pair of EX4600 aggregation switches via dual-homed 10G LAGs. The switch port auto negotiation mismatch speed duplex symptom usually arrives as a desk-phone or a trading turret going silent. The trader does not know the port; the floor coordinator does not know the switch; the only data I have at minute zero is the LDAP login name and a desk number on a Lower Parel floor plan.

The piece that matters: Juniper does not use the Cisco "errdisable" name, but the behaviour is identical. EX switches will disable a port for BPDU on a non-trunk, for storm-control thresholds, for MAC-limit hits, or for loop-detection events. Each cause writes a distinct log line that you can grep before you ever touch a cable. The lazy fix is clear ethernet-switching port-error and pray; the engineer fix is to identify the cause, fix the cause, then clear.

Cost frame for the people scoping projects: EX4300-48P landed cost on a recent BSE-cleared GeM tender was INR 3.85L, JNP-NDC AMC is INR 48,000 per year per switch, and the 1.5-hour SmartNet ProactiveCare upgrade for the BSE colo cage came to INR 6.2L for 24 switches in one PO line.

Configuration walkthrough. link-layer negotiation on EX

Auto-negotiation on Juniper EX is more strict than on Cisco IOS. Forcing speed/duplex without forcing both ends causes silent degradation that does not log loudly:

# Inspect current state
show interfaces ge-0/0/24 media
show interfaces ge-0/0/24 extensive | match "Auto-negotiation|Speed|Duplex|Link-mode"

# Force gigabit full-duplex explicitly
configure
set interfaces ge-0/0/24 speed 1g
set interfaces ge-0/0/24 link-mode full-duplex
set interfaces ge-0/0/24 gigether-options no-auto-negotiation
commit confirmed 5

# If the partner re-negotiates, return to full auto
delete interfaces ge-0/0/24 speed
delete interfaces ge-0/0/24 link-mode
delete interfaces ge-0/0/24 gigether-options no-auto-negotiation
commit

# Counter check after 60 seconds
clear interfaces statistics ge-0/0/24
# wait 60s
show interfaces ge-0/0/24 extensive | match "errors"

The commit confirmed 5 is the safety net, if the change kills the port, the EX rolls back automatically in 5 minutes. I have used that exact line to save a remote BSNL branch site at 02:30 IST when I could not get back in over the management VRF after a config push.

Troubleshooting commands by platform

The switch port auto negotiation mismatch speed duplex fault rarely lives in just one layer. Run these in order, time-aligned, so the JTAC engineer can correlate them later:

SRX side (security platform)

show version invoke-on all-routing-engines
show chassis routing-engine
show chassis cluster status
show chassis cluster information
show security flow session summary
show security policies hit-count
show security log

EX/QFX side (access/distribution)

show virtual-chassis status
show virtual-chassis vc-port
show interfaces diagnostics optics ge-0/0/24
show ethernet-switching table
show spanning-tree interface
show lacp interfaces

MX side (core)

show route summary
show bgp summary
show isis adjacency
show mpls lsp
show pfe statistics traffic

Cross-vendor reality check: at BFSI scale, your Juniper is one of 6 vendors in the same path. Cisco N9K leaf-spines for the DC fabric, Palo Alto VM-series for the Internet edge, F5 BIG-IP for app load-balance, Arista for the trading fabric, and Juniper SRX/EX for the branch. If a packet drops, you need the same time-aligned capture from every device. I keep a capture-everything.sh wrapper on the bastion that fans out to every box over SSH and dumps the show output into one timestamped folder.

India compliance and deployment notes

The switch port auto negotiation mismatch speed duplex ticket does not exist in a vacuum: it sits inside the audit trail your regulator will ask for. In Indian BFSI deployments, three frameworks touch this gear:

Procurement angle: SRX340 and SRX380 are both on the MeitY common-list of approved network gear for government and PSU deployments. GeM tender pricing for the SRX340 base bundle ran INR 4.85L on the last refresh I ran for a Karnataka PSU; SRX380 base bundle was INR 7.2L. SmartNet 24x7x4 renewals run INR 85,000 to INR 1.2L per year for the 340, INR 1.4L to INR 1.8L per year for the 380. AMC outside SmartNet, via a local Tier-2 SI, lands at about 60 to 70 percent of SmartNet pricing but the response SLA degrades from 4 hours to next-business-day in practice.

For the BSNL/MTNL backhaul leg, the L2 handoff is usually GigE on copper from the BSNL Exchange to the colo demarc. Tata Communications, Reliance Jio, and Airtel give you fibre handoff at the colo entry. Mixing copper handoff with the SRX ge-0/0/x port works fine, but the SFP/SFP+ choice on the BSNL side has been the cause of 3 of the last 11 "link flap" tickets I have closed: and the BSNL NOC will not admit it until you show the captured optic diagnostics from the Juniper side, which is why show interfaces diagnostics optics matters so much.

Real-world deployment I did, auto-neg mismatch on a BSE colo cage

April 2026, BSE Wadala colo, post-RBI audit. We had refreshed the LAG between a pair of EX4600 distribution switches and the MX240 core. After the refresh, the LAG kept reporting one of four 10G members as degraded. never quite down, but never quite right either. The switch port auto negotiation mismatch speed duplex symptom was the giveaway: link reported 1G full-duplex on what should have been 10G full-duplex.

show interfaces xe-1/0/0 media confirmed: the SFP+ in the EX4600 was reporting 10GBASE-LR, but the MX240 side had been swapped to a 1G SFP during a rushed late-night replacement two weeks earlier and nobody had logged it. The fix was a physical SFP swap on the MX240 side back to 10G-LR. Total resolution time after I started: 18 minutes including the cage badge-in. Post-mortem deliverable: a runbook that mandates a photograph of every SFP slot before any optic replacement. Costs: zero hardware cost, INR 3,500 cage-access fee, my consulting hour at INR 6,500. Cheap.

Extended FAQs

Why does Juniper EX use "port-error" instead of "errdisable"?

Historical naming. The behaviour matches Cisco errdisable nearly one-for-one: a protection mechanism trips, the port goes down, and stays down until you clear it or a timer expires. Junos splits the causes into spanning-tree, MAC-limit, loop-detect, storm-control, and link-flap event categories. The switch port auto negotiation mismatch speed duplex log entry names the cause directly.

How do I auto-recover ports without manual intervention?

Set disable-timeout under each protection stanza. For bpdu-block: set protocols layer2-control bpdu-block disable-timeout 300. For loop-detect: set protocols loop-detect interface ... disable-timeout 300. 300 seconds is the value I push by default across BFSI access fleets, long enough to deter abuse, short enough to not strand a working user.

Does clearing the port erase the log entry?

No. Logs persist in /var/log/messages, in the RSI bundle, and in any external syslog destination. The clear command only re-enables the port. This matters for the audit trail: never delete the log before the auditor sees it.