模拟器:Cisco Packet Tracer

SW1配置:
注:
Switch(config)#no ip domain-lookup(关闭域名解析,防止输错命令时域名解析)
Switch(config-if)#switch mode trunk(原来设备默认封装了dot1q协议,所以就没有再封装)

SW2配置:


实现各个VLAN之间PC的互通:


注:
Switch(config)#no ip domain-lookup(关闭域名解析,防止输错命令时域名解析)
Switch(config-if)#switch mode trunk(原来设备默认封装了dot1q协议,所以就没有再封装)



