cisco vpc学习笔记

上传人:第*** 文档编号:31319736 上传时间:2018-02-06 格式:DOCX 页数:8 大小:46.90KB
返回 下载 相关 举报
cisco vpc学习笔记_第1页
第1页 / 共8页
cisco vpc学习笔记_第2页
第2页 / 共8页
cisco vpc学习笔记_第3页
第3页 / 共8页
cisco vpc学习笔记_第4页
第4页 / 共8页
cisco vpc学习笔记_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《cisco vpc学习笔记》由会员分享,可在线阅读,更多相关《cisco vpc学习笔记(8页珍藏版)》请在金锄头文库上搜索。

1、VPC 学习笔记(包含配置)_vpc话题:vpcVirtual Port Channels用途:扩展 port-channel,将连接不同设备链路汇聚成一条逻辑的链路。(个人理解)支持设备:N5K、 N7K、N2K优势:设备级别冗余,收敛速度比 STP 快(无 STP) 去除了 STP BLOCK 端口,提供无环路网络 更好的带宽利用(线路能负载均衡)注意:VPC 只能用于二层, VPC 端口不能运行路由协议。实现方式:将 2 个 nexus 设备关联到 VPC domain。两台设备通过 2 条特殊链路实现信息交换:vPC peer-keepalive link:心跳链路,确保两台 VPC

2、设备在线。避险 A/A 或者 split-brain 情况导致 VPC拓扑环路。VPC 端口可以是 1G 或者 10G 端口vPC peer link:VPC 邻居之间交换状态信息,提供而外的机制发现和防止 split-brain 情况split-brain 是什么?关于 peer-keepalive 端口MGT 可以作为 vPC peer-keepalive link 接口。在 N7K 上如果引擎切换或者在线服务升级( ISSU)管理端口会改变,导致 keepalive 中断。 如果使用 MGT 口,保证所有 MGT 口接入到网管交换机。 可以使用数据接口的 port-channel 接口提

3、高更高级别的冗余。配置:1、开启 VPC 特性Congo(config)# feature vpcEgypt(config)# feature vpc2、创建用于 VPC 的 VRF创建 VRFCongo(config-if)# vrf context vpc-keepaliveEgypt(config)# vrf context vpc-keepalive3、创建 VPC keeplive 链路Congo(config)# int ethernet 2/47Congo(config-if)#no switchportCongo(config-if)# vrf member vpc-keepa

4、liveCongo(config-if)# ip address 1.1.1.1 255.255.255.252Egypt(config)# interface ethernet 2/48Egypt(config-if)# no switchportEgypt(config-if)# vrf member vpc-keepaliveEgypt(config-if)# ip address 1.1.1.2 255.255.255.252测试连通性:Congo# ping 1.1.1.2 vrf vpc-keepalive查看:Congo# sho vpcLegend:(*) - local vP

5、C is down, forwarding via vPC peer-linkvPC domain id : 1Peer status : peer link not configuredvPC keep-alive status : peer is aliveConfiguration consistency status: failedConfiguration consistency reason: vPC peer-link does not existsvPC role : none establishedNumber of vPCs configured : 0Peer Gatew

6、ay : DisabledDual-active excluded VLANs : -可以看到 keepalive 已经 OK,但 vpc peer 没有起来4、建立 VPC-domainCongo(config)# vpc domain 1Congo(config-vpc-domain)# peer-keepalive destination 1.1.1.2 source1.1.1.1 vrf vpc-keepaliveEgypt(config)# vpc domain 1Egypt(config-vpc-domain)# peer-keepalive destination 1.1.1.1

7、 source1.1.1.2 vrf vpc-keepalive5、配置 VPC peer 链路(NEXUS 交换机互联)必须使用 10G 端口,并且指定速率。配置 port-channel 100(省略)Congo(config)# interface port-channel 100Congo(config)#switchport mode trunkCongo(config)# interface port-channel 100Congo(config-if)# vpc peer-linkEgypt(config)# interface port-channel 100Egypt(co

8、nfig)#switchport mode trunkEgypt(config)# interface port-channel 100Egypt(config-if)# vpc peer-link配置后 STP 端口类型从 network 变为 vPC peer-,STPBridge Assurance 将会开启,并且不能被关闭。验证:Egypt# show vpcLegend:(*) - local vPC is down, forwarding via vPC peer-linkvPC domain id : 1Peer status : peer adjacency formed ok

9、vPC keep-alive status : peer is aliveConfiguration consistency status: successvPC role : secondaryNumber of vPCs configured : 0Peer Gateway : DisabledDual-active excluded VLANs : -vPC Peer-link status-id Port Status Active vlans- - - -1 Po100 up 1-20,100如果 Configuration consistency status 状态为 any,可以

10、通过下面命令检查具体不一致的信息Congo# show vpc consistency-parameters globalLegend:Type 1 : vPC will be suspended in case of mismatchName Type Local Value Peer Value- - - -STP Mode 1 Rapid-PVST Rapid-PVSTSTP Disabled 1 VLANs 91 VLANs 91STP MST Region Name 1 customer customerSTP MST Region Revision 1 1 1STP MST Reg

11、ion Instance to 1VLAN MappingSTP Loopguard 1 Disabled DisabledSTP Bridge Assurance 1 Enabled EnabledSTP Port Type, Edge 1 Normal, Disabled, Normal,Disabled,BPDUFilter, Edge BPDUGuard Disabled DisabledSTP MST Simulate PVST 1 Enabled EnabledInterface-vlan admin up 2 40-43,50,60,70-71,91,1 40-43,50,60,

12、70-71,91,100-103 00-103Allowed VLANs - 40-43,50,60,91,100-103 9,40-43,50,60,91,100-1,1000 03,1000Local suspended VLANs - - -6、将 port-channel 加入 VPC(连接下行端口)Congo(config)# interface ethernet 2/1Congo(config-if)# channel-group 1 mode activeCongo(config)# interface port-channel 1Congo(config-if)# switch

13、portCongo(config-if)# switchport mode trunkCongo(config-if)# vpc 1Egypt(config)# int ethernet 2/2Egypt(config-if)# channel-group 1 mode activeEgypt(config)# int port-channel 1Egypt(config-if)# switchportEgypt(config-if)# switchport mode trunkEgypt(config-if)# vpc 1下行交换机配置(不支持 VPC 设备)配置为普通 ether-chan

14、nelKenya(config)# interface ethernet 2/11-12Kenya(config-if-range)# switchportKenya(config-if-range)# channel-group 1 mode activeKenya(config-if-range)# no shutdownKenya(config)# int port-channel 1Kenya(config-if)# switchportKenya(config-if)# switchport mode trunk验证 VPCCongo# show vpcLegend:(*) - lo

15、cal vPC is down, forwarding via vPC peer-linkvPC domain id : 1Peer status : peer adjacency formed okvPC keep-alive status : peer is aliveConfiguration consistency status: successvPC role : primaryNumber of vPCs configured : 1Peer Gateway : DisabledDual-active excluded VLANs : -vPC Peer-link status-id Port Status Active vlans- - - -1 Po100 up 1-20,100vPC status-id Port Status Consistency R

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号