eNSP之Telnet配置
实验环境
实验需求
1、SW1使用密码认证,SW2上使用AAA认证。
2、设置同一的管理VLAN为100,用于远程等登陆时使用,其中SW1IP为
实验配置
SW1配置
<Huawei>undo terminal monitor //关闭设备终端信息提示
<Huawei>system-view
[Huawei]sysname SW1
[SW1]vlan 100
[SW1-vlan100]quit
[SW1]interface Vlanif 100
[SW1-Vlanif100]ip add 192.168.100.1 24
[SW1-Vlanif100]quit
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 100
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/1]quit
[SW1]
[SW1]user-interface vty 0 4 //进入虚拟用户终端接口
[SW1-ui-vty0]authentication-mode password //设置认证模式为密码认证
[SW1-ui-vty0]set authentication password cipher huawei //设置密码为密文格式的“huawei”
[SW1-ui-vty0]user privilege level 3 //设置用户权限等级为3
[SW1-ui-vty0]quit[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk pvid vlan 100
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW1-GigabitEthernet0/0/1]quit
[SW1]
SW2配置
<Huawei>undo terminal monitor //关闭设备终端信息提示
<Huawei>system-view
[Huawei]sysname SW2
[SW2]vlan 100
[SW2-vlan100]quit
[SW2]int vlan 100
[SW2-Vlanif100]ip add 192.168.100.2 24
[SW2-Vlanif100]quit
[SW2]int g0/0/1
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk pvid vlan 100
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[SW2-GigabitEthernet0/0/1]quit
[SW2]
[SW2]user-interface vty 0 4
[SW2-ui-vty0-4]authentication-mode aaa
[SW2-ui-vty0-4]user privilege level 3
[SW2-ui-vty0-4]quit
[SW2]aaa
[SW2-aaa]local-user huawei password cipher hcie privilege level 3
[SW2-aaa]local-user huawei service-type telnet
[SW2-aaa]quit
[SW2]
实验验证
SW1 Telnet To SW2
SW2 Telnet To SW1
下一篇我们将介绍如何使用物理机Telnet到eNSP中的网络设备