网站建设 青少年宫,文件管理系统wordpress,阜新市项目建设网站,全国水利建设市场信用信息平台门户网站目录 一.
实验内容
STP配置实验
RSTP配置实验
MSTP配置实验
二.
1 ) STP配置实验
实验拓扑
编辑
实验配置
实验结果
2 ) RSTP配置实验
实验拓扑
实验配置
实验结果
3 ) MSTP配置实验
实验拓扑
实验配置
编辑
实验结果
三
实验总结 一.
实验内容
1) …目录 一.
实验内容
STP配置实验
RSTP配置实验
MSTP配置实验
二.
1 ) STP配置实验
实验拓扑
编辑
实验配置
实验结果
2 ) RSTP配置实验
实验拓扑
实验配置
实验结果
3 ) MSTP配置实验
实验拓扑
实验配置
编辑
实验结果
三
实验总结 一.
实验内容
1)
STP配置实验
2)
RSTP配置实验
3)
MSTP配置实验
二.
1 ) STP配置实验
实验拓扑 实验配置
查看 SW1~3的MAC地址
设备MAC地址SW14c1f-cc17-48bdSW24c1f-ccda-40e8SW34c1f-cc6c-011c
MAC地址越小越优 SW1SW3SW2
设备IP地址PC-1192.168.1.1/24PC-2192.168.1.2/24
SW1:
un ter mo
sys
sys SW1
vlan 10
int vlan 10
int g0/0/1
port l t
port trunk all vlan all
int g0/0/2
port l t
port trunk all vlan all
q
stp enable
stp mode stp
SW2:
un ter mo
sys
sys SW2
vlan 10
int vlan 10
int g0/0/01
port l acc
port d vlan 10
int g0/0/2
port l t
port trunk all vlan all
int g0/0/3
port l t
port trunk all vlan all
q
stp enable
stp mode stp
SW3:
un ter mo
sys
sys SW3
vlan 10
int g0/0/2
port l acc
port d vlan 10
int g0/0/1
port l t
port trunk all vlan all
int g0/0/3
port l t
port trunk all vlan all
q
stp enable
stp mode stp
查看端口状态
SW1: SW2: SW3: 实验结果
MAC地址越小越优
1 ) 优先级:SW1SW3SW2
2 ) SW2的G0/0/3端口是ROOT备选口
3 ) STP的缺点就是状态变化时间太长 2 ) RSTP配置实验
实验拓扑 内容与STP一样只需要更改stp的类型即可更改SW2为根交换机,SW1为备交换机
secondary (优先级为4096) primary (优先级为0)
实验配置
SW1:
stp mode rstp
stp root secondary
SW2:
stp mode rstp
stp root primary
SW3:
stp mode rstp
再查看端口状态时(可以与上方的自行比较)
SW1: SW2: SW3: 实验结果
优先级:
SW2 SW1 SW3
1) 根据是否转发用户流量和学习MAC地址进行划分由原来的5种缩减为3种
2) 新添加端口角色 端口类型备份端口作用 Aternate prot 替代端口 RP的备份 Alternate端口提供了从指定桥到根的另一条可切换路径作为根端口的备份端口 Back port 备份端口 DP的备份 Backup端口作为指定端口的备份提供了另一条从根桥到相应网段的备份通路
3 ) MSTP配置实验
实验拓扑 实验配置
设备IP地址子网掩码网关所属VLANPC-1192.168.10.10255.255.255.0192.168.10.254VLAN 10PC-2192.168.20.20255.255.255.0192.168.20.254VLAN 20
查看 SW 1~4 的MAC地址
设备MAC地址SW 14c1f-ccca-66f6SW 24c1f-cc8c-68e1SW 34c1f-cc1c-344fSW 44c1f-cc44-413d
SW1:
un ter mo
sys
sys SW1
vlan ba 10 20
port-group 1
group-m g0/0/3
group-m g0/0/5
group-m g0/0/2
port l t
port trunk all vlan all
q
stp enable
stp mode mstp SW2:
un ter mo
sys
sys SW2
vlan ba 10 20
port-group 2
group-m g0/0/3
group-m g0/0/2
group-m g0/0/6
port l t
port trunk all vlan all
q
stp enable
stp mode mstp SW3:
un ter mo
sys
sys SW3
vlan ba 10 20
int vlan 10
ip add 192.168.10.254 24
int vlan 20
ip add 192.168.20.254 24
q
port-group 3
group-m g0/0/2
group-m g0/0/4
group-m g0/0/6
port l t
port trunk all vlan all
q
int g0/0/1
port l acc
port d vlan 10
q
stp enable
stp mode mstp SW4:
un ter mo
sys
sys SW4
vlan ba 10 20
int vlan 10
ip add 192.168.10.254 24
int vlan 20
ip add 192.168.20.254 24
q
port-group 4
group-m g0/0/2
group-m g0/0/4
group-m g0/0/5
port l t
port trunk all vlan all
q
int g0/0/1
port l acc
port d vlan 20
q
stp enable
stp mode mstp 查看交换机在生成树中的角色 优先级:(SW3 SW4 SW2 SW1)
配置MSTP VLAN10的根交换机为 SW1备交换机为SW3为4096从交换机为SW4优先级为8192SW2默认优先级即可 VLAN20的根交换机为 SW2备交换机为SW4为4096从交换机为SW3优先级为8192SW1默认优先级即可
SW1:
stp region-configuration
region-name huawei
revision-level 1
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
q
stp instance 1 priority 0 SW2:
stp region-configuration
in 1 vlan 10
in 2 vlan 20
re huawei
revision-level 1
active region-configuration
q
stp instance 2 priority 0 SW3:
stp region-configuration
in 1 vlan 10
in 2 vlan 20
re huawei
rev 1
active re
q
stp instance 1 priority 4096
stp instance 2 priority 8192 SW4:
stp re
in 1 vlan 10
in 2 vlan 20
re huawei
rev 1
active re
q
stp in 2 p 4096
stp in 1 p 8192
实验结果
可以自行对照上面
SW1 SW2 SW3 SW4 三
实验总结
通过上述实验得出的结论
STP不足:状态多,反应时间长,网络出现问题需要等待很长时间 RSTP不足:流量无法负载分担 二层次优路径 MSTP优点:可以快速收敛提供了数据多个路径实现了VLAN间数据的负载均衡