このドキュメントはIOSが実行している2台のCatalystスイッチ間でレイヤ2ポートチャネルを簡単に作成する為の手順を提供します。
この例では、Catalyst4500とCatalyst6500の間においてLACPを使用したポートチャネルを作成します。
ポートチャネルを作成する際は適切な手順で行われることが非常に重要です。
1) 両機器で使用するポートチャネル番号を決め、それが使用されていない事を確認してください。
2) ポートチャネルに割り当てる前にインタフェースの属性を設定してください。
3) インタフェースをポートチャネルに割り当ててください。
4) ポートチャネルがアップしている事、インタフェースが適切にバンドルされている事を確認してください。
1) "show etherchannel summ"コマンドを使用し、両機器で使用するポートチャネル番号を決め、それが使用されていない事を確認してください。
4500#sh etherc summ
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
20 Po20(RD) -
!! ポートチャネル番号「20」が既に存在しているため、新しいポートチャネルにこのポートチャネル番号を使わないようにしてください。
2) ポートチャネルに割り当てる前にインタフェースの属性を設定してください。
4500(config)#int range g1/2-3
4500(config-if-range)#switchport
4500(config-if-range)#switchport trunk enc dot1q
4500(config-if-range)#switchport mode trunk
4500(config-if-range)#switchport trunk allowed vlan 2-3
3) インタフェースにポートチャネルを設定してください。スイッチが動的にポートチャネルインタフェースを作成します。
4500(config-if-range)#channel-group 10 mode active
Creating a port-channel interface Port-channel 10
この時点ではポートチャネルはダウンしており、「アグリゲートを待っている」状態となっているため、対向のスイッチでポートチャネルを作成する必要があります。
インタフェースの後ろに(I)が付いていることに注意してください。これは対向のスイッチからLACPパケットの受信を待っている事を示しています
4500#sh etherchannel summary
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
10 Po10(SD) LACP Gi1/2(I) Gi1/3(I)
対向スイッチに接続し、1-3と同じ手順を実行してください。
6500(config)#int range g5/1-2
6500(config-if-range)#switchport
6500(config-if-range)#switchport trunk enc dot
6500(config-if-range)#switchport mode trunk
6500(config-if-range)#switchport trunk allowed vlan 2,3
6500(config-if-range)#channel-group 10 mode active
6500において、チャネルへポートを追加した後に、次のメッセージが出ます:
%EC-SP-5-PORTDOWN: Shutting down Gi5/1 as its port-channel is admin-down
%EC-SP-5-PORTDOWN: Shutting down Gi5/2 as its port-channel is admin-down
ポートチャネルをアップするために、ポートチャネルインタフェースを no shut する必要があります。:
6500(config)#int port-channel 10
6500(config-if)#no shut
4) 確認:
イーサチャネルが両端の機器で適切にバンドルされているか確認してください。
インタフェースの後ろに(P)がが付いていることに注意してください。
これは、インタフェースがバンドルされていることを示しています。
4500#sh etherc summ
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Port
------+-------------+-----------+-----------------------------------------------
10 Po10(SU) LACP Gi1/2(P) Gi1/3(P)
6500#sh etherc summ
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator
M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 1
Number of aggregators: 1
Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
10 Po10(SU) LACP Gi5/1(P) Gi5/2(P)
ポートチャネルインタフェースにおいて、物理インタフェースと同じ設定が表示されます。:
4500#sh run int po10
Building configuration...
Current configuration : 140 bytes
!
interface Port-channel10
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2,3
switchport mode trunk
end
6500#sh run int port-channel 10
Building configuration...
Current configuration : 140 bytes
!
interface Port-channel10
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2,3
switchport mode trunk
end
今後の全ての変更(VLANの作成、削除など)は、ポートチャネルインタフェース上で行う必要があります。:
Catalyst4500 Sup6-E ではポートチャネル上に直接 auto-qos を設定することができないので注意が必要です。
詳細および適切な設定手順に関しては、CSCsq67430 を参照してください。
英語版 https://supportforums.cisco.com/docs/DOC-14451