이 문서에서는 Cisco Nexus 1000V Series 스위치(N1KV)에 포트 채널을 구축할 때 사용하는 모범 사례에 대해 설명합니다. N1KV에는 호스트당 두 개 이상의 인터페이스를 포함하는 포트 프로필에 대한 포트 채널이 필요합니다.
다음 주제에 대한 지식을 보유하고 있으면 유용합니다.
이 문서의 정보는 다음 소프트웨어 및 하드웨어 버전을 기반으로 합니다.
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.현재 네트워크가 작동 중인 경우, 모든 명령어의 잠재적인 영향을 미리 숙지하시기 바랍니다.
이 섹션에는 다음 컨피그레이션이 포함되어 있습니다.
Cisco UCS는 블레이드와 업스트림 네트워크 간에 두 가지 다양한 경로를 사용합니다.현재 Fabric Interconnect는 블레이드를 향하는 LACP(Link Aggregation Control Protocol)/vPC(Virtual Port Channel)를 지원하지 않습니다.즉, N1KV 관점에서 고정 포트 채널을 사용해야 합니다.업스트림 스위치는 멀티섀시 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
이 토폴로지에서는 각 랙 서버가 두 개의 서로 다른 Nexus 스위치에 물리적으로 연결됩니다. 즉 각 스위치에 하나의 케이블을 연결합니다.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
이 토폴로지에서는 각 랙 서버가 두 개의 다른 스위치에 물리적으로 연결되지만 vPC는 사용할 수 없습니다.지원되는 컨피그레이션은 MAC 피닝뿐입니다.이 컨피그레이션은 UCS B-Series 서버에서 사용되는 컨피그레이션과 동일합니다.업스트림 스위치는 멀티섀시 EtherChannel 기술을 지원하지 않으므로 정적 포트 채널(모드 켜짐)은 지원되지 않습니다.
# 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
이 토폴로지에서는 서버가 업스트림 스위치에 단일 홈이 됩니다.이 토폴로지는 스위치 이중화를 제공하지 않으며 모범 사례가 아닙니다.
# 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