跨设备链路聚合-VPC

admin 2021年4月6日21:09:27评论95 views字数 2310阅读7分42秒阅读模式
一、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配置

(1)开启VPC与lacp功能

Nexus1# configure terminalNexus1(config)# feature VPC //全局开启 VPC 功能Nexus1(config)# feature lacp //全局开启 lacp 功能


(2)配置mgmt接口IP,用来检测Peer link

Nexus1(config)# interface mgmt0  Nexus1(config-if)# ip address 12.12.12.2/30


(3)配置peer link

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


(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 


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


跨设备链路聚合-VPC

跨设备链路聚合-VPC

跨设备链路聚合-VPC

本文始发于微信公众号(释然IT杂谈):跨设备链路聚合-VPC

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年4月6日21:09:27
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   跨设备链路聚合-VPChttp://cn-sec.com/archives/327955.html

发表评论

匿名网友 填写信息