关键词不能为空

当前您在: 主页 > 英语 >

多生成树协议MSTP的配置

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-01-30 00:04
tags:

-

2021年1月30日发(作者:尤贝尔)


百度文库




实验六: 多生成树协议


MSTP


的配置



实验目的







了解并掌握多生成树协议的配置



背景描述







某企业网络管理员认识到,传统的 生成树协议


(STP)


是基于整个交换网络产生一个树形拓扑结 构,所


有的


VLANs


都共享一个生成 树,


这种结构不能进行网络流量的负载均衡,


使得有些交换设备 比较繁忙,



另一些交换设备又很空闲,为了克服这个问题,他 决定采用基于


VLAN


的多生成树协议


MSTP


,现要在交


换机上做适当配置来完成这一任务。



实验拓扑




Fa0/1


Fa0/1



Switch2


Switch1



Fa0/2


Fa0/2


Fa0/4


Fa0/3


Fa0/3


Fa0/4






Fa0/1


Fa0/2


Fa0/2


Fa0/1



Switch4



Switch3






























完整实验拓扑图





Switch1



Fa0/3


Fa0/4



BridgeAddr




8e





Fa0/1


Fa0/2



BridgeAddr



BridgeAddr



Switch3


Switch4



00d0.f8bc.9b33


00d0.f8bc.9a8f


























实例


1< /p>


的生成树拓扑图





Switch2




Fa0/4


Fa0/3



BridgeAddr




00d0.f8b8.1bf8





Fa0/2


BridgeAddr




BridgeAddr



Switch3


00d0.f8bc.9b33



00d0.f8bc.9a8f

























实例


2


的生 成树拓扑图



11


Fa0/1


Switch4


百度文库




实验步骤



1.




交换 机


Switch1


的一些相应配置



(1)



创建


Vlan10



Vlan20


Switch1(config)#


vlan 10



Switch1(config- vlan)#


exit



Switch1(config)#


vlan 20



Switch1(config- vlan)#


exit



(2)



设置


Trunk


口和端口


fa0/1



fa0/2


的聚合



Switch1(config)#


inter range fa 0/1-2



Switch1(config-if- range)#


switchport mode trunk



Switch1(config-if- range)#


exit



Switch1(config)#


inter range fa 0/1-2



Switch1(config-if- range)#


port-group 1



Switch1(config-if- range)#


exit




!设置端口


fa0/1-2



trunk


并端口聚合



Switch1(config)#


inter range fa 0/3-4



Switch1(config-if- range)#


switchport mode trunk



Switch1(config-if- range)#


exit



(3)



开启生成树协议设为


MSTP


模式,并作相应设置



Switch1(config)#


spanning- tree






!开启生成树



Switch1(config)#


spanning- tree mode mstp





!配置生成树模式为


MSTP


Switch1(config)#


spanning- tree mst configuration




!


进入


MSTP

配置模式



Switch1(config- mst)#


name taishan





!配置域名称



Switch1(config-mst)#


revision 1







!配置版本(修订号)



Switch1(config-mst)#


instance 1 vlan 10






!配置


instance 1


(实例


1


)并关联


V lan 10


Switch1(config- mst)#


instance 2 vlan 20






!配置


instance 2


(实例< /p>


2


)并关联


Vlan 20


Switch1(config- mst)#


exit



Switch1(config)#


spanning- tree mst 1 priority 8192






提升交换机


Switch1


在实例


1


上的优先级


,


缺省是


32768

< br>,


值越小越优先成为该


instance


中的


root switch,


这一配置能确定


Switch1



instance


的根桥



Switch1(config)#< /p>


end




【注意事项】




l




