开启telnet方法一:需要VTY的密码和进入超级权限的密码(VTY虚拟终端,一种网络设备的连接方式)
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei
[R1-ui-vty0-4]qui
[R1]super password cipher abc123
<R2>telnet 192.168.1.1
<R1>super
开启telnet方法二:只需要VTY密码,不需要超级密码
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei
[R1-ui-vty0-4]user privilege level 3(提升用户权限,原先权限为0)
开启telnet方法三:通过用户名和密码进入vty,通过super密码进入超级权限
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1-ui-vty0-4]qui
[R1]super password cipher abc123
[R1]aaa
[R1-aaa]local-user abc password cipher 123
[R1-aaa]local-user abc service-type telnet