//配置管理vlan和对应ip地址
[switch1]vlan 5
[switch1-vlan5]management-vlan
[switch1]interface Vlanif 5
[switch1-Vlanif5]ip add
[switch1-Vlanif5]ip address 10.10.1.1 24
//开启telnet 和aaa认证
[switch1]telnet server enable (telnet默认是关闭的)
[switch1]user-interface vty 0 4 (开启VTY线路)
[switch1-ui-vty0-4]protocol inbound telnet (配置Telnet协议)
[switch1-ui-vty0-4]authentication-mode aaa (配置认证方式)
[switch1]aaa
[switch1-aaa]local-user admin password cipher admin@huawei (配置用户名和密码,用户名不区分大小写,密码区分
大小写)
[switch1-aaa]local-user admin privilege level 15 (将管理员账号权限设置为15- 最高)
[switch1-aaa]local-user admin service-type telnet (设置用户接入类型为Telnet)
<switch1>save
//对端交换机最好配置同一个管理vlan,ip和对端管理vlan同一个网段,交换机可以完成telnet
[switch2]vlan 5
[switch2]interface Vlanif 5
[switch2-Vlanif5]ip address 10.10.1.2 24
<switch2>telnet 10.10.1.1
Connected to 10.10.1.1 ...
Login authentication
Username:admin
<switch1>
网友评论