このドキュメントでは、ポート チャネルを Cisco Nexus 1000V シリーズ スイッチ(N1KV)に導入する際のベスト プラクティスについて説明します。 N1KV では、ホスト 1 つにつき複数のインターフェイスを含んでいるポート プロファイルのためにポート チャネルが必要になります。
次の項目に関する知識が推奨されます。
このドキュメントの情報は、次のソフトウェアとハードウェアのバージョンに基づくものです。
本書の情報は、特定のラボ環境にあるデバイスに基づいて作成されたものです。 このドキュメントで使用するすべてのデバイスは、初期(デフォルト)設定の状態から起動しています。 稼働中のネットワークで作業を行う場合、コマンドの影響について十分に理解したうえで作業してください。
この項で取り上げる設定は次のとおりです。
Cisco UCS では、ブレードとアップストリーム ネットワークの間で 2 つのダイバース パスを使用します。 現在、ファブリック インターコネクトは、ブレードに対する Link Aggregation Control Protocol(LACP)およびバーチャル ポート チャネル(vPC)によるサウスバウンドをサポートしていません。 N1KV から見ると、これは静的ポート チャネルを使用する必要があることを意味します。 アップストリームのスイッチは Multichassis EtherChannel をサポートしていないので、MAC ピン接続が必要になります。
# VSM configuration
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 100, 101, 102, 103, 200 - 300
channel-group auto mode on mac-pinning
no shutdown
system vlan 100,101,102,103
state enabled
# Upstream switch configuration
-None required
このトポロジでは、各ラック サーバが 2 つの Nexus スイッチに物理的に(スイッチごとに 1 本のケーブルで)接続されます。 LACP は、トラフィックを最適に分散させ、中断せずにリンクを追加/削減することが可能であるため、推奨されるモードです。 アップストリームの Nexus スイッチにすでに vPC ピア リンクが設定されていることが前提になります。
# VSM configuration
feature lacp
lacp offload
port-channel load-balance ethernet source-mac
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 100, 101, 102, 103, 200 - 300
channel-group auto mode active
no shutdown
system vlan 100,101,102,103
state enabled
# Nexus 5k/7k switches #1 & #2 configuration
interface port-channel1000
switchport mode trunk
vpc 1000
switchport trunk allowed vlan 100-103,200-300
spanning-tree port type edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
no lacp suspend-individual <- Nexus 7k only!!!
!
interface Ethernet1/11
description ESX-Host1
switchport mode trunk
switchport trunk allowed vlan 100-103,200-300
spanning-tree port type edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
channel-group 1000 mode active
このトポロジでは、各ラック サーバが 2 つの異なるスイッチに物理的に接続されますが、vPC は使用できません。 サポートされている唯一の設定は MAC ピン接続です。 この設定は、UCS B シリーズ サーバで使用されるものと同じです。 アップストリームのスイッチは Multichassis EtherChannel 技術をサポートしていないため、静的ポート チャネル(mode on)はサポートされません。
# VSM configuration
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 100, 101, 102, 103, 200 - 300
channel-group auto mode on mac-pinning
no shutdown
system vlan 100,101,102,103
state enabled
# Upstream switch configuration
-None required
このトポロジでは、アップストリームのスイッチが単一のシャーシとして機能します。 これにより N1KV は LACP に接続できます。
# VSM configuration
feature lacp
lacp offload
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 100, 101, 102, 103, 200 - 300
channel-group auto mode active
no shutdown
system vlan 100,101,102,103
state enabled
# 6500 VSS configuration
interface Port-channel1000
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 100-103,200-300
switchport mode trunk
spanning-tree portfast edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
!
interface GigabitEthernet1/1/1
description ESX-Host1 adapter 1
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 100-103,200-300
switchport mode trunk
spanning-tree portfast edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
channel-group 1000 mode active
!
interface GigabitEthernet2/1/1
description ESX-Host1 adapter 2
switchport
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 100-103,200-300
switchport mode trunk
spanning-tree portfast edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
channel-group 1000 mode active
このトポロジでは、サーバが 1 つのアップストリーム スイッチにのみ接続されます。 このトポロジはスイッチの冗長性がないため、ベスト プラクティスではありません。
# VSM configuration
port-profile type ethernet system-uplink
vmware port-group
switchport mode trunk
switchport trunk allowed vlan 100, 101, 102, 103, 200 - 300
channel-group auto mode on
no shutdown
system vlan 100,101,102,103
state enabled
# Upstream Nexus switch
interface port-channel 1000
switchport mode trunk
switchport trunk allowed vlan 100-103,200-300
spanning-tree port type edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
!
interface Ethernet1/11
description ESX-Host1
switchport mode trunk
switchport trunk allowed vlan 100-103,200-300
spanning-tree port type edge trunk
spanning-tree bpduguard enable
spanning-tree bpdufilter enable
channel-group 1000 mode on
このセクションでは、設定が正常に機能していることを確認します。
show run interface po{X} membership
show port-channel summary
このセクションでは、設定のトラブルシューティングに役立つ情報を提供します。
show port-channel summary
show port-channel internal event-history [all|errors]debug lacp all