天天看點

跨裝置鍊路聚合-VPC

一、VPC簡介

      VPC 是一種實作跨裝置鍊路聚合的機制,基于 LACP(單台裝置鍊路聚合的标準) 進行了擴充,能夠實作多台裝置間的鍊路聚合,進而把鍊路可靠性從單闆級提高到了裝置級。

跨裝置鍊路聚合-VPC

       如上圖所示,在傳統的網絡拓撲中要實作網絡的備援,一般都會使用雙鍊路上聯的方式,但這種方式明顯有一個環路,在這種拓撲下都會開啟 STP,這時就會有一條鍊路是處于 Block 狀态的,是以這種方式可以實作備援,但不能增加網絡帶寬。想通過鍊路聚合的方式做雙鍊路上聯到兩台不同的裝置,但是 Port-Channel 不支援跨裝置聚合,是以在這種背景下就出現了 VPC 的概念。和傳統跨裝置方案的差別是:既增強網絡備援又能增加帶寬。

二、VPC網絡優勢

1、二層網絡優勢

(1)通過備援系統提高系統可靠性

(2)無需使用生成樹協定,即能進行環路管理

(3)始終提供完全系統帶寬可用性

(4)迅速恢複鍊路故障

為任意支援IEEE802.3ad的邊緣裝置提供端口信道連接配接

2、支援的三層特性

(1)通過HSRP配置進行主用-主用第三層轉發

(2)通過主用-主用HSRP進行完全第三層帶寬通路

(3)通過主用-主用PIM指定路由器進行第三層迅速多點傳播融合

三、VPC配置

跨裝置鍊路聚合-VPC

1、Nexus 1配置

(1)開啟VPC與lacp功能

Nexus1# configure terminalNexus1(config)# feature VPC //全局開啟 VPC 功能Nexus1(config)# feature lacp //全局開啟 lacp 功能      

(2)配置mgmt接口IP,用來檢測Peer link

Nexus1(config)# interface mgmt0Nexus1(config-if)# ip address 12.12.12.1/30      

(3)配置peer link

Nexus1(config)# VPC domain 1Nexus1(config-VPC-domain)# peer-keepalive destination 12.12.12.2 source 12.12.12.1 //指定peer源目IPNexus1(config)# interface range Ethernet 1/31-32 //将兩個實體端口加入channel 12Nexus1(config-if-range)# switchportNexus1(config-if-range)# switch mode trunkNexus1(config-if-range)# channel-group 12 mode active //配置lacp模式Nexus1(config)# interface port-channel 12  //指定port-channel 12 為peer鍊路Nexus1(config-if)# VPC peer-link      

(4)配置下聯交換機port  channel

Nexus1(config)# interface Ethernet1/1 //将實體端口加入channel 100Nexus1(config-if)# switchport mode trunkNexus1(config-if)# channel-group 100 mode activeNexus1(config)# interface port-channel 100 //channel 100加入VPC 100Nexus1(config-if)# VPC 100       

2、Nexus 2配置

Nexus1# configure terminalNexus1(config)# feature VPC //全局開啟 VPC 功能Nexus1(config)# feature lacp //全局開啟 lacp 功能      
Nexus1(config)# interface mgmt0  Nexus1(config-if)# ip address 12.12.12.2/30      
Nexus1(config)# VPC domain 1Nexus1(config-VPC-domain)# peer-keepalive destination 12.12.12.1 source 12.12.12.2 //指定peer源目IPNexus1(config)# interface range Ethernet 1/31-32 //将兩個實體端口加入channel 12Nexus1(config-if-range)# switchportNexus1(config-if-range)# switch mode trunkNexus1(config-if-range)# channel-group 12 mode active //配置lacp模式Nexus1(config)# interface port-channel 12  //指定port-channel 12 為peer鍊路Nexus1(config-if)# VPC peer-link      
Nexus1(config)# interface Ethernet1/1 //将實體端口加入channel 100Nexus1(config-if)# switchport mode trunkNexus1(config-if)# channel-group 100 mode activeNexus1(config)# interface port-channel 100 //channel 100加入VPC 100Nexus1(config-if)# VPC 100       

Nexus 3做普通LACP模式的port-channel就好了