//配置管理vlan和對應(yīng)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認(rèn)證
[switch1]telnet server enable? (telnet默認(rèn)是關(guān)閉的)
[switch1]user-interface vty 0 4? (開啟VTY線路)
[switch1-ui-vty0-4]protocol inbound telnet (配置Telnet協(xié)議)
[switch1-ui-vty0-4]authentication-mode aaa (配置認(rèn)證方式)
[switch1]aaa
[switch1-aaa]local-user admin password cipher admin@huawei (配置用戶名和密碼臼勉,用戶名不區(qū)分大小寫闸迷,密碼區(qū)分
大小寫)
[switch1-aaa]local-user admin privilege level 15 (將管理員賬號權(quán)限設(shè)置為15- 最高)
[switch1-aaa]local-user admin service-type telnet (設(shè)置用戶接入類型為Telnet)
<switch1>save
//對端交換機(jī)最好配置同一個(gè)管理vlan漆改,ip和對端管理vlan同一個(gè)網(wǎng)段朱转,交換機(jī)可以完成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>