5700交换机作为三层可网管设备,在我们第一次上机时是完全有必要进行登录配置。
一般最常用的有telnet ssh console
第一步,进行AAA配置,创建用户名和密码,用户等级及用户类型相关参数。
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]aaa
[Huawei-aaa]local-user admin password cipher admin
[Huawei-aaa]local-user admin privilege level 15
[Huawei-aaa]local-user admin service-type terminal telnet
[Huawei-aaa]quit
第二步,进入用户模式,配置交换机认证模式为AAA,进入console端口配置,将认证模式同样设置AAA。
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]quit
[Huawei]user-interface
[Huawei]user-interface console 0
[Huawei-ui-console0]authentication-mode aaa
[Huawei-ui-console0]q
[Huawei]
查看一下是不是生效,看样子生效。
[Huawei]dis cu
#
sysname Huawei
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher .]@USE=B,53Q=^Q`MAF4<1!!
local-user admin privilege level 15
local-user admin service-type telnet terminal
#
这里省略很多~~~~~~~~~~~~~
#
user-interface con 0
authentication-mode aaa
user-interface vty 0 4
authentication-mode aaa
#
转载于:https://blog.51cto.com/52czy/1102477