1、启动设备,设置PC1和PC2的IP地址、子网掩码和网关
2、配置SW1信息:
<Huawei>undo terminal monitor 关闭弹窗
<Huawei>system-view 进入系统试图
[Huawei]user-interface console 0
[Huawei-ui-console0]idle-timeout 0 0 永不超时
[Huawei-ui-console0]sysname RSW1 改名
[RSW1]vlan batch 10 20 100 划分vlan10 20 100
[RSW1]int g0/0/1 (配置G0/0/1为trunk口,允许10 20流量通过)
[RSW1-GigabitEthernet0/0/1]port link-type trunk
[RSW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
[RSW1-GigabitEthernet0/0/1]int g0/0/2 (配置G0/0/2为access口,允许10 20流量通过)
[RSW1-GigabitEthernet0/0/2]port link-type access
[RSW1-GigabitEthernet0/0/2]port default vlan 100
[RSW1-