1. 网络拓扑:
2. SW1配置:
2.1 配置为Access口,vlan 10:
[SW1]vlan 10
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
2.2 配置虚拟网关:
[SW1]interface Vlanif 10
[SW1-Vlanif10]ip address 192.168.1.254 24
[SW1-Vlanif10]display this
#
interface Vlanif10
ip address 192.168.1.254 255.255.255.0
#
return
3.配置Telnet服务
3.1 配置用于Telnet登录的用户名(telnetuser)、密码(Huawei123):
[SW1]aaa
[SW1-aaa]local-user telnetuser password cipher Huawei123
设置用户级别:
[SW1-aaa]local-user telnetuser privilege level 3
设置服务类型为Telnet:
[SW1-aaa]local-user telnetuser service-type telnet
3.2 配置VTY(Virtual Teletype Terminal,虚拟终端)界面,身份认证方式为AAA认证:
[SW1]telnet server enable
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]authentication-mode aaa
此时就可以Telnet登陆交换机进行相关配置了。