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:
wiley@netnik>
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:
wiley@netnik#

✓ 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.

eg1:

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

 eg2:

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. :

user@router# 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

[edit]

user@router#edit protocols ospf area 51 stub

[edit protocols ospf area 0.0.0.51 stub]

user@router#

  • up:move one or more levels up

[edit protocols ospf area 0.0.0.51 stub

user@router#up

[edit protocols ospf area 0.0.0.51]

user@router#up 2

[edit protocols]

user@router#

  • top: move to the top

[edit protocols ospf area 0.0.0.51] user@router#top
[edit] user@router#

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 0.0.0.51] user@router#top edit system login
[edit system login] user@router#top show system services
ftp;
ssh;

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

[edit protocols ospf] user@router#edit area 51
[edit protocols ospf area 0.0.0.51] user@router#exit
[edit protocols ospf] user@router#