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 ...
随机推荐
- go语言笔记——还是大爱的我的python,开发效果高,tornado的性能也很不错
Go 自带的工具集主要使用脚本和 Go 语言自身编写的,目前版本的 Go 实现了以下三个工具: go install 是安装 Go 包的工具,类似 Ruby 中的 rubygems.主要用于安装非标准 ...
- PCB MS SQL 存储过程(CLR) 实现Json转DataTable表的方法
一.准备需转为DataTable的json字符串 原json字符串数据 [{"TechName":"ECN","TechNo":" ...
- hebernate基础学习2---属性
---------------------------------------------------------------------------------------------------- ...
- P2533 [AHOI2012]信号塔
传送门 据说是一个叫做随机增量法的东西 枚举\(i\),如果不在圆中将它设为圆心 枚举\(j\),如果不在圆中将\((i,j)\)成为新的圆的直径 枚举\(k\),如果不在圆中让\(i,j,k\)组成 ...
- ibatis 基类生成
using IBatisNet.Common.Utilities; using IBatisNet.DataMapper; using IBatisNet.DataMapper.Configurati ...
- SQL SERVER 获取给定时间段内的所有日期列表
declare @StartDate DATETIME = '2018/08/01'declare @EndDate DATETIME ='2018/09/27'SELECT CONVERT (VAR ...
- .Net application,Session,Cache简单比较
Application 对象用于存储和访问来自任何页面的变量,类似于 session 对象.不同之处在于,所有的用户分享一个 Application 对象,而 session 对象和用户的关系是一一对 ...
- 单例模式在多线程环境下的lazy模式为什么要加两个if(instance==null)
刚才在看阿寻的博客”C#设计模式学习笔记-单例模式“时,发现了评论里有几个人在问单例模式在多线程环境下为什么lazy模式要加两个if进行判断,评论中的一个哥们剑过不留痕,给他们写了一个demo来告诉他 ...
- Android Activity作为dialog对话框的使用详细介绍
Activity做为Android应用层四大组件的重要组成部分,它的灵活性.可扩性无论是在应用还是游戏方面都得到了广泛应用,本文主要介绍Activity作为dialog对话框 的使用方法进行说明. 本 ...
- T-SQL语句以及几个数据库引擎
创建表 注意事项: A.自增长 B.数据库引擎, ISAM 是一个定义明确且历经时间考验的数据表格管理方法,它在设计之时就考虑到数据库被查询的次数要远大于更新的次数.因此,IS ...