配置交换机SW1通过telnet远程登录AR1
首先在AR1中创建用户
[AR1]user-interface console 0
[AR1-ui-console0]authentication-mode aaa
[AR1-ui-console0]aaa
[AR1-aaa]local-user 用户名 privilege level 3 password cipher 密码
设置用户类型为Telnet
[AR1-aaa]local-user 用户名 service-type telnet
配置VTY
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]authentication-mode aaa
配置AR1 IP,其中GigabitEthernet 0/0/0为端口号
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
配置SW1 IP
[SW1]interface Vlanif 1
[SW1-Vlanif1]ip address 192.168.1.3 24
进行远程登录
<SW1>telnet 192.168.1.1