user-interface con 0
authentication-mode password
// 控制台密码认证
user-interface vty 0 4
// vty虚拟通道0-4
authentication-mode aaa
mode模式分为:password和AAA认证两种模式
aaa
local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
local-user admin service-type http
//admin 是系统默认的
local-user xiaoli password cipher %$%$oB7TO]=%m-&*g)6e><&ZTo6#%$%$
local-user xiaoli privilege level 15
或者:local-user xiaoli privilege level 15 password cipher huawei@123
local-user xiaoli service-type telnet
local-user xiaoli service-type ssh
包括:
用户名称和密码,用户权限,用户能访问的服务类型(如果不设置能访问所有如:
ssh,telnet,http,ftp等)
stelnet server enable 开启远程登录
user privilege level 15
user-interface vty 16 20
//vty虚拟通道:华为的有16-20 CISCO的只有0-4
//重要提示:所有用户的权限变更后只对用户退出重新登录后有效。当前会话的
用户一直保留本次会话登录时的权限
clock timezone utc add 8 更换设备时区为东8区
display clock
用户视图下: clock datetime
ip route-static 0.0.0.0 0.0.0.0 192.168.18.1
dis ip rou
系统视图下: ntp-service unicast-server 52.231.114.183
设置控制台口令
user-interface console 0
authentication-mode password
set authentication password cipher Huawei@123
关联流量监控:eSight IMC zabbix nagios cacti prtg
snmp-agent trap enable
snmp-agent sys-info version v2c
snmp-agent community read cipher huawei@123