Junos Platforms, Architecture and First Boot
How Junos is built (Routing Engine, Packet Forwarding Engine, one OS), the EX, SRX, MX, QFX and PTX product families, virtual lab options, console access, the first login, and getting a new device to a safe, reachable state.
1. What Junos is
Junos OS is Juniper’s network operating system. It is based on FreeBSD (newer platforms also offer Junos OS Evolved, which is built on Linux). Three design decisions explain most of what makes it feel different:
- One operating system, one release train across routers, switches and firewalls, so the CLI and concepts you learn on an EX switch carry over to an MX router and an SRX firewall.
- Separation of the control plane and the forwarding plane. One part of the device decides where traffic should go; another forwards it fast.
- A transactional configuration model. You edit a candidate configuration, check it, commit it, and can roll back to a previous version.
2. The control plane and the forwarding plane
| Routing Engine (RE) | Packet Forwarding Engine (PFE) | |
|---|---|---|
| Plane | Control and management | Forwarding (data) |
| Does | Runs routing protocols, builds the routing table, runs the CLI, SSH and SNMP | Forwards transit packets using the forwarding table, applies filters and policers in hardware |
| Hardware | A small CPU and memory (on a chassis, one or two RE modules) | ASICs on line cards, or a forwarding complex on fixed devices |
| If it fails | Routing stops updating, but forwarding continues using the last table | Forwarding for that card stops |
Why you care:
- Traffic to the device itself (SSH, BGP, ping to the router) goes to the RE and must be protected (the firewall filters lesson shows how).
- Transit traffic stays in the PFE. A busy RE does not slow transit packets.
- Two REs in a chassis give redundancy: one master, one backup, with graceful switchover.
3. The product families
| Family | What it is | Typical role |
|---|---|---|
| EX | Ethernet switches | Campus access, aggregation and branch switching |
| QFX | Data centre switches | Leaf and spine fabrics (EVPN-VXLAN) |
| SRX | Firewalls and security gateways, also routing | Branch edge, data centre firewall, VPN |
| MX | Multiservice routers | WAN edge, service provider edge, BNG |
| PTX | High-capacity core routers | Backbone and core |
| ACX | Access and metro routers | Mobile backhaul, aggregation |
| Mist | Cloud-managed wired, wireless and WAN | Cloud operations (a different management model) |
Models are named by family and number, so EX4300, SRX320, MX204, QFX5120 and PTX10001 tell you the platform at a glance. The Junos configuration syntax is largely the same across them; the differences are in features: switching syntax on EX, security policies on SRX, scale and services on MX.
Lab options
You do not need hardware:
- vJunos-switch and vJunos-router: free virtual images for labs (check the current download and licence terms on Juniper’s site).
- vSRX: a virtual firewall, with a trial licence.
- Containerlab, EVE-NG, GNS3 or Juniper’s own lab tools to wire them together.
- A second-hand EX or SRX is a good investment for learners who want real hardware and console practice.
4. Getting in: console, management port, SSH
A brand-new device has no network configuration, so the first connection is a serial console (see the out-of-band lesson in the Remote Access course for cable and PuTTY settings; Juniper consoles typically use 9600 8N1).
You can also reach it through the management interface: a dedicated out-of-band Ethernet port whose name depends on the platform: fxp0 on MX and SRX (and many routers), me0 or vme on EX switches, em0 on some virtual images. It sits in its own routing instance, not in the production network.
First login on a factory-default device:
login: root
--- JUNOS 23.4R2 built 2024-...
root@% cli
root>
The shell prompt % is a FreeBSD shell. Typing cli starts the Junos CLI, with the operational prompt >. Run configure to enter configuration mode, where the prompt becomes #.
5. The first safe configuration
A new device will not commit until a root password exists. Enter configuration mode and set the basics:
root> configure
Entering configuration mode
[edit]
root# set system host-name LAB-EX1
root# set system root-authentication plain-text-password
New password: ********
Retype new password: ********
root# set system services ssh root-login deny
root# set system services ssh
root# set system login user ayo class super-user authentication plain-text-password
root# show | compare
root# commit check
configuration check succeeds
root# commit and-quit
commit complete
Exiting configuration mode
plain-text-password prompts you for the password and stores only a hash in the configuration. Never type a password in the command itself, because it would stay in your shell history and terminal log.
After this the device accepts SSH logins for ayo and refuses direct root SSH. You will build the full management setup in the system configuration lesson.
Useful commands even before you configure anything:
show version # model, Junos release
show chassis hardware # serial numbers, modules, line cards
show system uptime
show system alarms # active system alarms
show chassis alarms
show interfaces terse # all interfaces and their status
6. Hands-on lab: the first minutes
Lab: first boot of a lab EX switch
You are on the console of a new EX switch in a lab. Check what you have, then give it a name and a safe SSH policy and commit.
Objectives
- Find the model and the Junos release.
- List the hardware and serial numbers.
- Enter configuration mode.
- Name the device.
- Enable SSH but refuse direct root logins.
- Review exactly what will change before committing.
- Validate the candidate without applying it.
- Commit and return to operational mode.
7. Hands-on lab: read a model number and an interface name
You will see these everywhere. Write two helpers: one maps a model to its family, one decodes an interface name.
8. Common first-boot problems
| Symptom | Cause and fix |
|---|---|
commit fails: “root authentication must be set” |
Set a root password: set system root-authentication plain-text-password |
| No output at the console | Wrong baud (try 9600), wrong cable, or the device is still booting |
| Cannot SSH after commit | SSH service not enabled, interface has no address, or the management interface is in the mgmt_junos instance (reach it from the management network) |
% prompt instead of > |
You are in the FreeBSD shell. Type cli |
| Alarm “Rescue configuration is not set” | Informational: save one later with request system configuration rescue save |
| Device keeps trying to download a config | ZTP is running. Let it finish or disable by configuring and committing |
9. Key takeaways
- Junos is one operating system across EX, QFX, SRX, MX, PTX and ACX. The CLI and the commit model are the same everywhere.
- The Routing Engine is the control plane (protocols, CLI, management). The Packet Forwarding Engine forwards packets at line rate. Their separation lets forwarding continue while the control plane restarts.
- Traffic to the device goes to the RE and needs protection; transit traffic stays in the PFE.
- First login:
cli,configure, set a root password, a host name and a safe SSH policy,show | compare,commit check, thencommit. - Use vJunos or vSRX images or a used EX/SRX for practice, and always test first in a lab.
A colleague says 'the router is slow, so the Routing Engine must be the bottleneck for everyone's traffic'. What do you explain?
Transit traffic is forwarded by the Packet Forwarding Engine using its copy of the forwarding table, so a busy Routing Engine does not slow ordinary user traffic. A busy RE affects the things it does: routing protocol convergence, the CLI, SSH, SNMP and traffic addressed to the router. The way to check is to look at RE CPU (show chassis routing-engine) and PFE statistics separately and to find whether the problem is with transit or control traffic.
Can You Explain It?
Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.
- Explain the Routing Engine and the Packet Forwarding Engine in your own words and why Juniper separates them.
- Which family would you choose for a branch firewall, a campus access switch and a service-provider edge, and why?
- What are the first four things you configure on a brand-new device before leaving it?
🧪 Want to practise this on your own computer? See how to set up your lab →