对规 模很大的交换网络可以划分多个域(


region


< p>
,在每个域里可以创建多个


instance


(实 例)





2




划分在同一个域里的各台交换机须 配置相同的域名(


name



、相同的 修订号



revision number





相同的



instance



vlan


对应表;




3




< /p>


交换机可以支持


65


< br>MSTP instance


,其中实例


0


是缺省实例,是强制存在


的,其它实例可以创建和删除;



4





将整个


spanning- tree


恢复为缺省状态用命令


spanning-tree reset




5


注意各个交换机的查看


(验证)


配置信息应该在所有的 交换机配置完成后进行。




22





百度文库





验证配置:




1




显示


MSTP


全局配置


Switch1#


show spanning- tree mst configuration










显示


MS TP


全局配置



Multi spanning tree protocol : Enabled


Name






: taishan


Revision : 1


Instance



Vlans Mapped


--------



-------------------------------------------------- ----------


0










1-9,11-19,21-4094


1










10


2










20



2




查看生成树信息



Switch1#


show spanning- tree






!查看生成树信息




StpVersion : MSTP


SysStpStatus : Enabled


BaseNumPorts : 24


MaxAge : 20


HelloTime : 2


ForwardDelay : 15


BridgeMaxAge : 20


BridgeHelloTime : 2


BridgeForwardDelay : 15


MaxHops : 20


TxHoldCount : 3


PathCostMethod : Long


BPDUGuard : Disabled


BPDUFilter : Disabled



###### MST 1 vlans mapped : 10






!instance1


的配置信息



BridgeAddr : 8e


Priority : 8192


TimeSinceTopologyChange : 0d:0h:43m:39s


TopologyChanges : 0


DesignatedRoot : 200100D0F8B8DC8E



!



12< /p>


位是


MAC


地址,此处显示是

< p>
Switch1


自身的


MAC

,这说明


Switch1


是实例


1


(instance 1)


的生成树的根交换机



RootCost : 0


RootPort : 0




33




百度文库





3




查看接口


fa0/1


的生成树信息



Switch1#


show spanning-tree interface fa 0/1



PortAdminPortfast : Disabled


PortOperPortfast : Disabled


PortAdminLinkType : auto


PortOperLinkType : point-to-point


PortBPDUGuard: Disabled


PortBPDUFilter: Disabled



###### MST 1 vlans mapped : 10


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800100D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800100D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort


###### MST 2 vlans mapped : 20


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800200D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800200D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort


!接口< /p>


fa0/1


在实例


1


2


上的状态均为


disable dPort


###### MST 2 vlans mapped : 20




!instanc2


的配置信息



BridgeAddr : 8e


Priority : 32768


TimeSinceTopologyChange : 0d:0h:43m:39s


TopologyChanges : 0


DesignatedRoot : 200200D0F8B81BF8

< p>
!


此处显示是


Switch2


MAC


,这说明


Switch1 2


是实例


2 (instance 2)


的生成树的根交换




RootCost : 190000


RootPort : Ag1



44


百度文库





4




查看接口


fa0/2


的生成树信息



Switch1#


show spanning-tree interface fa 0/2




PortAdminPortfast : Disabled


PortOperPortfast : Disabled


PortAdminLinkType : auto


PortOperLinkType : point-to-point


PortBPDUGuard: Disabled


PortBPDUFilter: Disabled



###### MST 1 vlans mapped : 10


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800100D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800100D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort



###### MST 2 vlans mapped : 20


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800200D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800200D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort


!接口< /p>


fa0/2


在实例


1


2


上的状态均为


disable dPort



55


百度文库






5




查看接口


fa0/3


的生成树信息



Switch1#


show spanning-tree interface fa 0/3




PortAdminPortfast : Disabled


PortOperPortfast : Disabled


PortAdminLinkType : auto


PortOperLinkType : point-to-point


PortBPDUGuard: Disabled


PortBPDUFilter: Disabled



###### MST 1 vlans mapped : 10


PortState : forwarding


PortPriority : 128


PortDesignatedRoot : 200100D0F8B8DC8E


PortDesignatedCost : 190000


PortDesignatedBridge : 800100D0F8B81BF8


PortDesignatedPort : 8003


PortForwardTransitions : 1


PortAdminPathCost : 0


PortOperPathCost : 200000


PortRole : designatedPort






fa0 /3


为实例


1


的指定端口




###### MST 2 vlans mapped : 20


PortState : forwarding


PortPriority : 128


PortDesignatedRoot : 200200D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 200200D0F8B81BF8


PortDesignatedPort : 8003


PortForwardTransitions : 1


PortAdminPathCost : 0


PortOperPathCost : 200000


PortRole : designatedPort







fa0/3


为实例


2


的指定端口




66


百度文库






6




查看接口


fa0/4


的生成树信息



Switch1#


show spanning-tree interface fa 0/4




PortAdminPortfast : Disabled


PortOperPortfast : Disabled


PortAdminLinkType : auto


PortOperLinkType : point-to-point


PortBPDUGuard: Disabled


PortBPDUFilter: Disabled



###### MST 1 vlans mapped : 10


PortState : forwarding


PortPriority : 128


PortDesignatedRoot : 200100D0F8B8DC8E


PortDesignatedCost : 190000


PortDesignatedBridge : 800100D0F8B81BF8


PortDesignatedPort : 8004


PortForwardTransitions : 1


PortAdminPathCost : 0


PortOperPathCost : 200000


PortRole : designatedPort






fa0 /4


为实例


1


的指定端口




###### MST 2 vlans mapped : 20


PortState : forwarding


PortPriority : 128


PortDesignatedRoot : 200200D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 200200D0F8B81BF8


PortDesignatedPort : 8004


PortForwardTransitions : 1


PortAdminPathCost : 0


PortOperPathCost : 200000


PortRole : designatedPort






fa0 /4


为实例


2


的指定端口





2.




交换 机


Switch2


的一些相应配置



(1)



创建


Vlan10



Vlan20


Switch2(config)#


vlan 10



Switch2(config- vlan)#


exit



Switch2(config)#


vlan 20



Switch2(config- vlan)#


exit




77


百度文库




(2)



设 置


Trunk


口和端口


fa0/1



fa0/2


的聚合



Switch2(config)#


inter range fa 0/1-2



Switch2(config-if- range)#


switchport mode trunk



Switch2(config-if- range)#


exit



Switch2(config)#


inter range fa 0/1-2



Switch2(config-if- range)#


port-group 1


Switch2(config-if- range)#


exit



Switch2(config)#


inter range fa 0/3-4



Switch2(config-if- range)#


switchport mode trunk


Switch2(config-if- range)#


exit


(3)


< /p>


开启生成树协议设为


MSTP


模式,并作 相应设置



Switch2(config)#


spanning- tree



Switch2(config)#


spanning- tree mode mstp



Switch2(config)#


spanning- tree mst configuration


Switch2(config- mst)#


name taishan



Switch2(config-mst)#


revision 1



Switch2(config- mst)#


instance 1 vlan 10



Switch2(config-mst)#


instance 2 vlan 20



Switch2(config- mst)#


exit



Switch2(config)#


spanning- tree mst 2 priority 8192



!提升 交换机


Switch1


在实例


1


上的优先级


,


这一配置能确定


Switch1



instance

< br>的根桥



Switch2(config)#end


验证配置:




1






MSTP


全局 配置



Switch2#


show spanning-tree mst configuration



Multi spanning tree protocol : Enabled


Name






: taishan


Revision : 1


Instance



Vlans Mapped


--------



------- -------------------------------------------------- ---


0










1-9,11-19,21-4094


1










10


2










20







88


百度文库





2





看生成树信息



Switch2#


show spanning- tree




StpVersion : MSTP


SysStpStatus : Enabled


BaseNumPorts : 24


MaxAge : 20


HelloTime : 2


ForwardDelay : 15


BridgeMaxAge : 20


BridgeHelloTime : 2


BridgeForwardDelay : 15


MaxHops : 20


TxHoldCount : 3


PathCostMethod : Long


BPDUGuard : Disabled


BPDUFilter : Disabled



###### MST 1 vlans mapped : 10


BridgeAddr : 00d0.f8b8.1bf8


Priority : 32768


TimeSinceTopologyChange : 0d:1h:4m:54s


TopologyChanges : 0


DesignatedRoot : 200100D0F8B8DC8E

< p>
!


此处显示是


Switch1


MAC



这说明


Switch1


是实例


1 (instance 1)


的生成树的根交换机



RootCost : 190000


RootPort : Ag1



###### MST 2 vlans mapped : 20


BridgeAddr : 00d0.f8b8.1bf8


Priority : 8192


TimeSinceTopologyChange : 0d:1h:4m:54s


TopologyChanges : 0


DesignatedRoot : 200200D0F8B81BF8

< p>
!


此处显示是


Switch2

的自身


MAC



这说明

< p>
Switch2


是实例


2 (instance 2)


的生成树的根交


换机



RootCost : 0


RootPort : 0



99


百度文库






3





看接口


fa0/1


的生成树信息



Switch2#


show spanning-tree interface fa 0/1




PortAdminPortfast : Disabled


PortOperPortfast : Disabled


PortAdminLinkType : auto


PortOperLinkType : point-to-point


PortBPDUGuard: Disabled


PortBPDUFilter: Disabled



###### MST 1 vlans mapped : 10


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800100D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800100D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort



###### MST 2 vlans mapped : 20


PortState : discarding


PortPriority : 128


PortDesignatedRoot : 800200D0F8B81BF8


PortDesignatedCost : 0


PortDesignatedBridge : 800200D0F8B81BF8


PortDesignatedPort : 0000


PortForwardTransitions : 0


PortAdminPathCost : 0


PortOperPathCost : 0


PortRole : disabledPort



1010

-


-


-


-


-


-


-


-



本文更新与2021-01-30 00:04,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/588029.html

多生成树协议MSTP的配置的相关文章