设备需求:两台cisco 3550switch.
实验说明: 1) SW1,SW2添加3个vlan,10,20,30
2) 设置SW1,SW2的f0/23-24为trunk
3) 设置SW2为vlan1,10,20,30的根
4) 设置SW1的f0/24,让vlan10,30的cost为10.
5) 设置SW1,SW2的f0/1-22 portfast功能
6) 启用SW1的uplinkfast功能
7) 启用SW1的f0/1-22 root guard功能
8) 启用SW1的BPDU Guard功能
9) 启用SW2的f0/1-22的bpdu过滤功能
Answer1:
SW1,SW2:
Vlan 10
Vlan 20
Vlan 30
show vlan brief
Answer2:
SW1,SW2:
int range f0/23 - 24
switch trunk encap dot1q
switch mode trunk
show int trunk
show spanning-tree vlan x
Answer3:
SW2:
spanning-tree vlan 1,10,20,30 root primary
show spanning-tree vlan x
Answer4:
SW1:
int f0/24
spanning-tree vlan 10,30 cost 10
show spanning-tree vlan x
Answer5:
SW1,SW2:
int r f0/1 - 22
spanning-tree portfast
Answer6:
SW1:
spanning-tree uplinkfast
show spanning-tree uplinkfast
Answer7:
SW1:
int range f0/1 - 22
spanning-tree guard root
Answer8:
SW1:
int range f0/1 - 22
spanning-tree bpduguard enable
show spanning-tree summary
Answer9:
SW2:
int range f0/1 - 22
spanning-tree bpdufilter enable
show spanning-tree summary
不好意思啊,我们这里没有啊