【正文】
華為HCNA_STP基本配置_tonySTP的基本配置SW1配置 HuaweiHuaweisy Huaweisystemview (進(jìn)入全局模式)Enter system view, return user view with Ctrl+Z.[Huawei][Huawei]sy [Huawei]sysname SW1(更改設(shè)備名稱(chēng))[SW1] [SW1]stp en [SW1]stp enable (打開(kāi)STP)[SW1][SW1]stp mo [SW1]stp mode stp 進(jìn)入stp模式Info: This operation may take a few seconds. Please wait for a moment...done.[SW1] [SW1]stp pri [SW1]stp priority 0 (在STP模式下更改BID優(yōu)先級(jí))BID=Bridge ID(橋ID)[SW1][SW1]dis [SW1]display this (查詢當(dāng)前配置)sysname SW1stp mode stpstp instance 0 priority 0cluster enablentdp enablendp enabledrop illegalmac alarmreturn[SW1][SW1]dis [SW1]display s [SW1]display stp (查詢STP)[CIST Global Info][Mode STP]CIST Bridge :0 .4c1fcc387c04 (橋ID優(yōu)先級(jí)和MAC)Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20CIST Root/ERPC :0 .4c1fcc387c04 / 0CIST RegRoot/IRPC :0 .4c1fcc387c04 / 0CIST RootPortId :BPDUProtection :DisabledTC or TCN received :7TC count per hello :0STP Converge Mode :Normal Time since last TC :0 days 0h:1m:1sNumber of TC :7Last TC occurred :GigabitEthernet0/0/2[Port1(Ethernet0/0/1)][DOWN] Port Protocol :Enabled Port Role