拓扑图:
SW0、SW1、SW2:
en
conf t
vlan 10
name a
vlan 20
name b
exit
int f0/1
switchport mode access
switchport access vlan 10
int f0/2
switchport mode access
switchport access vlan 20
int range f0/3 - 4
switchport mode trunk
switchport trunk allowed vlan all
ex