Ways to connect the interfaces:

CLI: 1. Out-of-band(OoB) Serial console connection.

2. Over in band network using Access protocols. eg. Telnet, SSH.

3. Dedicated management ethernet port, varies between platforms.

J-Web Interface: Access by HTTP or HTTPS. It is installed and enabled by default in most of the platforms.

Command-line Essentials

If you are familiar with the Cisco CLI, you’ll find that many Junos CLI commands are the same. The only difference is that you don’t need to use the keyword IP.

Operational mode: A set of commands to manage and monitor device
operations. For example, you can monitor the status of the hardware
and software and perform maintenance tasks, such as upgrading soft-
ware or managing device files.

    In operational mode, the prompt is a > symbol:
[email protected]>
Configuration mode: A set of commands to set up the device and the
network. For example, you can configure user access, the system prop-
erties, and the device’s interfaces, protocols, and services.

   In configuration mode, the prompt is a # symbol:
[email protected]#

✓ Get help: Type a question mark(?), and don’t need to press Enter. The CLI lists the available commands and options.

  • Help topic :Displays usage guidelines for the statement.


  root# help topic rip timers ?
Possible completions:
<[Enter]>            Execute this command
|                    Pipe through a command


root# help topic rip ?
Possible completions:
any-sender           Accept RIP messages from senders on other subnets
authentication-type  RIP authentication
bfd-liveness-detection  Bidirectional forwarding detection for RIP
check-zero           Check reserved fields on incoming RIP packets
example              Sample RIP configuration
export               Policies for routes exported to RIP neighbors
graceful-restart     Graceful restart

in eg1 you can see the <[Enter]>, means that can be a complete command. eg2 there is no <[Enter]>, means that is an incomplete comman.

  •  Help reference: displays summary information for the referenced configuration statement.
  •  Help apropos: displays the contexts(typically set commands) that reference a specified variable. :

[email protected]# help apropos archive
set archive-sites
List of archive destinations
set archive-sites <url> password <password>
Password for login into the archive site

Navigate between levels of configuration hierarchy
  • Edit (like a CD command ):move to a specific position


[email protected]#edit protocols ospf area 51 stub

[edit protocols ospf area stub]

[email protected]#

  • up:move one or more levels up

[edit protocols ospf area stub]

[email protected]#up

[edit protocols ospf area]

[email protected]#up 2

[edit protocols]

[email protected]#

  • top: move to the top

[edit protocols ospf area]

[email protected]#top


[email protected]#

We can combine top with edit to move a different hierarchy or with show to display the details in the new hierarchy. eg:

[edit protocols ospf area]

[email protected]#top edit system login

[edit system login]

[email protected]#top show system services



  • Exit: Take me back to where I was before, or exits configuration mode if at the top of the hierarchy

[edit protocols ospf]

[email protected]#edit area 51

[edit protocols ospf area]

[email protected]#exit

[edit protocols ospf]

[email protected]#