2个交换机起好三层的SVI自动就通了
SW1
intface vlanif 10
ip add 192.168.100.1 24
interface vlanif 20
ip add 192.168.200.1 24
SW2
interface vlanif 10
ip add 192.168.100.2 24
interface vlanif 20
ip add 192.168.200.2 24
int eht0/0/3
port link-type trunk
port trunk al pass vlan 10 20
int eth0/0/1
port link-type access
port default vlan 10
int eth0/0/2
port link-type access
port default vlan 20
下游PC网关指向所在交换机的vlanif 地址即可。
温馨提示:答案为网友推荐,仅供参考