Thursday, June 23, 2022

Juniper Workbook Day 1

We can use the edit command or configure command. I usually use edit. This is actually a hidden command and will not autocomplete.

To delete the config, we need to get into configuration mode (or edit mode)

root> edit

Entering configuration mode

[edit]

root#

We are in edit mode now.

[edit]

root# delete

This will delete the entire configuration

Delete everything under this level? [yes,no] (no) yes

[edit]

root#

Now we can commit that and figure out what is next.

[edit]

root# commit

error: cannot commit an empty configuration

Hmm, we cannot commit an empty config.

Guess we need to setup the root account and perhaps a user account so that we can access the system.

We will set the system host-name and root-authentication to accept a plain-text password that we enter.   

[edit]

root# set system root-authentication plain-text-password

New password: Skylab321

Retype new password: Skylab321

[edit]

root# set system host-name Skylabjuniper1

 

Hmm, we meant to set it to Skylabjuniper1. Well, we can delete that line by re-entering it but instead of using set, we will use delete

[edit]

root# delete system host-name Skylabjuniper1

[edit]

root# set system host-name Skylabjuniper2

Now we get to create a user for this lab. I will create Skylabuser1 and assign him as a super-user, set his full name to Sky User, and set his password to juniper321

[edit]

root# set system login user Skylabuser1 class super-user

Uh-oh, we meant to enter Skylabr1and we entered Skylabuser1. So do we need to delete that line and re-add it? Nope. We can use rename instead.

[edit]

root# rename system login user Skylabr1 to user Skylabuser1

[edit]

root# set system login user Skylabuser1 full-name " Sky User "

[edit]

root# set system login user Skylabuser1 authentication plain-text-password

New password: juniper321

Retype new password: juniper321

Clouds & AI Technologies