配置如下:
交换机一:
en
conf t
vlan 10
vlan 20
vlan 30
vlan 40
interface range f0/1-4
switchport mode access
switchport access vlan 10
no shut
interface range f0/5-14
switchport mode access
switchport access vlan 穗磨20
no shut
interface range f0/15-19
switchport mode access
switchport access vlan 40
no shut
interface f0/24
switchport mode trunk
switchport trunk allow vlan all
no shut
end
交悉族谨换机二:
en
conf t
vlan 10
vlan 20
vlan 30
vlan 40
interface range f0/1-6
switchport mode access
switchport 睁基access vlan 10
no shut
interface range f0/7-16
switchport mode access
switchport access vlan 30
no shut
interface range f0/17-21
switchport mode access
switchport access vlan 40
no shut
interface f0/24
switchport mode trunk
switchport trunk allow vlan all
no shut
end