Network Devices

Juniper Devices Explained

Juniper Networks builds routers, switches and firewalls that all run one operating system, Junos, so learning it once carries across every product line. This guide covers what Junos is, the main Juniper product families, how its commit model works, and the steps for a first setup.

What Junos is

Junos is the network operating system on Juniper routers, switches and firewalls. It is built on FreeBSD, and the same CLI and configuration syntax apply whether the device is a small branch firewall or a core router.

The CLI has two modes, shown by the prompt:

Configuration is a hierarchy (system, interfaces, protocols, and so on). You can edit it with set commands, or by moving into a hierarchy with edit and working there.

Main Juniper product families

Juniper’s hardware falls into three groups: routers, switches and firewalls. Each group has several families aimed at a different place in the network.

FamilyTypeTypical use
MXRouterService provider edge, WAN
PTXRouterCore and backbone, high speed
ACXRouterAccess and aggregation
EXSwitchCampus and office LAN
QFXSwitchData centre
SRXFirewallSecurity, NAT, VPN

A rough rule for choosing: EX for an office, QFX for a server room, SRX where traffic meets the internet, and MX, PTX or ACX once you are building a WAN or provider network.

The commit model

Junos does not apply a change the moment you type it. Edits go into a candidate configuration, and nothing affects traffic until you commit. This is the feature most engineers come to like first, because a mistake can be reviewed and undone before it goes live.

  1. configure enters configuration mode.
  2. set … changes the candidate configuration.
  3. show | compare shows the difference between the candidate and the running configuration.
  4. commit check validates the candidate without applying it.
  5. commit makes it live.

If a committed change turns out wrong, rollback 1 loads the previous configuration into the candidate; run commit again to apply it. Junos keeps several earlier versions, so rollback 2 and higher go further back.

On a remote device, commit confirmed 5 is a useful safety net. It rolls the change back automatically after 5 minutes unless you commit again, which saves you if a change cuts off your own connection.

First setup

A new or factory-reset device needs a few settings before you can manage it over the network. Connect to the console port, log in as root (no password on a factory-default device), start the CLI with cli, then work through these steps. Details such as the management interface name differ by model, so check the hardware guide for yours.

  1. Enter configuration mode:

user@J1> configure

user@J1# set system root-authentication plain-text-password

user@J1# set system host-name J1

user@J1# set interfaces fxp0 unit 0 family inet address 192.0.2.10/24

user@J1# set system services ssh

user@J1# show | compare
user@J1# commit check
user@J1# commit
commit complete

After the commit, the hostname appears in the prompt and you can reach the device over SSH at the management address.

Handy commands and next steps

CommandWhat it does
show configurationDisplay the running configuration
show interfaces terseList interfaces with status and addresses
show routeDisplay the routing table
show system commitList recent commits
show | compare rollback 1Compare the candidate against the previous commit
run show …Run an operational command from configuration mode
?List the options available at the current point

From here, the natural next steps are to configure interfaces and VLANs on an EX or QFX switch, or security zones and policies on an SRX firewall. Juniper’s own documentation for your model is the authority on hardware-specific details.

Leave a Reply

Your email address will not be published. Required fields are marked *