I. Background requirements
The Cisco two switches need to be virtual into a single switch (similar to a switch stack), to link two-tier access switches, and to provide high availability of network links. Such as:
For the two-layer switching 2960x needs to see the upper two n3k switches for a single device, the intermediate connection link does the link aggregation.
Second, configuration detailed
n3k_1 and N3K2 configurations remain consistent
1, the global open VPC + HSRP+OSPF
Feature Vpcfeature hsrpfeature OSPF
2. VPC Peer-link Interface Configuration
interface ethernet1/49 switchport mode trunk channel -group 49 mode active interface Ethernet1/50 switchport mode Trunk channel -group 49 mode active interface port-channel49 speed 40000 description vPc peer -link switchport Mode trunk spanning -tree port type network VPC peer< /span> -link
3. Xia Lian Interface configuration
Interface ethernet1/Wuyi/1 10000 switchport mode trunk Channel - mode active no shutdowninterface port-channel50 10000 switchport mode trunk - #两台N3K VPC IDs must be the same
2960X Switch Configuration
1:, interface configuration (same as normal link aggregation configuration)
Interface tengigabitethernet1/0/1 switchport mode trunk channel mode active Interface tengigabitethernet1/0/2 switchport mode trunk channel Mode Active Interface port-channel24 switchport mode trunk
Three, HSRP+OSPF configuration
N3k_1:InterfaceVlan10 no shutdown IP address192.168.0.2/ -IP router OSPFTenArea0.0.0.20 #ospf Route publishing HSRP version2HSRPTenPreempt Priority theIP192.168.0.1 Track1 Track1 Interfaceethernet1/ -line-protocoln3k_2: InterfaceVlan10 no shutdown IP address192.168.0.3/ -IP router OSPFTenArea0.0.0.20HSRP version2HSRPTenIP192.168.0.1 Track1 Track1 Interfaceethernet1/ -Line-protocol
Iv. Viewing the configuration
n3k-core- on# show VPC Legend: (*)-Local VPC isDown, forwarding via VPC peer-linkvpc domain ID: -Peer status:peer adjacency formed OK VPC Keep-alive Status:peer isAlive Configuration Consistency status:success Per-VLAN consistency status:success Type-2consistency status:success VPC role:primary, operational secondarynumber of VPCs Configured:6Peer gateway:enabledpeer Gateway excluded VLANs:-Dual-active excluded VLANs:-Graceful Consistency Check:enabledauto-recovery status:enabled (timeout = -seconds) VPC Peer-Link Status---------------------------------------------------------------------ID Port Status Active VLANs-- ---- ------ --------------------------------------------------1Po49 up AllVPC Status----------------------------------------------------------------------------ID Port Status consistency Reason Active VLANs------ ----------- ------ ----------- -------------------------- ----------- -Po50 Up Success Success All WuyiPo51 Up Success Success All thePo52 Up Success Success All -Po53 Up Success Success All
n3k-core- on# Show VPC Statistics peer-Link Port-channel49 isUp Hardware:port-channel, Address:0062. ECEF.8E5C (BIA0062. ecef.8e5c) DESCRIPTION:VPC Peer-Link MTU9216Bytes, BW80000000Kbit, DLYTenusec Reliability255/255, Txload1/255, Rxload1/255Encapsulation ARPA Port mode isTrunk Full-duplex, +GB/S-Input flow-control isOff, output Flow-control isoff Switchport Monitor isoff EtherType is 0x8100 Membersinch Thischannel:eth1/ the, eth1/ -Last clearing of"Show Interface"counters Never1 Interfaceresets Load-interval #1: -seconds -seconds input Rate13194296Bits/sec,5755packets/sec -Seconds output Rate1558864Bits/sec,802packets/sec Load-interval #2:5Minute ( -seconds) Input rate11.66Mbps,5.24Kpps; Output rate1.49Mbps,625pps RX53092855268Unicast packets943847523Multicast packets37779519Broadcast Packets54074482310Input packets12067581932262bytes3615421391Jumbo Packets0Storm Suppression Packets0Runts0Giants0Crc0No buffer0Input error0 ShortFrame0Overrun0Underrun0ignored0Watchdog0Bad EType drop0Bad Proto Drop0 ifDown Drop0Input with Dribble0Input Discard0Rx Pause TX27613649710Unicast packets1107185465Multicast packets48743817Broadcast Packets28769578992Output Packets4953197509995bytes1283510513Jumbo Packets0Output errors0Collision0Deferred0Late Collision0Lost Carrier0No carrier0Babble0Output Discard0Tx Pause
n3k-core-# show HSRP brief P indicates configured to preempt. | Interface GRP Prio P State Active addr Standby addr Group addrVlan10 105 P Active local 192.168.0.3 192.168.0.1 (conf) Vlan11 One the P Active Local 1921.68.1.3 (conf) ...
This blog for my personal summary, only for see. Thank you
Cisco n3k VPC+HSRP+OSPF Configuration