先将pc配置vlan然后配置trunk干道允许通过的vlan。
在配置交换机,将交换机同样配置vlan,配置trunk干道允许通过的vlan。
最后配置路由器:
int g0/0.10
vlan-type dot1q vid 10
ip address 192.168.10.254 24
int g 0/0.20
vlan-type dot1q vid 20
ip add 192.168.20.254 24
原文:https://www.cnblogs.com/gdkoong/p/10884210.html