一、telent配置
启动设备
交换机SW4设置
Undo terminal monitor 关闭弹窗
System-view 进入系统试图
[Huawei]User-interface console 0
[Huawei-ui-console0]Idle-timeout 0 0 永不超时
[Huawei-ui-console0]Sysname SW4 更改名称
[SW4]Interface vlanif 1 进入vlanif1接口
[SW4-Vlanif1]Ip add 192.168.1.1 24 设置IP
[SW4-Vlanif1]User-interface vty 0 4 开放5个端口
[SW4-ui-vty0-4]Authentication-mode password 认证模式密码
[SW4-ui-vty0-4]Set authentication password simple huawei 认证模式密码明文huawei
[SW4-ui-vty0-4]User privilege level 3 用户权限等级3级
[SW4-ui-vty0-4]quit 退出
交换机SW5设置
Undo terminal monitor
System-view
[Huawei]User-interface console 0
[Huawei-ui-console0]Idle-timeout 0 0
[Huawei-ui-console0]Sysname SW5
[SW5]Interface vlanif 1
[SW5-Vlanif1]Ip add 192.168.1.2 24
[SW5-Vlanif1]User-interface vty 0 4
[SW5-ui-vty0-4]Authentication-mode password
[SW5-ui-vty0-4]Set authentication password simple huawei
[SW5-ui-vty0-4]User privilege level 3
[SW5-ui-vty0-4]quit
二、vlan、trunk(相同vlan间路由)
启动设备,设置PC的IP地址与子网掩码(同网段)
1、设置SW15参数
Undo terminal monitor 关闭弹窗
System-view 进入系统试图
[Huawei]User-interface console 0
[Huawei-ui-console0]Idle-timeout 0 0 永不超时
[Huawei-ui-console0]Sysname SW15 更改名称
[SW15]Vlan batch 2 3 设置vlan 2 3
[SW15]Int e0/0/1 进入e0/0/1接口
[SW15-Ethernet0/0/1]Port link-type access 接口类型access
[SW15-Ethernet0/0/1]Port default vlan 2 设置成vlan2
[SW15-Ethernet0/0/1]Int e0/0/2 进入e0/0/2接口
[SW15-Ethernet0/0/2]Port link-type access 接口类型access
[SW15-Ethernet0/0/2]Port default vlan 3 设置成vlan2
[SW15-Ethernet0/0/2]Int g0/0/1 进入g0/0/1接口
[SW15-GigabitEthernet0/0/1]Port link-type trunk 接口类型trunk
[SW15-GigabitEthernet0/0/1]Port trunk allow-pass vlan 2 3 允许vlan2 3 通过
[SW15-GigabitEthernet0/0/1]Quit 退出
2、设置SW16参数
Undo terminal monitor
System-view
[Huawei]User-interface console 0
[Huawei-ui-console0]Idle-timeout 0 0
[Huawei-ui-console0]Sysname SW16
[SW16]Vlan batch 2 3
[SW16]Int e0/0/1
[SW16-Ethernet0/0/1]Port link-type access
[SW16-Ethernet0/0/1]Port default vlan 2
[SW16-Ethernet0/0/1]Int e0/0/2
[SW16-Ethernet0/0/2]Port link-type access
[SW16-Ethernet0/0/2]Port default vlan 3
[SW16-Ethernet0/0/2]Int g0/0/1
[SW16-GigabitEthernet0/0/1]Port link-type trunk
[SW16-GigabitEthernet0/0/1]Port trunk allow-pass vlan 2 3
[SW16-GigabitEthernet0/0/1]Quit
3、用PC去互相PING其他PC的IP,相同VLAN之间通信。