1.SW1交换机配置:
<Huawei>system-view
[Huawei]interface Vlanif 1
[Huawei-Vlanif1]ip address 192.168.1.1 24
[Huawei]user-interface vty 0 4 //设置VTY虚拟通道,最多允许连接的数量
[Huawei-ui-vty0-4]authentication-mode password //设置认证方式为密码
[Huawei-ui-vty0-4]set authentication password cipher huawei //设置密码为huawei
[Huawei]super password level 3 cipher huawei123 //设置super等级是3和密码是huawei123
2、SW2交换机配置:
<Huawei>system-view
[Huawei]interface Vlanif 1
[Huawei-Vlanif1]ip address 192.168.1.2 24