0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Cisco EtherChannel(LACP)設定手順|LACP/PAgP/Staticの違いと現場のハマりどころ

0
Posted at

Cisco Catalystで複数の物理リンクを束ねるEtherChannel。3モード(LACP/PAgP/Static)の違いと、実機でハマりがちなポイントを整理します。

結論:迷ったらLACPの active ⇔ active

  • LACP(IEEE 802.3ad)= 業界標準。異ベンダー接続もOK
  • PAgP = Cisco独自。レガシー環境のみ
  • Static (mode on) = ネゴシエーションなし。基本非推奨

両端activeが推奨です。passive ⇔ passiveは永遠にネゴが始まらない罠なので注意。

3モード比較

項目 LACP PAgP Static
規格 IEEE 802.3ad Cisco独自 なし
設定モード active/passive desirable/auto on
推奨組合せ active⇔active desirable⇔desirable on⇔on
異ベンダー ×

設定の事前準備チェックリスト

束ねるポート同士で以下を完全一致させる必要があります。

  • 速度・Duplex
  • スイッチポートモード(access or trunk)
  • access vlan / allowed vlan
  • Native VLAN(trunk時)
  • STP関連設定
  • 最大8本(Active)まで

「片側がaccessで、もう片側がtrunk」というパターンで詰まることが現場でよくあります。

LACP設定例(Catalyst 9300同士)

SW1側

SW1# configure terminal
SW1(config)# interface range GigabitEthernet1/0/1 - 2
SW1(config-if-range)# switchport mode trunk
SW1(config-if-range)# switchport trunk allowed vlan 10,20,30
SW1(config-if-range)# channel-protocol lacp
SW1(config-if-range)# channel-group 1 mode active
Creating a port-channel interface Port-channel 1
SW1(config-if-range)# end

SW2側(対向)

SW2# configure terminal
SW2(config)# interface range GigabitEthernet1/0/1 - 2
SW2(config-if-range)# switchport mode trunk
SW2(config-if-range)# switchport trunk allowed vlan 10,20,30
SW2(config-if-range)# channel-protocol lacp
SW2(config-if-range)# channel-group 1 mode active
SW2(config-if-range)# end

動作確認:show etherchannel summary

SW1# show etherchannel summary
Group  Port-channel  Protocol    Ports
------+-------------+-----------+----------------------------
1      Po1(SU)         LACP      Gi1/0/1(P)  Gi1/0/2(P)

Po1(SU) と各ポート横の (P) が出ていればOK。

フラグ 意味
SU / (P) 正常。bundled状態
(I) Stand-alone。対向のmode設定NG
(s) Suspended。設定不一致
(H) Hot-Standby(9本目以降)

ロードバランス調整も忘れずに

デフォルトは src-mac のことが多く、単一サーバが大量送信する環境だと偏ります。

SW1(config)# port-channel load-balance src-dst-mixed-ip-port

L4ポート番号まで考慮するハッシュにすると、同じサーバ間の複数TCPセッションが各リンクに分散されます。

トラブルシュート早見表

症状 よくある原因 対処
(I)のまま 対向がmode on 両側activeに揃える
(s)になる 速度/VLAN不一致 show interfaces で両端比較
passive⇔passiveでネゴ始まらず 双方LACPDU送らない 片側をactiveに
帯域が出ない LB方式偏り port-channel load-balance変更
片リンク断で全落ち min-links設定 port-channel min-links 1

詳しくはブログで

この記事の完全版(実測スループット比較、show lacp neighbor の Port State 0x3D の読み方、現場での失敗エピソードなど)はブログで公開しています。

👉 Cisco EtherChannel(LACP)設定手順|LACP/PAgP/Static の違いと現場のハマりどころ【実機検証】

ネットワーク構築の実機検証や、トラブルシュート系の記事を中心にまとめてます。良かったら覗いてみてください。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?