一:3SW配置:
#int rang f0/0 -3
# noshut
#int f0/1
#swi mode tru
#int f0/0
# noswitch
# ipadd 192.168.1.1 255.255.255.0
# iproute 192.168.4.0 255.255.25.0 192.168.1.2
# iproute 192.168.5.0 255.255.25.0 192.168.1.2
3sw#vlandata
Sw(vlan)#vtp server
#vtp domain lzx
#vlan 2
#vlan 3
# int vlan 2
# ip add 192.168.2.1 255.255.255.0
# int vlan 3
# ip add 192.168.3.1 255.255.255.0
二 :2SW1配置
# int rang f0/0 -2
# no shut
# int f0/0
# swi mode tr
# vlan data
# vtp domain lzx
# vtp client
# sh vlan-s
# int f0/1
# swi mode acc
# swi acc vlan 2
# int f0/2
# swi mode acc
# swi acc vlan 3
三: 路由配置
# int f0/0
# no shut
# ip add 192.168.1.2 255.255.255.0
# ip route 192.168.2.0 255.255.255.0 192.168.1.1
# ip route 192.168.3.0 255.255.255.0 192.168.1.1
# int f1/0.1
# enca dot1Q 4
# ip add 192.168.4.1 255.255.255.0
# no shut
# int f1/0.2
# enca dot1Q 5
# ip add 192.168.5.1 255.255.255.0
# no shut
# int f1/0
# no shut
四: 2SW3配置:
# int rang f0/0 -2
# no shut
# vlan data
# vlan 4
# vlan 5
# int f0/0
# swi mode tr
# int f0/1
# swi mode acc
# swi acc vlan 4
# int f0/2
# swi mode acc
# swi acc vlan 5
五: PC配置
Pc1 : 192.168.2.2 192.168.2.1 24
Pc2 : 192.168.3.2 192.168.3.1 24
Pc5 : 192.168.4.2 192.168.4.1 24
Pc6 : 192.168.5.2 192.168.5.1 24
转载于:https://blog.51cto.com/bobolee/1166085