本製品は、構成したネットワーク環境でループが発生していないかどうかを検出する独自の仕組みを提供します。
LAN/SFPポートから独自のループ検出フレームを送信し、そのフレームが自身に戻ってくるかどうかを監視します。
送信フレームが自身に戻ってきた場合、該当ポートでループが発生していると判断します。
ループ検出のために使用するヤマハ独自のイーサーネットフレーム。
本製品のループ検出仕様について、以下に示します。
以下に本製品におけるループ検出例を示します。
ループ検出ケース | 構成例 | ループ検出状況 |
---|---|---|
1 | 自分が送信したLDFを受信することでループを検出します。 port1.1 : Shutdown |
|
2 | 同一端末の複数ポートでループを検出した場合、大きい番号の ポートをBlockingします。 port1.1 : Detected port1.3 : Blocking |
|
3 | 複数のポートをBlockingすることで、ループを回避します。 Blocking Portの選択は、Case2と同じ規則となります。 port1.1 : Detected port1.2 : Blocking port1.3 : Blocking |
|
4 | 複数組のループを検出した場合、各組で大きい番号のポートを Blockingします。 port1.1 : Detected, port1.2 : Blocking port1.3 : Detected, port1.4 : Blocking |
|
5 | スイッチ同士でループが起きた場合、どちらか一方でループが 検出されます。 ○スイッチ#Aのport1.3で検出した場合 port1.1: Detected, port1.3: Blocking ○スイッチ#Bのport1.7で検出した場合 port1.5: Detected, port1.7: Blocking |
|
6 | ケーブルが繋がっている6ポートのうち、ループ検出が一番早かった 一つのポートをBlockingします。 ○スイッチ#Aのport1.2で検出した場合 port1.1: Detected, port1.2: Blocking ○スイッチ#Bのport1.4で検出した場合 port1.3: Detected, port1.4: Blocking ○スイッチ#Cのport1.6で検出した場合 port1.5: Detected, port1.6: Blocking |
|
7 | 各ポートから送信したLDFが、各ポートに戻ってくるため、 port1.5, port1.6ともにShutdownします。 port1.5 : Shutdown port1.6 : Shutdown |
|
8 | スイッチ#Bのport1.6をBlockingします。 タイミングによってはスイッチ#Aのport1.1はShutdownしますが、 スイッチ#Bのport1.6をBlockingすることで、スイッチ#Aのport1.1の ループは解消されます。 スイッチ#A port1.1 : Shutdown スイッチ#B port1.5 : Detected スイッチ#B port1.6 : Blocking |
関連コマンドについて、以下に示します。
コマンドの詳細は、コマンドリファレンスを参照願います。
操作項目 | 操作コマンド |
---|---|
ループ検出機能の有効・無効設定(システム) | loop-detect enable/disable |
ループ検出機能の有効・無効設定(LAN/SFPポート) | loop-detect enable/disable |
ループ検出時のPort Blockingの設定 | loop-detect blocking enable/disable |
ループ検出状態のリセット | loop-detect reset |
ループ検出 設定状態の参照 | show loop-detect |
ループ検出機能が有効になっていると、以下のような構成のとき、本製品上で発生しているループを検出します。
Yamaha(config)#loop-detect enable ... (システム全体のループ検出機能を有効にする)
Yamaha(config)#interface port1.1 Yamaha(config-if)#spanning-tree disable ... (LANポートごとのスパニングツリー機能を無効にする) Yamaha(config-if)#loop-detect enable ... (LANポートごとのループ検出機能を有効にする) Yamaha(config-if)#loop-detect blocking enable ... (Blockingを有効にする) (上記設定をLANポート #2 に対しても行います。)
Yamaha>show loop-detect loop-detect: Enable port loop-detect port-blocking status ------------------------------------------------------- port1.1 enable(*) enable Normal port1.2 enable(*) enable Normal port1.3 enable enable Normal port1.4 enable enable Normal port1.5 enable enable Normal port1.6 enable enable Normal port1.7 enable enable Normal port1.8 enable enable Normal port1.9 enable enable Normal : : : : ------------------------------------------------------- (*): Indicates that the feature is enabled.
Yamaha>show loop-detect loop-detect: Enable port loop-detect port-blocking status ------------------------------------------------------- port1.1 enable(*) enable Detected ... (LANポート #1 はDetected状態になる) port1.2 enable(*) enable Blocking ... (LANポート #2 はBlocking状態になる) port1.3 enable enable Normal port1.4 enable enable Normal port1.5 enable enable Normal port1.6 enable enable Normal port1.7 enable enable Normal port1.8 enable enable Normal port1.9 enable enable Normal : : : : ------------------------------------------------------- (*): Indicates that the feature is enabled.
Yamaha>show loop-detect loop-detect: Enable port loop-detect port-blocking status ------------------------------------------------------- port1.1 enable(*) enable Shutdown ... (LANポート #1 はShutdown状態になる) port1.2 enable(*) enable Normal port1.3 enable enable Normal port1.4 enable enable Normal port1.5 enable enable Normal port1.6 enable enable Normal port1.7 enable enable Normal port1.8 enable enable Normal port1.9 enable enable Normal : : : : ------------------------------------------------------- (*): Indicates that the feature is enabled.