交换机配置
[Huawei]interface Vlanif 1
[Huawei-Vlanif1]ip address 192.168.1.100 255.255.255.0
[Huawei-Vlanif1]undo shutdown
路由器配置
[Huawei]interface GigabitEthernet /0/01
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.200 255.255.255.0
[Huawei-GigabitEthernet0/0/1]undo shutdown
交换机、路由器互相ping同 做远程控制
交换机配置远程
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]user privilege level 3
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]aaa
[Huawei-aaa]local-user nnn password cipher 123
[Huawei-aaa]local-user nnn service-type telnet
路由器登录远程
telnet 192.168.1.100