华为交换机更改console,创建用户名和telnet

本文详细介绍了如何在Cisco设备上配置console密码,使用密码或AAA模式进行VTY和telnet访问的权限设置,以及登录验证过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

创建/更改console密码

<switch>system-view

Enter system view, return user view with Ctrl+Z.

[switch]user-interface console 0    //console口

[switch-ui-console0]authentication-mode password

[switch-ui-console0]set authentication password cipher password...     //配置console密码

[switch-ui-console0]display this    //接口下查看

#

user-interface con 0

 authentication-mode password

 set authentication password cipher 0GB:0w]8YDH\mr#J=^v<xo$#  //查看到的密码为乱码

user-interface vty 0 4

#

return

[switch-ui-console0]

配置用户名、密码和telnet

<switch>system-view

[switch]aaa   //3A模式

[switch-aaa]local-user admin password cipher password...  //创建用户名和密码

[switch-aaa]local-user admin privilege level 15      //等级

[switch-aaa]local-user admin service-type telnet   //协议

[switch-aaa]quit

设置VTY 0 4:

当authentication-mode后面接AAA时,用户名和密码调用3A里的local-user

[switch]user-interface vty 0 4   

[switch-ui-vty0-4]authentication-mode aaa

[switch-ui-vty0-4]protocol inbound all

当authentication-mode 后面接password,密码调用VTY 0 4里的password

[switch]user-interface vty 0 4

[switch-ui-vty0-4]authentication-mode password

[switch-ui-vty0-4]set authentication password cipher password...

[switch-ui-vty0-4]user privilege level 15

[switch-ui-vty0-4]protocol inbound all

测试:调用3A的认证,登录需要输入用户名和密码。

<S2>telnet 192.168.1.1

Trying 192.168.1.1 ...

Press CTRL+K to abort

Connected to 192.168.1.1 ...

Login authentication

Username:admin

Password:

Info: The max number of VTY users is 5, and the number

      of current VTY users on line is 1.

      The current login time is 2024-01-12 12:43:35.

<switch>quit

Info: The max number of VTY users is 5, and the number

      of current VTY users on line is 0.

Info: The connection was closed by the remote host.

<S2>

测试:调用本地的认证,登录只需要输入密码。

<Huawei>telnet 192.168.1.1

Trying 192.168.1.1 ...

Press CTRL+K to abort

Connected to 192.168.1.1 ...

Login authentication

Password:

Info: The max number of VTY users is 5, and the number

      of current VTY users on line is 1.

      The current login time is 2024-01-16 10:07:24.

<Huawei>quit

Info: The max number of VTY users is 5, and the number

      of current VTY users on line is 0.

Info: The connection was closed by the remote host.

<Huawei>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

後來love

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值