本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
本文說明在 Cisco Nexus 9000 (9k) 系列交換器上使用虛擬連接埠通道 (vPC) 的最佳作法。
熱待命路由器通訊協定(HSRP)、虛擬路由器備援通訊協定(VRRP)、連結彙總控制通訊協定(LACP)也包含在此基本授權中。
開放最短路徑優先(OSPF)協定或中間系統到中間系統(ISIS)協定等第3層功能需要LAN_ENTERPRISE_SERVICES_PKG許可證。
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
vPC交換矩陣對等提供增強型雙歸屬接入解決方案,不會造成vPC對等鏈路浪費物理埠的開銷。
本文檔適用於:
本檔案也說明與vPC相關的服務中軟體升級(ISSU)作業,並提供有關最新vPC增強功能(延遲復原、網路虛擬介面(NVE)介面計時器)的詳細資訊。
vPC是一項虛擬化技術,可將Cisco Nexus 9000系列配對裝置作為接入層裝置或端點的唯一第2層邏輯節點。
vPC屬於多機箱EtherChannel(MCEC)技術系列。虛擬埠通道(vPC)允許物理連線到兩個不同的Cisco Nexus 9000系列裝置的鏈路顯示為連線到第三裝置的單個埠通道。
第三個裝置可以是交換機、伺服器或支援鏈路聚合技術的任何其他網路裝置。
vPC具有以下技術優勢:
vPC為使用者提供了以下直接的運營和架構優勢:
vPC通過以下方法同時利用硬體和軟體冗餘功能:
從STP中,vPC消除了STP阻塞埠,並使用所有可用的上行鏈路頻寬。STP用作故障安全機制,不指示vPC連線裝置的L2路徑。
在vPC域中,使用者可以通過多種方式連線接入裝置:利用帶有埠通道的主用/主用行為的vPC連線連線、包括STP的主用/備用連線以及在接入裝置上運行的不帶STP的單個連線。
在圖中,主機連線到一對Nexus 9000交換機時包含vPC域ID,但主機配置的交換機本身不運行vPC。接入交換機/主機將上行鏈路註冊為簡單埠通道,而沒有vPC知識。
Leaf-1
vlan 2
vn-segment 10002
vlan 10
vn-segment 10010
route-map PERMIT-ALL permit 10
vrf context test
vni 10002
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
interface nve1
no shutdown
host-reachability protocol bgp
source-interface loopback1
member vni 10002 associate-vrf
member vni 10010
suppress-arp
mcast-group 239.1.1.1
interface loopback0
ip address 10.1.1.1/32
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
no shutdown
interface loopback1
ip address 10.2.1.1/32
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
no shutdown
Leaf-2
vlan 2
vn-segment 10002
vlan 10
vn-segment 10010
route-map PERMIT-ALL permit 10
vrf context test
vni 10002
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
interface nve1
no shutdown
host-reachability protocol bgp
advertise virtual-rmac
source-interface loopback1
member vni 10002
associate-vrf member
vni 10010
suppress-arp
mcast-group 239.1.1.1
interface loopback1
ip address 10.2.1.4/32
ip address 10.2.1.10/32 secondary
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
icam monitor scale
interface loopback0
ip address 10.1.1.4/32
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
no shutdown
Leaf-2(config-if)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.26 source 10.201.182.25
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
Leaf-3
vlan 2
vn-segment 10002
vlan 10
vn-segment 10010
route-map PERMIT-ALL permit 10
vrf context test
vni 10002
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
interface nve1
no shutdown
host-reachability protocol bgp
advertise virtual-rmac
source-interface loopback1
member vni 10002
associate-vrf member
vni 10010
suppress-arp
mcast-group 239.1.1.1
interface loopback1
ip address 10.2.1.3/32
ip address 10.2.1.10/32 secondary
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
icam monitor scale
interface loopback0
ip address 10.1.1.3/32
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
Leaf-3(config-if)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.25 source 10.201.182.26
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
Spine-1
interface loopback0
ip address 10.3.1.1/32
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
Host-1
interface Vlan10
no shutdown
vrf member test
ip address 172.16.1.101/25
Host-2
interface Vlan10
no shutdown
vrf member test
ip address 172.16.1.102/25
使用本節內容,確認您的組態是否正常運作。
vrf的IP介面狀態「測試」(3) 介面IP地址介面狀態 |
VRF的IP介面狀態「測試」(3) interface IP Address Interface Status |
本節提供的資訊可用於對組態進行疑難排解。
Leaf-2(config-if)# show vpc bri vPC狀態 ---------------------------------------------------------------------------- 請檢查「show vpc consistency-parameters vpc <vpc-num>」,以瞭解關閉vpc的一致性原因和型別2的一致性原因 |
Leaf-3(config-if)# show vpc bri Virtual-peerlink mode :已禁用 vPC狀態 ---------------------------------------------------------------------------- 請檢查「show vpc consistency-parameters vpc <vpc-num>」,以瞭解關閉vpc的一致性原因和型別2的一致性原因 |
Leaf-2
Leaf-2(config-vpc-domain)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.26
virtual peer-link destination 10.1.1.3 source 10.1.1.4 dscp 56
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface Ethernet1/46
mtu 9216
port-type fabric
ip address 192.168.2.1/24
ip ospf network point-to-point
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
no shutdown
Leaf-3
Leaf-3(config-vpc-domain)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.25
virtual peer-link destination 10.1.1.4 source 10.1.1.3 dscp 56
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface Ethernet1/47
mtu 9216
port-type fabric
ip address 192.168.1.1/24
ip ospf network point-to-point
ip router ospf 100 area 0.0.0.0
ip pim sparse-mode
no shutdown
使用本節內容,確認您的組態是否正常運作。
show vpc brief
show vpc role
show vpc virtual-peerlink vlan consistency
show vpc fabric-ports
show vpc consistency-para global
show nve interface nve 1 detail
Leaf-2
Leaf-2(config-if-range)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.26 source 10.201.182.25
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
Leaf-3
Leaf-3(config-if-range)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.25 source 10.201.182.26
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
Leaf-4
Leaf-4(config-if)# show run vpc
feature vpc
vpc domain 2
peer-switch
peer-keepalive destination 10.201.182.29 source 10.201.182.28
peer-gateway
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
Leaf-5
Leaf-5(config-if)# show running-config vpc
feature vpc
vpc domain 2
peer-switch
peer-keepalive destination 10.201.182.28 source 10.201.182.29
peer-gateway
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
在雙面vPC中,兩台Nexus 9000交換機都運行vPC。每個Nexus 9000交換機的vPC對都使用唯一的vPC連線到聚合vPC對。
Leaf-2
Leaf-2(config-if-range)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.26
virtual peer-link destination 10.1.1.3 source 10.1.1.4 dscp 56
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
Leaf-3
Leaf-3(config-if-range)# show run vpc
feature vpc
vpc domain 1
peer-switch
peer-keepalive destination 10.201.182.25
virtual peer-link destination 10.1.1.4 source 10.1.1.3 dscp 56
peer-gateway
ip arp synchronize
interface port-channel10
vpc peer-link
interface port-channel20
vpc 20
interface port-channel40
vpc 40
Leaf-4 and Leaf-5 configuration is similar as double-sided vPC.
本節提供的資訊可用於對組態進行疑難排解。
Leaf-4(config-if)# show spanning-tree VLAN0010 支援生成樹通訊協定rstp 根ID優先順序32778 地址0023.04ee.be01 成本5 埠4105(port-channel10) Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32778(優先順序32768 sys-id-ext 10) 地址0023.04ee.be02 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10根FWD 4 128.4105(vPC對等鏈路)網路P2p Po20設計轉發1 128.4115(vPC)P2p Po40根轉發1 128.4135(vPC)P2p VLAN0020 支援生成樹通訊協定rstp 根ID優先順序32788 地址0023.04ee.be02 此網橋是根 Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32788(優先順序32768 sys-id-ext 20) 地址0023.04ee.be02 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10根FWD 4 128.4105(vPC對等鏈路)網路P2p Po20設計轉發1 128.4115(vPC)P2p Po40設計轉發1 128.4135(vPC)P2p |
Leaf-5(config-if)# show spanning-tree VLAN0010 支援生成樹通訊協定rstp 根ID優先順序32778 地址0023.04ee.be01 成本1 埠4135(埠通道40) Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32778(優先順序32768 sys-id-ext 10) 地址0023.04ee.be02 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10 Desg FWD 4 128.4105(vPC對等鏈路)網路P2p Po20設計轉發1 128.4115(vPC)P2p Po40根轉發1 128.4135(vPC)P2p VLAN0020 支援生成樹通訊協定rstp 根ID優先順序32788 地址0023.04ee.be02 此網橋是根 Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32788(優先順序32768 sys-id-ext 20) 地址0023.04ee.be02 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10 Desg FWD 4 128.4105(vPC對等鏈路)網路P2p Po20設計轉發1 128.4115(vPC)P2p Po40設計轉發1 128.4135(vPC)P2p Leaf-5(config-if)# |
Leaf-2(config-if-range)# show spanning-tree VLAN0001 支援生成樹通訊協定rstp 根ID優先順序32769 地址0023.04ee.be01 成本0 埠0() Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32769(優先順序32768 sys-id-ext 1) 地址003a.9c28.2cc7 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Eth1/47 Desg FWD 4 128.185 P2p VLAN0010 支援生成樹通訊協定rstp 根ID優先順序32778 地址0023.04ee.be01 此網橋是根 Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32778(優先順序32768 sys-id-ext 10) 地址0023.04ee.be01 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10 Desg FWD 4 128.4105(vPC對等鏈路)網路P2p Po40設計轉發1 128.4135(vPC)P2p Eth1/47 Desg FWD 4 128.185 P2p Leaf-2(config-if-range)# |
Leaf-3(config-if-range)# show spanning-tree VLAN0010 支援生成樹通訊協定rstp 根ID優先順序32778 地址0023.04ee.be01 此網橋是根 Hello時間2秒最大老化時間20秒轉發延遲15秒 網橋ID優先順序32778(優先順序32768 sys-id-ext 10) 地址0023.04ee.be01 Hello時間2秒最大老化時間20秒轉發延遲15秒 介面角色Sts Cost Prio.Nbr型別 ---------------- ---- — --------- -------- -------------------------------- Po10根FWD 4 128.4105(vPC對等鏈路)網路P2p Po40設計轉發1 128.4135(vPC)P2p Leaf-3(config-if-range)# |
本節介紹無中斷軟體升級的最佳實踐,在配置vPC域時使用Cisco ISSU。vPC System NX-OS升級(或降級)vPC功能與Cisco ISSU完全相容。
在vPC環境中,建議使用ISSU來升級系統。vPC系統可以獨立升級,而不會中斷流量。升級是序列化的,且必須一次執行一次。ISSU期間的配置鎖定可防止兩台vPC對等裝置發生同步升級(啟動ISSU時,配置會自動鎖定在其他vPC對等裝置上)。要執行ISSU操作,需要1個單旋鈕。
註:帶有FEX的vPC(主機vPC)也完全支援ISSU。當升級的vPC域具有FEX時,資料包丟失為零。通過標準埠通道雙連線到兩個不同FEX的伺服器不知道升級操作發生在網路中。
switch#install all nxos bootflash:
vPC對等裝置1、9K1(在主要或輔助vPC對等裝置上首先載入代碼不重要)使用ISSU。請注意,其他vPC對等裝置(9K2)已鎖定其配置,以防止交換機上的任何操作。
註:從7.x升級到9.3.8/9.3.9導致vPC上的40g埠關閉。如果對等鏈路使用40 G連線,建議將兩台交換機升級到9.3.8/9.3.9以啟用40G或路徑需要遵循:I7(7)- 9.3(1)- 9.3(9)。
show version
show module
show spanning-tree summary
show vlan summary
show ip interface brief
show port-channel summary
show vpc
show vpc brief
show vpc role
show vpc peer-keepalives
show vpc statistics peer-keepalive
show vpc consistency-parameters global
show vpc consistency-parameters interface port-channel<>
show vpc consistency-parameters vlans
show run vpc all
show hsrp brief
show hsrp
show run hsrp
show hsrp interface vlan
Show vrrp
Show vrrp brief
Show vrrp interface vlan
Show run vrrp
確保通過冗餘交換機上的共用命令將流量轉移到冗餘交換機。
show vpc
show vpc statistics
show ip route vrf all summary
show ip mroute vrf all summary
show ip interface brief
show interface status
show port-channel summary
show hsrp brief
Show vrrp brief
確保已使用正確的映像和許可證設定更換裝置。
show version
show module
show diagnostic results module all detail
show license
show license usage
show system internal mts buffer summary|detail
show logging logfile
show logging nvram
如果啟用了自動恢復,請在替換期間將其禁用。
Leaf-2(config)# vpc domain 1
Leaf-2(config-vpc-domain)# no auto-recovery
Leaf-2(config-if)# show vpc bri
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
vPC domain id : 1
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : primary
Number of vPCs configured : 1
Peer Gateway : Enabled
Dual-active excluded VLANs : - Graceful Consistency Check : Enabled
Auto-recovery status : Disabled
Delay-restore status : Timer is off. (timeout = 30s)
Delay-restore SVI status : Timer is off (timeout = 10s)
Delay-restore Orphan-port status : Timer is off.(timeout = 0s)
Operational Layer3 Peer-router : Disabled
Virtual-peerlink mode : Disabled
確保粘滯位設定為False。
Leaf-5(config-vpc-domain)# show sys internal vpcm info all | i i stick
OOB Peer Version: 2 OOB peer was alive: TRUE Sticky Master: FALSE
show version
show module
show diagnostics result module all detail
show environment
show license usage
show interface status
show ip interface brief
show interface status err-disabled
show cdp neighbors
show redundancy status
show spanning-tree summary
show port-channel summary
show vpc
show vpc brief
show vpc role
show vpc peer-keepalives
show vpc statistics peer-keepalive
show vpc consistency-parameters global
show vpc consistency-parameters interface port-channel1
show vpc consistency-parameters vlans
show hsrp brief
show vrrp brief
在vPC VXLAN上,如果SVI數量增加,建議在vPC配置下增加延遲恢復介面VLAN計時器。例如,如果有1000個VNI和1000個SVI,建議將延遲恢復介面VLAN計時器增加到45秒。
switch(config-vpc-domain)# delay restore interface-vlan 45
Leaf-2(config-if-range)# show nve interface nve 1 detail
Interface: nve1, State: Up, encapsulation: VXLAN
VPC Capability: VPC-VIP-Only [notified]
Local Router MAC: 003a.9c28.2cc7
Host Learning Mode: Control-Plane
Source-Interface: loopback1 (primary: 10.1.1.41.1.4, secondary: 10.1.1.10)
Source Interface State: Up
Virtual RMAC Advertisement: Yes
NVE Flags:
Interface Handle: 0x49000001
Source Interface hold-down-time: 180
Source Interface hold-up-time: 30
Remaining hold-down time: 0 seconds
Virtual Router MAC: 0200.1401.010a
Interface state: nve-intf-add-complete
Fabric convergence time: 135 seconds
Fabric convergence time left: 0 seconds
vPC對等交換機功能允許一對vPC對等裝置在第2層拓撲中顯示為單個生成樹協定根(它們具有相同的網橋ID)。 必須在兩台vPC對等裝置上配置vPC對等交換機才能正常運行。命令如下:
N9K(config-vpc-domain)# peer-switch
vPC對等網關允許vPC對等裝置充當傳送到另一個對等裝置路由器MAC的資料包的活動網關。它將流量本地轉發到vPC對等裝置並避免使用對等鏈路。啟用對等網關功能時對流量和功能沒有影響。
N9k-1(config)# vpc domain 1
N9k-1(config-vpc-domain)# peer-gateway
引入了第3層peer-router命令,該命令可在vPC上啟用路由。
N9k-1(config)# vpc domain 1
N9k-1(config-vpc-domain)# layer3 peer-router
N9K-1(config-vpc-domain)# exit
N9K-1# sh vpc
Legend:(*)
- local vPC is down, forwarding via vPC peer-link
vPC domain id : 100
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type-2 consistency status : success
vPC role : secondary, operational primary
Number of vPCs configured : 2
Peer Gateway : Enabled
Peer gateway excluded VLANs : -
Peer gateway excluded bridge-domains : -
Dual-active excluded VLANs and BDs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Enabled (timeout = 240 seconds)
Operational Layer3 Peer-router : Enabled
修訂 | 發佈日期 | 意見 |
---|---|---|
2.0 |
06-Dec-2023 |
已新增Alt文本。
已更新樣式要求、參與者清單和格式。 |
1.0 |
19-Oct-2022 |
初始版本 |