Junos software is based on FreeBSD Unix operating system. The command line interface of Junos operating system is very unique. It is hierarchy based and is very easy to use. The CLI of Junos contains two different modes; operational and configuration. Understanding Junos CLI basics is important step in learning Junos OS.
Junos CLI Basics
After you are logged into the device successfully, you will see “>” greater than symbol. This symbol signifies operational mode. The default prompt of Junos operating system is user@hostname>. If you are logged in with a root user account to a Juniper device with hostname mustbegeek then your prompt will be root@mustbegeek>. In operational mode you can do basic things like health check, ping, traceroute, view various settings and logs, monitor and so on. Commands available in operational mode are :-
Some examples of operational mode are :-
root@mustbegeek> show system users – Shows logged in users.root@mustbegeek> show interfaces terse – Shows Interface information in brief.
The configure command is typed in operational mode to get in configuration mode. The command looks like this,
root@mustbegeek> configureroot@mustbegeek# [configurational mode]
The pound symbol (#) signifies configuration mode. This mode gives you power to configure the device. If you are configuring the device then you will spend most of your time in this mode. Then run command is used in configuration mode to run operational mode commands. For example,
user@mustbegeek# run show interfaces terse [Shows interfaces brief]
In this mode you can set IP address, host name, routing protocols and so on. This is where you configure the device’s parameters to actually get it working. The edit command is used to navigate down the hierarchy and up command is used to navigate up the hierarchy. For example,
user@mustbegeek# edit protocols ospf [gets you to protocols ospf hierarchy][edit protocols ospf] user@mustbegeek# up [moves up by one step to protocols] [edit protocols] user@mustbegeek#
There are different types of configuration modes: –
- Shared Mode :- This is default configuration mode. When you type just configure in operational mode to get into configuration mode then shared mode is used. The configuration is shared with other users in this mode. To use this configuration mode simply type, root@mustbegeek> configure
- Exclusive Access :- In this mode only you can edit the configuration, other users can’t. To get in this mode simply type root@mustbegeek> configure exclusive
- Private Configuration :- In this mode each user have their own copy of configuration. The users can privately configure their own configuration and commit.
After making any changes don’t forget to commit the changes. For more information log on to Juniper.net
You may also like -
Latest posts by Bipin (see all)
- Why Backup your Microsoft Office 365 - November 27, 2020
- What’s New in VMware vSphere 7 - September 18, 2020
- Steps to Configure IP Address and Hostname in vSphere ESXi 7 - September 1, 2020