華為交換機telnet配置和端口防環網


telnet server en/部分交換機用這個telnet server-source all-intface

user-interface vty 0 4
protocol inbound all
authentication-mode password
set authentication password cipher admin@123
user privilege level 15

華為交換機防環

1 stp mode stp 配置交換設備的STP工作模式
2 stp pathcost-standard legacy

# 配置端口路徑開銷計算方法為華為計算方法。

  stp bpdu-protection

配置SwitchB的BPDU保護功能。

interface gigabitethernet 0/0/2
[SwitchB-GigabitEthernet0/0/2] stp edged-port enable

配置端口為邊緣端口。

4 interface gigabitethernet 0/0/2
loopback-detect enable
使能接口的Loopback Detection功能
 
5 配置Loopback Detection處理動作和環路消失后接口的自動恢復時間

interface gigabitethernet 0/0/2

loopback-detect action block

loopback-detect recovery-time 30

6查看配置結果

display loopback-detect

[SwitchA] display loopback-detect
Loopback-detect sending-packet interval: 5                                     
                                                                                
(A): Auto Loopback-detect                                                                                                           
-----------------------------------------------------------------                                                                   
Interface                     RecoverTime  Action     Status                                                                        
-----------------------------------------------------------------
GigabitEthernet0/0/1          30           block      NORMAL
-----------------------------------------------------------------

上述顯示信息表明配置成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM