VPC概念

  • VPC:vpc是指vpc对等体设备和下游设备之间的组合PortChannel。

  • vpc对等交换:就是组成vpc功能的两个nexus系列交换机,一个设备为主,一个为备。

  • vpc对等连接:用于同步vpc对等设备之间状态的连接。vpc对等链路在两个vpc交换机之间携带控制通信量,还有组播、广播数据通信量。在某些链路故障场景中,还携带单播通信量。对等链路至少是两个10GE接口。

  • vpc域:该域包括vpc对等设备、vpc对等保持活动连接和连接到下游设备的vpc中的所有PortChannels。同时,所有关于vpc的全局配置都关联到vpc域下。

  • vpc对等保持活动连接(心跳线):对等保持活动连接监视vpc对等交换机的生命力。在vpc对等设备之间发送周期性的保持活动连接。vpc对等活动连接可以是管理接口(MGMT)或交换机虚拟接口(SVI),但不可以使用物理接口。没有数据或同步流量在vpc登对保持活动连接上移动;该连接上的唯一通信量是表明交换机正在操作和运行vpc的消息。

一、背景需求

Cisco 两台交换机需要虚拟成一台交换机使用(类似 交换机堆叠),去链接二层接入交换机,提供网络链路高可用。如下图:

  

  对于二层交换 2960x  需要看到 上层的两台 N3k 交换为一台设备,中间连接链路做链路聚合。

 二、配置详解

   N3K_1和 N3K2  配置保持一致

    1、全局下开启 VPC + HSRP+ospf  

feature vpc
feature hsrp
feature ospf

  2、配置 VPC 域ID

vpc domain 30
role priority 8192 # N3K_1:8192 N3K_2:16384 设置角色优先级

peer-keepalive destination 10.8.240.21 source 10.8.240.20 #IP 为MGMT地址
peer-gateway
auto-recovery

   

   3、VPC peer-link 接口配置    

interface Ethernet1/
switchport mode trunk
channel-group mode active interface Ethernet1/
switchport mode trunk
channel-group mode active interface port-channel49
speed
description vPc peer-link
switchport mode trunk
spanning-tree port type network
vpc peer-link

    4、下联接口配置

interface Ethernet1//
speed
switchport mode trunk
channel-group mode active
no shutdown interface port-channel50
speed
switchport mode trunk
vpc #两台N3K 的VPC ID 必须一致

  

  2960X交换机配置

 1:、接口配置(和普通链路聚合配置一样)

interface TenGigabitEthernet1//
switchport mode trunk
channel-group mode active interface TenGigabitEthernet1//
switchport mode trunk
channel-group mode active interface Port-channel24
switchport mode trunk

三、hsrp+ospf 配置 

N3k_1:
interface Vlan10
no shutdown
ip address 192.168.0.2/
ip router ospf area 0.0.0.20 #ospf 路由发布
hsrp version
hsrp
preempt
priority
ip 192.168.0.1
track track interface Ethernet1/ line-protocol N3k_2:
interface Vlan10
no shutdown
ip address 192.168.0.3/
ip router ospf area 0.0.0.20
hsrp version
hsrp
ip 192.168.0.1
track track interface Ethernet1/ line-protocol

四、查看配置

  

N3k-core-# show vpc
Legend:
(*) - local vPC is down, forwarding via vPC peer-link vPC domain id :
Peer status : peer adjacency formed ok
vPC keep-alive status : peer is alive
Configuration consistency status : success
Per-vlan consistency status : success
Type- consistency status : success
vPC role : primary, operational secondary
Number of vPCs configured :
Peer Gateway : Enabled
Peer gateway excluded VLANs : -
Dual-active excluded VLANs : -
Graceful Consistency Check : Enabled
Auto-recovery status : Enabled (timeout = seconds) vPC Peer-link status
---------------------------------------------------------------------
id Port Status Active vlans
-- ---- ------ --------------------------------------------------
Po49 up all vPC status
----------------------------------------------------------------------------
id Port Status Consistency Reason Active vlans
------ ----------- ------ ----------- -------------------------- -----------
Po50 up success success all
Po51 up success success all
Po52 up success success all
Po53 up success success all
N3k-core-# show vpc statistics peer-link
port-channel49 is up
Hardware: Port-Channel, address: .ecef.8e5c (bia .ecef.8e5c)
Description: vPc peer-link
MTU bytes, BW Kbit, DLY usec
reliability /, txload /, rxload /
Encapsulation ARPA
Port mode is trunk
full-duplex, Gb/s
Input flow-control is off, output flow-control is off
Switchport monitor is off
EtherType is 0x8100
Members in this channel: Eth1/, Eth1/
Last clearing of "show interface" counters never
interface resets
Load-Interval #: seconds
seconds input rate bits/sec, packets/sec
seconds output rate bits/sec, packets/sec
Load-Interval #: minute ( seconds)
input rate 11.66 Mbps, 5.24 Kpps; output rate 1.49 Mbps, pps
RX
unicast packets multicast packets broadcast packets
input packets bytes
jumbo packets storm suppression packets
runts giants CRC no buffer
input error short frame overrun underrun ignored
watchdog bad etype drop bad proto drop if down drop
input with dribble input discard
Rx pause
TX
unicast packets multicast packets broadcast packets
output packets bytes
jumbo packets
output errors collision deferred late collision
lost carrier no carrier babble output discard
Tx pause
N3k-core-# show hsrp brief
P indicates configured to preempt.
|
Interface Grp Prio P State Active addr Standby addr Group addr
Vlan10 P Active local 192.168.0.3 192.168.0.1 (conf)
Vlan11 P Active local 1921.68.1.3 192.168.1.1 (conf)
。。。。。。

