[SwitchA]user-interface vty 0 4
[SwitchA-ui-vty0-4]authentication-mode scheme
[SwitchA]local-user huawei
[SwitchA-user-huawei]password simple huawei
[SwitchA-user-huawei]service-type telnet level 3
[SwitchA]super password level 3 simple super3
exit
interface vlan 50
ip add 10.1.1.125 255.255.255.128
undo shutdown
exit
路由配置
ip route-static 0.0.0.0 0.0.0.0 10.1.1.126
save
1.需要输入username和password才可以登陆交换机。
[SwitchA]user-interface vty 0 4
2. 配置本地或远端用户名和口令认证
[SwitchA-ui-vty0-4]authentication-mode scheme
3. 配置本地TELNET用户,用户名为”huawei”,密码为”huawei”,权限为最高级别3(缺省为级别1)
[SwitchA]local-user huawei
[SwitchA-user-huawei]password simple huawei
[SwitchA-user-huawei]service-type telnet level 3
4. 在交换机上增加super password
[SwitchA]super password level 3 simple super3