从零自学网络工程师 ENSP操作 DAY10

交换机实验-5
实验目的:
1.掌握修改交换机sTP模式的方法
2.掌握修改桥优先级,控制根桥选举的方法
3.拿握修改端口优先级,控制根端口和指定端口选举的方法
实验步骤:
1.进入交换机系统视图
2.设置STP模式为STP(默认为MSTP)
3.查看sTP状态与状态信息摘要
本次实验需要掌握的命令:
stp mode stp //Stp的模式为STP
display stpbrief 7/查看STP接口状态摘要

网络拓扑图如下:

配置LSW1:
进入系统视图,重命名为LSW1,关闭回显信息.设置stp模式为stp.

<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sys LSW1
[LSW1]
Aug 15 2025 16:54:21-08:00 LSW1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.2
5.191.3.1 configurations have been changed. The current change number is 4, the 
change loop count is 0, and the maximum number of records is 4095.sts
[LSW1]undo info-center en
Info: Information center is disabled.
[LSW1]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]

LSW2 LSW3同上.
 

<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center en
Info: Information center is disabled.
[Huawei]sys LSW2
[LSW2]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW2]
<Huawei>
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center en
Info: Information center is disabled.
[Huawei]sys LSW3
[LSW3]stp mode stp
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW3]

检视stp接口,信息太多,查看各交换机stp摘要.

[LSW1]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/6        ROOT  FORWARDING      NONE
[LSW1]
[LSW2]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        ROOT  FORWARDING      NONE
[LSW2]
[LSW3]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/5        DESI  FORWARDING      NONE
[LSW3]

实验结束,关闭实验设备.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值