生成树

生成树的配置
生成树_第1张图片
配置如下
A
en
conf t
int range f0/1 - 3
switchport mode trunk
exit
vtp domain benet
vtp mode server
exit
vlan database
exit
vlan database
vlan 1
vlan 2
vlan 3
vlan 4
exit
conf t
spanning-tree vlan 1-2 root primary

B
en
conf t
int range f0/1 - 3
switchport mode trunk
exit
spanning-tree vlan 3-4 root primary

C
en
conf t
int range f0/1 - 2
switchport mode trunk

D
en
conf t
int range f0/1 - 2
switchport mode trunk
配置完成后
用show spanning-tree vlan  1/2/3/4
进行查看
(A是vlan1-2的根网桥,B是vlan3-4的根网桥。)

你可能感兴趣的:(职场,休闲,spanning-tree)