| 傳統方案 | 痛點 |
|---|---|
| 雙上行 + STP | 一條鏈路 Blocking,50% 帶寬浪費;收斂慢 (30-50s);無雙活 |
| 傳統 Port-Channel | 成員端口必須在同一物理設備,不支持跨機箱聚合 |
| vPC | 跨設備聚合 + 雙活轉發 + 無 STP 阻塞 + 亞秒級收斂 |
channel-group mode active + vpc 。! ========== Nexus01 ==========
feature vpc
vpc domain 1
peer-keepalive destination 10.10.10.11 source 10.10.10.10 vrf management
peer-switch ! 聯合 STP Root,加速收斂
auto-recovery ! 単節點重啟自動恢復 vPC
delay restore 150 ! 重啟後延遲恢復 vPC,待路由收斂
!
interface Ethernet1/31-32
switchport mode trunk
channel-group 10 mode active
!
interface port-channel 10
vpc peer-link ! 指定為 Peer Link
switchport mode trunk
spanning-tree port type network
!
! 下行 vPC 成員端口 (例: 連接服務器/接入交換機)
interface Ethernet1/1
channel-group 20 mode active
!
interface port-channel 20
vpc 20 ! vPC ID 全域唯一,兩側一致
switchport mode trunk
switchport trunk allowed vlan 10,20,100
! ========== Nexus02 (關鍵差異: peer-keepalive IP 互換) ==========
feature vpc
vpc domain 1
peer-keepalive destination 10.10.10.10 source 10.10.10.11 vrf management
peer-switch
auto-recovery
delay restore 150
!
interface Ethernet1/31-32
switchport mode trunk
channel-group 10 mode active
!
interface port-channel 10
vpc peer-link
switchport mode trunk
spanning-tree port type network
!
interface Ethernet1/1
channel-group 20 mode active
!
interface port-channel 20
vpc 20
switchport mode trunk
switchport trunk allowed vlan 10,20,100
show vpc brief ! 總覽:Peer-link up, vPC 20 up, consistency success
show vpc consistency-parameters global ! 全局一致性檢查 (MTU/QoS/STP/VLAN/ACL...必須一致)
show vpc peer-keepalive ! Keepalive 狀態
show port-channel summary ! 物理成員狀態
Cisco Nexus 5000/5500/5600/6000/7000/7700/9000 系列 (NX-OS)。不支持 Catalyst IOS/IOS-XE 平台 (需用 StackWise Virtual / VSS 實現類似功能)。
peer-switch + auto-recovery + delay restore。vpc domain 1 / config-sync。orphan-port suspend (Peer Link 故障時掛起孤兒端口防黑洞)。