实验:
实验要求:让sw 1 成为 vlan10 的根网桥,让sw 3 上的f0/2 成为指定端口。
让sw 2 成为 vlan20 的根网桥,让sw 3 上的f0/1 成为指定端口。
让sw 3 成为 vlan30 的根网桥,让sw 2 上的f0/2 成为指定端口。
实施步骤:
++++++++++++++++++++++++++++++++++++++++
sw 1
++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in range f0/1 - 2
sw m t
end
vlan d
vtp domain gao
vtp password 123
vlan 10
vlan 20
vlan 30
exit
conf t
spanning-tree vlan 10 priority 4096
++++++++++++++++++++++++++++++++++++++++++
sw 2
++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in range f0/1 - 2
sw m t
end
vlan d
vtp domain gao
vtp password 123
vtp client
exit
conf t
spanning-tree vlan 30 priority 12288
spanning-tree vlan 20 root primary
+++++++++++++++++++++++++++++++++++++++++++
sw 3
+++++++++++++++++++++++++++++++++++++++++++
en
conf t
no ip do lo
line c 0
exec-t 0 0
logg sync
exit
in range f0/1 - 2
sw m t
end
vlan d
vtp domain gao
vtp password 123
vtp client
exit
conf t
spanning-tree vlan 30 root primary
spanning-tree vlan 10 priority 8192
spanning-tree vlan 20 priority 12288
阅读(572) | 评论(0) | 转发(0) |