Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)
》Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)
》》实验开始,先上拓扑图参考:

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname SWA
[SWA]stp ? //查询STP协议下配置命令
bpdu-filter STP BPDU filter
bpdu-protection Specify BPDU protection function
bridge-diameter Specify bridge diameter
converge Specify STP converge mode
disable Disable Spanning Tree Protocol (STP) //禁用STP
edged-port Specify edge port
enable Enable Spanning Tree Protocol (STP) //启用STP
instance Spanning tree instance
max-hops Specify max hops
mcheck Specify mcheck
mode Specify state machine mode
pathcost-standard Specify STP port path cost standard
priority Specify bridge priority //指定桥优先级
process The MSTP process
region-configuration Enter MSTP region view
root Specify root switch
snooping STP snooping
tc-protection Enable the TC-BPDU Protection function
timer Specify timer configuration
timer-factor Specify aged out time factor [SWA]stp disable //关闭STP
Warning: The global STP state will be changed. Continue? [Y/N]y
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA]
Jun ::-: SWA DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is . [SWA]display stp //查看STP协议状态
Protocol Status :Disabled //STP协议已经被关闭
Protocol Standard :IEEE .1s
Version :
CIST Bridge Priority : //桥ID的默认优先级为32768
MAC address :4c1f-cca8-6f8e
Max age(s) : //最大老化时长为20秒
Forward delay(s) : //转发延时为15秒
Hello time(s) : //问候时长为2秒
Max hops :
[SWA]
[SWA]stp enable //开启STP
Warning: The global STP state will be changed. Continue? [Y/N]y
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA]
Jun ::-: SWA DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is .
[SWA]
[SWA]display stp //查看STP协议状态
-------[CIST Global Info][Mode MSTP]------- //默认配置是MSTP
CIST Bridge :.4c1f-cca8-6f8e
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
CIST Root/ERPC :.4c1f-cc27-5e6e /
CIST RegRoot/IRPC :.4c1f-cca8-6f8e /
CIST RootPortId :128.25
BPDU-Protection :Disabled
TC or TCN received :
TC count per hello :
STP Converge Mode :Normal
Time since last TC : days 0h:24m:6s
Number of TC :
Last TC occurred :GigabitEthernet0//
---- -- more -- ----
[SWA]
[SWA]stp mode ? //查询修改生成树模式的配置命令
mstp Multiple Spanning Tree Protocol (MSTP) mode
rstp Rapid Spanning Tree Protocol (RSTP) mode
stp Spanning Tree Protocol (STP) mode [SWA]stp mode stp //修改生成树模式为STP
Info: This operation may take a few seconds. Please wait for a moment...done.
[SWA]
Jun ::-: SWA DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is .
[SWA]dis stp //查看STP协议状态
-------[CIST Global Info][Mode STP]------- //默认配置已改为STP(SWB如法炮制,也改为STP)
CIST Bridge :.4c1f-cca8-6f8e
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
CIST Root/ERPC :.4c1f-cc27-5e6e /
CIST RegRoot/IRPC :.4c1f-cca8-6f8e /
CIST RootPortId :128.25
BPDU-Protection :Disabled
TC or TCN received :
TC count per hello :
STP Converge Mode :Normal
Time since last TC : days 0h:30m:21s
Number of TC :
Last TC occurred :GigabitEthernet0//
---- -- more -- ----
[SWA]
[SWA]stp priority ? //修改桥优先级
INTEGER<-> Bridge priority, in steps of //输入的桥优先级必须是4096的倍数 [SWA]stp priority //修改SWA的桥优先级为0(SWA配置为根桥,因为SWB的桥优先级还是32678)
[SWA]
Jun ::-: SWA DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is .
[SWA]dis stp
-------[CIST Global Info][Mode STP]-------
CIST Bridge : .4c1f-cca8-6f8e
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
CIST Root/ERPC : .4c1f-cca8-6f8e /
CIST RegRoot/IRPC : .4c1f-cca8-6f8e /
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :
TC count per hello :
STP Converge Mode :Normal
Time since last TC : days 0h:12m:59s
Number of TC :
Last TC occurred :GigabitEthernet0//
---- More ----
[SWB]dis stp bri //查看配置(STP协议收敛后,SWB的G0/0/1端口成为了根端口)
MSTID Port Role STP State Protection
GigabitEthernet0// ROOT DISCARDING NONE
GigabitEthernet0// ALTE DISCARDING NONE
GigabitEthernet0// DESI FORWARDING NONE
====================================
[SWA]int g0// //进入SWA的G0/0/1端口配置
[SWA-GigabitEthernet0//]stp port priority ? //查询修改端口优先级的命令
INTEGER<-> Port priority, in steps of //优先级按16的倍数调整(默认为128) [SWA-GigabitEthernet0//]stp port priority //将SWA的G0/0/1端口优先级调整为240(大于128)
[SWA-GigabitEthernet0//]
Jun ::-: SWA DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is .
[SWA-GigabitEthernet0//]q
[SWA] //(或者配置SWA的G0/0/2端口,修改优先级为16,小于128。这样也可以实现实验效果)
====================================
[SWB]dis stp bri //查看配置(修改SWA的G0/0/1端口优先级后,SWB的G0/0/2端口成为了根端口)
MSTID Port Role STP State Protection
GigabitEthernet0// ALTE DISCARDING NONE
GigabitEthernet0// ROOT FORWARDING NONE //SWB的G0/0/2端口被选举为根端口
GigabitEthernet0// DESI FORWARDING NONE
[SWB]dis stp int g0// //查看G0/0/1端口下STP协议状态(关于配置根端口,还可以通过修改端口开销PC使G0/0/2成为根端口)
-------[CIST Global Info][Mode STP]-------
CIST Bridge :.4c1f-cc27-5e6e
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
CIST Root/ERPC : .4c1f-cca8-6f8e / //根路径开销RPC为20000
CIST RegRoot/IRPC :.4c1f-cc27-5e6e /
CIST RootPortId :128.1
BPDU-Protection :Disabled
TC or TCN received :
TC count per hello :
STP Converge Mode :Normal
Time since last TC : days 0h:25m:13s
Number of TC :
Last TC occurred :GigabitEthernet0//
----[Port1(GigabitEthernet0//)][FORWARDING]----
Port Protocol :Enabled
Port Role :Root Port
Port Priority :
Port Cost(Dot1T ) :Config=auto / Active= //G0/0/1端口开销PC为20000
Designated Bridge/Port :.4c1f-cca8-6f8e / 128.25
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit : packets/hello-time
Protection Type :None
Port STP Mode :STP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop
TC or TCN send :
TC or TCN received :
BPDU Sent :
TCN: , Config: , RST: , MST:
BPDU Received :
TCN: , Config: , RST: , MST:
----[Port2(GigabitEthernet0//)][DISCARDING]----
Port Protocol :Enabled
Port Role :Alternate Port
Port Priority :
Port Cost(Dot1T ) :Config=auto / Active= //G0/0/2端口开销PC也是20000
Designated Bridge/Port :.4c1f-cca8-6f8e / 128.26
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit : packets/hello-time
Protection Type :None
Port STP Mode :STP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop
TC or TCN send :
TC or TCN received :
BPDU Sent :
TCN: , Config: , RST: , MST:
BPDU Received :
TCN: , Config: , RST: , MST:
---- More ---- [SWB]int g0//
[SWB-GigabitEthernet0//]stp cost ? //查询修改端口(路径)开销的命令
INTEGER<-> Port path cost [SWB-GigabitEthernet0//]stp cost //修改G0/0/1的端口开销为30000(大于G0/0/2的端口开销20000)
[SWB-GigabitEthernet0//]
Jun ::-: SWB DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is .
[SWB-GigabitEthernet0//]q
//(或者将G0/0/2的端口开销调小为1999,小于20000。这样也可以实现实验效果)
[SWB]dis stp bri
MSTID Port Role STP State Protection
GigabitEthernet0// ALTE DISCARDING NONE
GigabitEthernet0// ROOT FORWARDING NONE //端口G0/0/2被选举为根端口
GigabitEthernet0// DESI FORWARDING NONE
[SWB]
[SWB]int g0//
[SWB-GigabitEthernet0//]stp edged-port ? //查询边缘端口配置命令
disable Disable edge port
enable Enable edge port [SWB-GigabitEthernet0//]stp edged-port enable //配置G0/0/3端口为边缘端口
[SWB-GigabitEthernet0//]
Jun ::-: SWB DS//DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.
.191.3. configurations have been changed. The current change number is , the c
hange loop count is , and the maximum number of records is . [SWB-GigabitEthernet0//]dis stp int g0//
-------[CIST Global Info][Mode STP]-------
CIST Bridge :.4c1f-cc27-5e6e
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop
CIST Root/ERPC : .4c1f-cca8-6f8e /
CIST RegRoot/IRPC :.4c1f-cc27-5e6e /
CIST RootPortId :128.2
BPDU-Protection :Disabled
TC or TCN received :
TC count per hello :
STP Converge Mode :Normal
Time since last TC : days 0h:14m:58s
Number of TC :
Last TC occurred :GigabitEthernet0//
----[Port3(GigabitEthernet0//)][FORWARDING]----
Port Protocol :Enabled
Port Role :Designated Port
Port Priority :
Port Cost(Dot1T ) :Config=auto / Active=
Designated Bridge/Port :.4c1f-cc27-5e6e / 128.3
Port Edged :Config=enabled / Active=enabled //端口G0/0/已配置为边缘端口,且为活动状态
Point-to-point :Config=auto / Active=true
Transit Limit : packets/hello-time
Protection Type :None
Port STP Mode :STP
Port Protocol Type :Config=auto / Active=dot1s
BPDU Encapsulation :Config=stp / Active=stp
PortTimes :Hello 2s MaxAge 20s FwDly 15s RemHop
TC or TCN send :
TC or TCN received :
BPDU Sent :
TCN: , Config: , RST: , MST:
BPDU Received :
TCN: , Config: , RST: , MST:
[SWB-GigabitEthernet0//]
Huawei-R&S-网络工程师实验笔记20190607-STP生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)的更多相关文章
- Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP)
>Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP) >>实验开始,先上拓扑图参考: >>>一般正常配置IP操作如下 ...
- Huawei-R&S-网络工程师实验笔记20190525-设备登录、VRP基本配置、文件系统
>Huawei-R&S-网络工程师实验笔记20190525-设备登录.VRP基本配置.文件系统(环回接口.telnet远程.AAA登录.命令行.时钟.banner.文件目录) >& ...
- Huawei-R&S-网络工程师实验笔记20190524-VRP的系统、接口视图下基本操作
>Huawei-R&S-网络工程师实验笔记20190524-VRP的系统.接口视图下基本操作(重命名.配置IP.VLAN接口.双工模式.console口) >>实验开始,先上 ...
- Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载、STelnet登录、SFTP登录
>Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载.STelnet登录.SFTP登录 >>实验开始,参考<Huawei-R&S-网络工程 ...
- Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置、设置web管理
>Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置.设置web管理 >>实验开始(使用SecureCRT 等工具软件): 一.华为设备密码重置,通过 ...
- Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)
>Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口) >>实验开始,先上拓扑图参考: >>>实验目标:分别实现主 ...
- Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口)
>Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口) >>实验开始,先上拓扑图参考: >>>实验目标 ...
- Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口、MAC地址、子网地址、协议)
>Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口.MAC地址.子网地址.协议) >>实验开始,先上拓扑图参考: 一.基于端口划分VLAN ...
- CCNA网络工程师学习进程(10)NAT的配置
NAT(Network Address Translation,网络地址转换)是将IP 数据包头中的IP 地址转换为另一个IP 地址的过程. (1)NAT简介: 在实际应用中,NAT ...
随机推荐
- Java之正則表達式【使用语法】
认为好就顶一个!! ! ! 3.正則表達式 用一些特殊的有意义的字符组成的字符串(死记) 原子:正則表達式的最基本组成单位 正則表達式特殊意义的字符: . * + ?不能单独表示它们,假设非 ...
- java错误:无法将Object转换为int类型
Object value java要想将Object转换为int类型,就必须先将Object转换为String,然后String再转换为int,如下: Integer.parseInt(String. ...
- Linux下的IPC-UNIX Domain Socket【转】
本文转载自:http://blog.csdn.net/guxch/article/details/7041052 一. 概述 UNIX Domain Socket是在socket架构上发展起来的用于同 ...
- tyvj2054 四叶草魔杖——连通块 & 状压DP
题目:http://www.joyoi.cn/problem/tyvj-2054 把点分成几个连通块,和为0的几个点放在一块,在块内跑最小生成树作为这个块的代价: 然后状压DP,组成全集的最小代价就是 ...
- kubernetes Traefik ingress配置详解
理解Ingress 简单的说,ingress就是从kubernetes集群外访问集群的入口,将用户的URL请求转发到不同的service上.Ingress相当于nginx.apache等负载均衡方向代 ...
- 洛谷P1613 跑路(最短路+倍增)
P1613 跑路 题目描述 小A的工作不仅繁琐,更有苛刻的规定,要求小A每天早上在6:00之前到达公司,否则这个月工资清零.可是小A偏偏又有赖床的坏毛病.于是为了保住自己的工资,小A买了一个十分牛B的 ...
- ACM_百度的面试(单调栈)
百度的面试 Time Limit: 2000/1000ms (Java/Others) Problem Description: 在一个二维平面,从左到右竖立n根高度分别为:a[1],a[2],... ...
- 为什么选择Android Studio 而是 Eclipse
Android Studio 现在的版本已经比较稳定了,刚出来时也是各种BUG,自己用了下,摸索了一天,感觉挺好的. 优点之一:代码提示和搜索功能非常强大,非常智能. 1).自定义theme有个名字叫 ...
- 347 Top K Frequent Elements 前K个高频元素
给定一个非空的整数数组,返回其中出现频率前 k 高的元素.例如,给定数组 [1,1,1,2,2,3] , 和 k = 2,返回 [1,2].注意: 你可以假设给定的 k 总是合理的,1 ≤ k ...
- [转]linux之diff 命令
转自:http://www.cnblogs.com/peida/archive/2012/12/12/2814048.html diff 命令是 linux上非常重要的工具,用于比较文件的内容,特别是 ...