Got it

Configuring an Administrator Using the CLI - In Pratice

Latest reply: Nov 4, 2021 16:42:16 687 29 25 0 0

Configuring an Administrator Using the CLI - In Pratice

Hello everyone,


Today, I would like to introduce in practice a method of creating an administrator account (local authentication) via the CLI.


Procedure:

Create an administrator: 

The first step is to enter privileged mode via the "system-view" command:


1


The next is to configure the UI via the user-interface vty 0 4 and run the authentication mode aaa command to set the authentication mode to AAA.:

1a


The second step is to create a user with admin privilege.

Run the aaa command to access the AAA view and the manager-user user-name command to configure an administrator account and access the administrator view.


In our example we are going to set up an admin account and access the admin view.

2a


Now let's configure the service type, by default no service type is specified for an administrator.


3a


In the example our user will have ssh, terminal and web services.


4a


Finally, let's set up the user's password in the example.

5a

The password chosen for the user is Huawei@123

Set the administrator authention mode to local authentication 

Run the authentication scheme scheme name command to create an authentication scheme and access the authentication scheme view.


12

In the example we will configure the "default" schema in order to simplify.

10


By default, the authentication scheme is default and the administrator authentication mode is local (local authentication).

Run the authentication mode local command to configure local authentication.


14


Can we check the other authentication methods via authentication-mode ?:

13


Configure the permission and other attributes for the administrator account. 

The last mandatory step is our user's permission setting.

15

1: Monitoring level corresponds to Configuration administrator (monitoring).

2: Configuration level corresponds to Configuration administrator.

3: Management level to the 15th level correspond to System administrator.


Finally, our user was configured as follows:

16


Validating User Access

We will access via CLI through the SSH protocol.

18

19

If the settings are correct, access will be made and our user will access the firewall:

20


Run the command "display users" to verify our user:


21a


With that our practical example was completed.

Cheers,

Thanks for sharing
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 28, 2021 17:07:24 (0) (0)
you're welcome  
Vlada85
MVE Author Created Oct 28, 2021 19:03:02

Very good post! Thank you!
View more
  • x
  • convention:

Serges_armel
Serges_armel Created Oct 29, 2021 06:08:05 (0) (0)
 
andersoncf1
andersoncf1 Created Oct 30, 2021 16:09:20 (0) (0)
you’re welcome friend  
Interesting, well detailed, thanks for sharing!
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 30, 2021 16:09:39 (0) (0)
thanks mate  
Nice
View more
  • x
  • convention:

Configuring an Administrator Using the CLI - In Pratice-4253823-1
View more
  • x
  • convention:

Diego.Silva
MVE Author Created Oct 28, 2021 23:26:32

Good job!
View more
  • x
  • convention:

Excellent, thank you for sharing!
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Nov 1, 2021 16:07:13 (0) (0)
you're welcome  
zaheernew
MVE Author Created Oct 29, 2021 04:07:33

awesome
View more
  • x
  • convention:

Great guide!
Thank you @andersoncf1 waiting for the next episode. :D
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 31, 2021 18:36:25 (0) (0)
 
123
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.