Juniper CLI Basics

Start the CLI
% cli <- Equivalent to enable command of cisco devices.

Go to configuration mode
> configure

Set a new root password
# set system root-authentication plain-text-password
Note: Juniper always require local root authentication.

Save the new configuration
# commit

Exit to operational mode
# exit configuration-mode

Reload
> request system reboot

IOS vs Junos CLI modes
IOS has three main CLI mode
1. User
2. Exec mode
3. Configuration mode and its hierarchy (sub-config, interface, etc)

Junos has unix shell and two main CLI modes.
1. Operation mode
2. Configuration mode

Junos Shell
When logging into junos as root, you are placed in the unix shell.
– Denoted as user@host%
– ping cd ping trace netstat

Junos CLI operational mode
Used to monitor and troubleshoot device operation
– Denoted as user@host> (Equivalent to ISO user and execmode)

Common Operational Mode Command
– Show, clear, ping, traceroute (Read only commands)

Note: Amnesiac means no configuration.
login: root
password: defined pass
Core is unix shell

Junos CLI Configuration mode
Used to make changes to device configuration
– Denoted as user@host# (Equivalent in global config mode in IOS)

Contain hierarchy of all configuration
– System, Interface, protocols, etc.

Parser
[edit] – global config
[edit system]
[edit interface]

Common Configuration command
– show, edit, up, top, set, delete, copy, rename, commit, rollback

IOS Startup vs running config
IOS has 2 configration:
1. Start-up config – Backup of configuration in NVRAM
2. Running config – Active configuration in RAM

Junos Active vs Candidate configration
– Junos config structure is similar to IOS XR

Note: there is buildin error checks.

1. Commit database for rollback
2. You can use tab and space

Help System
> help apropos route
# help tip cli
# help reference ospf area
# help topic interfaces family

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s