所有交换机之间的端口都配置成trunk口,做一下vlan的透传即可,但是这里的话,三个交换机都需要配置:
A配置:
interface interface GigabitEthernet0/1
switchport trunk encapsulation dot1q
switchport mode trunk
B配置:
vlan 3
vlan 4
interface interface GigabitEthernet0/1
switchport mode trunk
interface interface GigabitEthernet0/2
switchport mode trunk
C配置:
vlan 3
vlan 4
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
interface GigabitEthernet0/0/3
port link-type access
port default vlan 3
interface GigabitEthernet0/0/4
port link-type access
port default vlan 4