PC机5: 配置ip地址:192.168.5.5 子网掩码:255.255.255.0 网关:192.168.5.254 PC机6: 配置ip地址:192.168.6.6 子网掩码:255.255.255.0 网关:192.168.6.254 二层交换机SW3: 进入用户视图:systen-view 创建vlan:vlan batch 10 20 进入vlan配置ip地址:interface Vlanif 10 ip add 192.168.5.254 24 interface Vlanif 20 ip add 192.168.6.254 24 让端口加入vlan:interface GigabitEthernet 0/0/1 port link-type access port default vlan 10 interface GigabitEthernet 0/0/2 port link-type access port default vlan 20 用pc机1pingpc机2:ping 192.168.6.6