LoginSignup
0
0

More than 1 year has passed since last update.

HP2530_ループ検知

Posted at

環境

HP2530 YB.16.10.0011

HP2530の設定

VLAN50を作成し、ポート3と4をタグ付けにする

# configure terminal
(config)# vlan 50
(vlan-50)# name roop_test
(vlan-50)# tagged 3-4

ポート3でloop-protectを有効にして、ループ検出時ポートをシャットダウンし、60秒毎に自動復旧、10秒毎にループパケットを送信するように指定。

  • send-disable : ループ検知時にループ検知パケットを送信したポートをシャットダウンします。(デフォルト)
  • no-disable : ループを検知してもポートをシャットダウンしません。
  • send-recv-dis : ループ検知時にループ検知パケットを送信したポート、受信したポートの両方をシャットダウンします。
(config)# loop-protect 3 receover-action send-disable
(config)# loop-protect transmit-interval 10 disable-timer 60  
(config)# save

手動復旧するにはinterface enableを実行。

Catalyst3560設定

#configure terminal
(config)#vlan 50
(config-vlan)#name roop_test
(config-vlan)#exit
(config)#interface gi0/3
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport mode trunk
(config-if)#switchport access vlan 50
(config-if)#no keepalive
(config)#interface gi0/4
(config-if)#switchport trunk encapsulation dot1q
(config-if)#switchport mode trunk
(config-if)#switchport access vlan 50
(config-if)#no keepalive

vlan1,50はSTPを無効

(config)#no spanning-tree vlan 1
(config)#no spanning-tree vlan 50

ループ検知の動作確認

ポート3でループ検知してのでポート4番でDOWN。それから約60秒経過してからポート4番UP。またポート3で検知しての繰り返しが表示されている。

(config)# show logging Keys
:   W=Warning   I=Information
          M=Major     D=Debug E=Error
 ----  Event Log listing: Events Since Boot  ----
 I 04/19/23 10:30:46 00184 mgr: Log cleared as a result of  'clear logging' 
             command
 I 04/19/23 10:31:16 00886 loop-protect: port 3 - loop detected.
 W 04/19/23 10:31:17 00884 loop-protect: port 4 disabled - loop detected.
 I 04/19/23 10:31:17 00898 ports: Loop Protect(62) has disabled port 4 for 60
             seconds
 I 04/19/23 10:31:17 00077 ports: port 4 is now off-line
 I 04/19/23 10:32:17 00900 ports: port 4 timer (62) has expired
 I 04/19/23 10:32:21 00076 ports: port 4 is now on-line
 I 04/19/23 10:32:26 00886 loop-protect: port 3 - loop detected.
 W 04/19/23 10:32:27 00884 loop-protect: port 4 disabled - loop detected.
 I 04/19/23 10:32:27 00898 ports: Loop Protect(62) has disabled port 4 for 60
             seconds
(config)# show loop-protect
  Status and Counters - Loop Protection Information
 
   Transmit Interval (sec)     : 10          
   Port Disable Timer (sec)    : 60          
   Loop Detected Trap          : Disabled    
   Loop Protect Mode           : Port        
   Loop Protect Enabled VLANs  :             
 
 
          Loop    Loop     Detected  Loop   Time Since  Rx            Port   
   Port   Protect Detected on VLAN   Count  Last Loop   Action        Status  
   ------ ------- -------- --------- ------ ----------- ------------- --------
   3      Yes     Yes      NA        117    11m,52s     send-disable  Up      
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0