PC
192.168.10.1、192.168.10.2
192.168.20.1、192.168.20.2
192.168.10.3、192.168.10.4
192.168.20.3、192.168.20.4
S3700
system-view
vlan batch 10 20
int e0/0/1
port link-type access
port default vlan 10
int e0/0/2
port link-type access
port default vlan 10
int e0/0/3
port link-type access
port default vlan 20
int e0/0/4
port link-type access
port default vlan 20
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
S5700
vlan batch 10 20
int g0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
int g0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
int g0/0/24
port link-type trunk
port trunk allow-pass vlan 10 20
AR2220
system-view
int g0/0/0.10
dot1q termination vid 10
ip address 192.168.10.254 24
arp broadcast enable
int g0/0/0.20
dot1q termination vid 20
ip address 192.168.20.254 24
arp broadcast enable
原文:https://www.cnblogs.com/X-Lee/p/11942005.html