华为HCNA-STP基本配置练习

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ng whether to save the configuration to the device.
<SW1>
-------------------------------------------------------------------------------------------------------
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :0 .4c1f-cc38-7c04 / 20000
CIST RegRoot/IRPC :4096 .4c1f-cc3a-0520 / 0
CIST RootPortId :128.23
TC or TCN received :0
BPDU Sent :0
TCN: 0, Config: 0, RST: 0, MST: 0
[SW1]
[SW1]q
<SW1>
<SW1>save (保存配置)
The current configuration will be written to the device.
SW2配置
<Huawei>
<Huawei>sy
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysname SW2
[SW2]
[SW2]stp en
[SW2]stp enable
CIST RegRoot/IRPC :0 .4c1f-cc38-7c04 / 0
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :7
TC count per hello :0
STP Converge Mode :Normal
[SW2]
[SW2]dis
[SW2]display st
[SW2]display stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge :4096 .4c1f-cc3a-0520
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Bridge :0 .4c1f-cc38-7c04(桥ID优先级和MAC)
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :0 .4c1f-cc38-7c04 / 0
TC or TCN send :0
TC or TCN received :0
BPDU Sent :0
TCN: 0, Config: 0, RST: 0, MST: 0
BPDU Received :0
TCN: 0, Config: 0, RST: 0, MST: 0
----[Port3(Ethernet0/0/3)][DOWN]----
BPDU Received :0
TCN: 0, Config: 0, RST: 0, MST: 0
----[Port2(Ethernet0/0/2)][DOWN]----
Port Protocol :Enabled
Port Role :Disabled Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=200000000
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :0
TC or TCN received :0
BPDU Sent :0
TCN: 0, Config: 0, RST: 0, MST: 0
-----------------------------------------------------------------------------------------------------------------------------
SW3配置
<Huawei>sy
<Huawei>system-view
[SW2]
[SW2]dis
[SW2]display this
#
sysname SW2
#
stp mode stp
stp instance 0 priority 4096
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
return
[SW2]
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
return
[SW1]
[SW1]dis
[SW1]display s
[SW1]display stp(查询STP)
-------[CIST Global Info][Mode STP]-------
Are you sure to continue?[Y/N]y
Info: Please input the ( *.cfg, *.zip ) [vrpcfg.zip]:
Mar 15 2017 19:47:02-08:00 SW1 %%01CFM/4/SAVE(l)[0]:The user chose Y when decidi
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysname SW3
[SW3]
Point-to-point :Config=auto / Active=false
Transit Limit :147 packets/hello-time
Protection Type :None
Port STP Mode :MSTP
Port Protocol Type :Config=auto / Active=dot1s
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=false
Transit Limit :147 packets/hello-time
Protection Type :None
-----------------------------------------------------------------------------------------------------------------------------
Designated Bridge/Port :0.4c1f-cc38-7c04 / 128.2
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=false
Transit Limit :147 packets/hello-time
STP的基本配置
SW1配置
<Huawei>
<Huawei>sy
<Huawei>system-view(进入全局模式)
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy
[Huawei]sysname SW1(更改设备名称)
Port Priority :128
Port Cost(Dot1T ) :Cwk.baidu.comnfig=auto / Active=200000000
Designated Bridge/Port :0.4c1f-cc38-7c04 / 128.1
Port Edged :Config=default / Active=disabled
Time since last TC :0 days 0h:1m:1s
Number of TC :7
Last TC occurred :GigabitEthernet0/0/2
----[Port1(Ethernet0/0/1)][DOWN]----
Port Protocol :Enabled
Port Role :Disabled Port
[SW1]
[SW1]stp en
[SW1]stp enable(打开STP)
[SW1]
[SW1]stp mo
[SW1]stp mode stp进入stp模式
Info: This operation may take a few seconds. Please wait for a moment...done.
Protection Type :None
Port STP Mode :MSTP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20
[SW1]
[SW1]stp pri
[SW1]stp priority 0(在STP模式下更改BID优先级)BID=Bridge ID(桥ID)
[SW1]
[SW1]dis
[SW1]display this(查询当前配置)
#
sysname SW1
#
stp mode stp
stp instance 0 priority 0
BPDU-Protection :Disabled
TC or TCN received :42
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 0h:1m:41s
Number of TC :10
Last TC occurred :GigabitEthernet0/0/1
----[Port1(Ethernet0/0/1)][DOWN]----
Port Protocol :Enabled
Port Role :Disabled Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=200000000
Designated Bridge/Port :4096.4c1f-cc3a-0520 / 128.1
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop 20
TC or TCN send :0
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=false
Transit Limit :147 packets/hello-time
Protection Type :None
Port STP Mode :MSTP
Port Protocol :Enabled
Port Role :Disabled Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=200000000
Designated Bridge/Port :0.4c1f-cc38-7c04 / 128.3
[SW2]
[SW2]stp mode st
[SW2]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]
[SW2]stp pri
[SW2]stp priority 4096
相关文档
最新文档