VPC 是一种实现跨设备链路聚合的机制,基于 LACP(单台设备链路聚合的标准) 进行了扩展,能够实现多台设备间的链路聚合,从而把链路可靠性从单板级提高到了设备级。
如上图所示,在传统的网络拓扑中要实现网络的冗余,一般都会使用双链路上联的方式,但这种方式明显有一个环路,在这种拓扑下都会开启 STP,这时就会有一条链路是处于 Block 状态的,所以这种方式可以实现冗余,但不能增加网络带宽。想通过链路聚合的方式做双链路上联到两台不同的设备,但是 Port-Channel 不支持跨设备聚合,所以在这种背景下就出现了 VPC 的概念。和传统跨设备方案的区别是:既增强网络冗余又能增加带宽。
二、VPC网络优势
1、二层网络优势
(1)通过冗余系统提高系统可靠性
(2)无需使用生成树协议,即能进行环路管理
(3)始终提供完全系统带宽可用性
(4)迅速恢复链路故障
为任意支持IEEE802.3ad的边缘设备提供端口信道连接
2、支持的三层特性
(1)通过HSRP配置进行主用-主用第三层转发
(2)通过主用-主用HSRP进行完全第三层带宽访问
(3)通过主用-主用PIM指定路由器进行第三层迅速组播融合
三、VPC配置
1、Nexus 1配置
(1)开启VPC与lacp功能
Nexus1
Nexus1(config)
Nexus1(config)
(2)配置mgmt接口IP,用来检测Peer link
Nexus1(config)
Nexus1(config-if)
(3)配置peer link
Nexus1(config)# VPC domain 1
Nexus1(config-VPC-domain)# peer-keepalive destination 12.12.12.2 source 12.12.12.1 //指定peer源目IP
Nexus1(config)# interface range Ethernet 1/31-32 //将两个物理端口加入channel 12
Nexus1(config-if-range)# switchport
Nexus1(config-if-range)# switch mode trunk
Nexus1(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)
Nexus1(config-if)
Nexus1(config-if)
Nexus1(config)
Nexus1(config-if)# VPC 100
2、Nexus 2配置
(1)开启VPC与lacp功能
Nexus1
Nexus1(config)
Nexus1(config)
(2)配置mgmt接口IP,用来检测Peer link
Nexus1(config)
Nexus1(config-if)
(3)配置peer link
Nexus1(config)# VPC domain 1
Nexus1(config-VPC-domain)# peer-keepalive destination 12.12.12.1 source 12.12.12.2 //指定peer源目IP
Nexus1(config)# interface range Ethernet 1/31-32 //将两个物理端口加入channel 12
Nexus1(config-if-range)# switchport
Nexus1(config-if-range)# switch mode trunk
Nexus1(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)
Nexus1(config-if)
Nexus1(config-if)
Nexus1(config)
Nexus1(config-if)# VPC 100
Nexus 3做普通LACP模式的port-channel就好了
本文始发于微信公众号(释然IT杂谈):跨设备链路聚合-VPC
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论