此篇博客为本人个人工作总结,仅供参看。谢谢

Cisco N3K VPC+HSRP+ospf 配置的更多相关文章

  1. OSPF配置实验(一)

    单区域OSPF 命令: R1(config)#router ospf 1        //启动OSPF进程 R1(config-router)#router-id 1.1.1.1        // ...

  2. 自制OSPF配置实验大全

    OSPF综合实验(gns模拟器)   注意点: Ospf实验推荐用gns制作 //图中的交换机可以视觉忽略或缩小成一个点.(^ v^) Ospf 实验拓扑图 ​ 目录 OSPF综合实验... 1 Os ...

  3. 神州数码多区域OSPF配置

    实验要求:掌握多区域OSPF配置 拓扑如下 R1 enable 进入特权模式 config 进入全局模式 hostname R1 修改名称 interface s0/1 进入端口 ip address ...

  4. cisco路由器 三层交换机简单环境配置实例(图)

    出处:http://www.jb51.NET/softjc/56600.html cisco路由器&三层交换机简单环境配置实例 一.网络拓扑图: 二.配置命令: 1.路由器的配置: inter ...

  5. 动态OSPF配置路由表

    动态ospf设置路由表 以Rourer1为例子 (1)首先设置路由器端口ip Router(config)#inter f0/0 Router(config-if)#ip add 192.168.1. ...

  6. Cisco PIX防火墙PPPoE拨号配置视频教学

    Cisco PIX防火墙PPPoE拨号配置视频教学   本文出自 "李晨光原创技术博客" 博客,请务必保留此出处http://chenguang.blog.51cto.com/35 ...

  7. CISCO系列交换机如何清空配置

    今天刚好要还原一台CISCO配置的命令,这个毕竟属于我的专业小编就献丑一回,望大家见谅! 工具/原料   CISCO系列交换 方法/步骤   1 首先备份之前的配置信息 copy flash:conf ...

  8. cisco(思科)交换机配置篇【两】

    上一页大家津津乐道cisco基本操作命令开关,而端午假期,该cisco简单的开关配置,并希望请您分享"端午节快乐"!Ok,配置交换机,首先,你必须进入全局配置模式Switch,在成 ...

  9. CISCO 动态路由(OSPF)

    OSPF(开放式最短路径优先):是一个内部网关协议(Interior Gateway Protocol,简称IGP),用于在单一自治系统(autonomous system,AS)内决策路由.是对链路 ...

随机推荐

  1. spark核心原理

    spark运行结构图如下: spark基本概念 应用程序(application):用户编写的spark应用程序,包含驱动程序(Driver)和分布在集群中多个节点上运行的Executor代码,在执行 ...

  2. 1. 报错:1130-host ... is not allowed to connect to this MySql server 开放mysql远程连接 不使用localhost

    在服务器上打开mysql命令行,依次执行下面这两句: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRA ...

  3. [记录] Linux Apache隐藏index.php

    1. 在项目更目录下新建 .htaccess <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEng ...

  4. VC编译错误,把类误认为是函数

    这段代码是在一个动态库中,我像把这个类导出,于是加上 SC_EXPORTS 宏.class SC_EXPORTS CProtocolCheck{public: CProtocolCheck(void) ...

  5. Choose unique values for the 'webAppRootKey' context-param in your web.xml files!

    在Tomcat的server.xml中配置两个context,出现其中一个不能正常启动,交换配置顺序,另一个又不能正常启动,即始终只有第二个配置能启动的情况.如果单独部署,都没有问题.报错大致内容如下 ...

  6. Linux:简单的并发服务器实现

    我前两天实现了一个简单的服务器和一个对应的客户端,也简单的解决了一些错误检查和常用的函数的封装,但是那个服务器的一次只能连接一个客户端,鸡肋,太鸡肋了,今天我来实现可以连接多个客户端的服务器实例:多进 ...

  7. How to Pronounce T + Dark L

    How to Pronounce T + Dark L Share Tweet Share Tagged With: Dark L The T and Dark L combination is co ...

  8. secureCRT工具下载和安装

    本文主要提供secureCRT软件下载和安装操作指导,节约软件查找和安装时间. 使用环境 32位Windows系统 软件下载 secureCRT软件和注册机下载:secureCRT 安装步骤和注意事项 ...

  9. JAVAWEB 一一 fmt标签 和日期插件

    fmt标签 效果 操作:  ①导入标签 <%@ taglib uri=httpjava.sun.comjspjstlfmt prefix=fmt %> ②标签这么写 <td>& ...

  10. 前端Web安全介绍及规避。。。

    本文转载自:https://jelon.top/posts/web-security/ 如果侵权,请及时告知. 一.跨站脚本攻击 (xss) 反射型跨站脚本攻击 攻击者会通过社会工程学手段,发送一个 ...