》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生成树协议(基本配置、桥优先级、根桥选举、根端口、路径开销、边缘端口)的更多相关文章

  1. Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP)

    >Huawei-R&S-网络工程师实验笔记20190615-IP基础(AR201上配置IP) >>实验开始,先上拓扑图参考: >>>一般正常配置IP操作如下 ...

  2. Huawei-R&S-网络工程师实验笔记20190525-设备登录、VRP基本配置、文件系统

    >Huawei-R&S-网络工程师实验笔记20190525-设备登录.VRP基本配置.文件系统(环回接口.telnet远程.AAA登录.命令行.时钟.banner.文件目录) >& ...

  3. Huawei-R&S-网络工程师实验笔记20190524-VRP的系统、接口视图下基本操作

    >Huawei-R&S-网络工程师实验笔记20190524-VRP的系统.接口视图下基本操作(重命名.配置IP.VLAN接口.双工模式.console口) >>实验开始,先上 ...

  4. Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载、STelnet登录、SFTP登录

    >Huawei-R&S-网络工程师实验笔记20190530-FTP上传下载.STelnet登录.SFTP登录 >>实验开始,参考<Huawei-R&S-网络工程 ...

  5. Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置、设置web管理

    >Huawei-R&S-网络工程师实验笔记20190527-华为设备密码重置.设置web管理 >>实验开始(使用SecureCRT 等工具软件): 一.华为设备密码重置,通过 ...

  6. Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口)

    >Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Hybrid端口) >>实验开始,先上拓扑图参考: >>>实验目标:分别实现主 ...

  7. Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口)

    >Huawei-R&S-网络工程师实验笔记20190609-VLAN划分综合(Access和Trunk端口) >>实验开始,先上拓扑图参考: >>>实验目标 ...

  8. Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口、MAC地址、子网地址、协议)

    >Huawei-R&S-网络工程师实验笔记20190608-VLAN划分基础(基于端口.MAC地址.子网地址.协议) >>实验开始,先上拓扑图参考: 一.基于端口划分VLAN ...

  9. CCNA网络工程师学习进程(10)NAT的配置

     NAT(Network Address Translation,网络地址转换)是将IP 数据包头中的IP 地址转换为另一个IP 地址的过程.     (1)NAT简介:     在实际应用中,NAT ...

随机推荐

  1. uboot流程分析--修改android启动模式按键【转】

    本文转载自:http://blog.csdn.net/dkleikesa/article/details/9792747 本人用的android平台用的bootloader用的是uboot,貌似大多数 ...

  2. 在C#中实现listbox的项上下移动(winform) 标准

      在C#中实现listbox的项上下移动(winform) 收藏人:梅毛子360   2013-10-02 | 阅:1  转:2  |  分享    |    来源              usi ...

  3. 简单动态规划——最长公共子序列&&最长回文子序列&&最长上升||下降子序列

    最长公共子序列,顾名思义当然是求两个字符串的最长公共子序列啦,当然,这只是一道非常菜的动规,所以直接附上代码: #include<iostream> #include<cstdio& ...

  4. oracle更新大量数据太慢,可以通过游标实现的例子

    declare cursor city_cur isselect t.new_customer_id,t.old_customer_id from citsonline.crm_customer_tm ...

  5. [Apple开发者帐户帮助]八、管理档案(1)创建开发配置文件

    您可以在开发人员帐户中创建开发配置文件,以便在Xcode中手动签署应用程序时使用. 在开始之前,您需要一个App ID,一个或多个开发证书以及一个或多个已注册的设备.您可以使用Xcode为您管理的Ap ...

  6. AcWing算法基础1.2

    排序 归并排序 归并排序和快速排序相反,快排是先排后分再合并,归并则是先分后排再合并 归并排序时间复杂度是O(n logn) 分析:    ------------------------------ ...

  7. cmd bat 相对命令

    "%~dp0",在BAT中,是不是“相对路径”的意思 (2013-08-21 12:19:32) 转载▼ 标签: 杂谈 分类: C# 0念 零 ,代表你的批处理本身. d p是FO ...

  8. 淘宝ip地址库接口会导致TTFB时间变长,网站打开速度变慢

    前一段时间闲来无事发现别人的网站上有显示当前用户城市的功能,就自己也整了一个 这是淘宝ip地址库调用方法 然后问题就出现了,网站打开速度慢的要死 用F12发现是TTFB太慢,然后百度了,发现了问题的原 ...

  9. jsp之认识 servlet (基础、工作原理、容器请求处理)

    Tomcat 的安装: eclipse 需要自行安装tomcat,这是web 项目运行的服务器.如果用的是MyEclipse,里面自带tomcat,方便清除部署垃圾,利于项目运行. Tomcat的安装 ...

  10. [Android]异常4-javax.mail.AuthenticationFailedException

    javax.mail.AuthenticationFailedException 背景:JavaMail发送电子邮件 异常原因: 可能一>发件人帐号.密码有误 可能二>需要使用SSL安全认 ...