Difference between revisions of "JunOS Basics"
| Line 40: | Line 40: | ||
root@switch> edit | root@switch> edit | ||
Entering configuration mode | Entering configuration mode | ||
| + | {master:0}[edit] | ||
| + | root@switch# | ||
| + | |||
| + | To setup the root password with a plain-text password the command it "set system root-authentication plain-text-password" Type the command and hit enter. You will be asked to enter a password twice. | ||
| + | |||
| + | root@switch# set system root-authentication plain-text-password | ||
| + | New password: | ||
| + | Retype new password: | ||
{master:0}[edit] | {master:0}[edit] | ||
root@switch# | root@switch# | ||
=How to change the device name= | =How to change the device name= | ||
Revision as of 20:05, 28 August 2018
In this Tutorial We will be discussing about the basic of the JunOS which will include:
- How to setup the root password
- How to change the device name
- How to create a user with admin right using a password and using a SSH key
- How to setup the management interface to ssh in to the switch
- How to create VLAN's
- How to create access and trunk ports
- How to create interfaces range
- How to connect 2 switches
Prerequisites
To complete this tutorial, you will need:
- A laptop running Linux or MacOS. for this tutorial I will be using a laptop running Ubuntu 16
- A console cable. Since all the new laptops today don't come with a USB port, you will need a USB to Console adapter
- The program "Screen"
If you don't have "screen" install it with the command below
sudo apt-get install screen
Accessing the device
- Step 1: Plug the console cable to you device into the console port and start screen as root user on your laptop
screen /dev/ttyUSB0
- step 2: Power on your device
After the device finished booting you will get at the prompt below
- Step 3: Enter the username and password
By default, all Juniper devices username is "root" with no password. At the prompt, just type in root and hit enter
How to setup the root password
When you come from a CISCO world like me, at the beginning it is a little bit confusing when working with JunOS. But, with time running a couple of commands, you get use to the concept.
For us to setup the root password, we need to be in configuration mode (#). Right now our prompt is showing "%". tyoe in
cli
to and the prompt will change to ">" which is the operational mode and after that type in "edit" or "configuration" to enter the configuration mode
root@switch:RE:0% cli
{master:0}
root@switch> edit
Entering configuration mode
{master:0}[edit]
root@switch#
To setup the root password with a plain-text password the command it "set system root-authentication plain-text-password" Type the command and hit enter. You will be asked to enter a password twice.
root@switch# set system root-authentication plain-text-password
New password:
Retype new password:
{master:0}[edit]
root@switch#

