資源描述:
《華為HCNA-STP基本配置練習(xí).docx》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、STP的基本配置SW1配置sysystem-view(進入全局模式)Entersystemview,returnuserviewwithCtrl+Z.[Huawei][Huawei]sy[Huawei]sysnameSW1(更改設(shè)備名稱)[SW1][SW1]stpen[SW1]stpenable(打開STP)[SW1][SW1]stpmo[SW1]stpmodestp進入stp模式Info:Thisoperationmaytakeafewseconds.Plea
2、sewaitforamoment...done.[SW1][SW1]stppri[SW1]stppriority0(在STP模式下更改BID優(yōu)先級)BID=BridgeID(橋ID)[SW1][SW1]dis[SW1]displaythis(查詢當(dāng)前配置)#sysnameSW1#stpmodestpstpinstance0priority0#clusterenablentdpenablendpenable#dropillegal-macalarm#return[SW1][SW1]dis[SW1]display
3、s[SW1]displaystp(查詢STP)-------[CISTGlobalInfo][ModeSTP]-------CISTBridge:0.4c1f-cc38-7c04(橋ID優(yōu)先級和MAC)ConfigTimes:Hello2sMaxAge20sFwDly15sMaxHop20ActiveTimes:Hello2sMaxAge20sFwDly15sMaxHop20CISTRoot/ERPC:0.4c1f-cc38-7c04/0CISTRegRoot/IRPC:0.4c1f-cc38-7c04/0C
4、ISTRootPortId:0.0BPDU-Protection:DisabledTCorTCNreceived:7TCcountperhello:0STPConvergeMode:NormalTimesincelastTC:0days0h:1m:1sNumberofTC:7LastTCoccurred:GigabitEthernet0/0/2----[Port1(Ethernet0/0/1)][DOWN]----PortProtocol:EnabledPortRole:DisabledPortPortPri
5、ority:128PortCost(Dot1T):Config=auto/Active=DesignatedBridge/Port:0.4c1f-cc38-7c04/128.1PortEdged:Config=default/Active=disabledPoint-to-point:Config=auto/Active=falseTransitLimit:147packets/hello-timeProtectionType:NonePortSTPMode:MSTPPortProtocolType:Conf
6、ig=auto/Active=dot1sBPDUEncapsulation:Config=stp/Active=stpPortTimes:Hello2sMaxAge20sFwDly15sRemHop20TCorTCNsend:0TCorTCNreceived:0BPDUSent:0TCN:0,Config:0,RST:0,MST:0BPDUReceived:0TCN:0,Config:0,RST:0,MST:0----[Port2(Ethernet0/0/2)][DOWN]----PortProtocol:E
7、nabledPortRole:DisabledPortPortPriority:128PortCost(Dot1T):Config=auto/Active=DesignatedBridge/Port:0.4c1f-cc38-7c04/128.2PortEdged:Config=default/Active=disabledPoint-to-point:Config=auto/Active=falseTransitLimit:147packets/hello-timeProtectionType:NonePor
8、tSTPMode:MSTPPortProtocolType:Config=auto/Active=dot1sBPDUEncapsulation:Config=stp/Active=stpPortTimes:Hello2sMaxAge20sFwDly15sRemHop20TCorTCNsend:0TCorTCNreceived:0BPDUSent:0TCN:0,Config:0,RST:0,MST:0