cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2972
Views
8
Helpful
32
Replies

VPC with HSRP and Intervlan Routing Design

Sajid Khan
Level 1
Level 1

We two nexus switch 9k and configured with VPC and HSRP, we have configured three vlan on that three switches. Vlan 2 for CCTV , vlan 3 for Monitering PC and vlan 1 for Dell Server that connected with two 9k switches by port channel.  The two nexus switches is also connected two one distribution switch by port channel. when i do not know how , these two 9k switches are active / active in hsrp when i shutdown one uplink Eth1/2 of 9k1 which is active  then traffic do not move on 9k2. let me correct if my design is okay.

9K1 Configuration ------------

config t
hostname 9K1-SW1
vlan 1
name DellRecordingServer
exit
vlan 2
name CCTV
exit
vlan 3
name MonitoringPC
exit
feature vpc
feature lacp
feature interface-vlan
int vlan 1
ip add 1.1.1.1 255.255.255.0
no shut
int vlan 2
ip add 192.168.2.1 255.255.255.0
no shut
int vlan 3
ip add 192.168.3.1 255.255.255.0
no shut
exit
vrf context VPC-KEEPALIVE
interface Ethernet 1/51
no shutdown
no switchport
vrf member VPC-KEEPALIVE
ip address 50.50.50.1 255.255.255.0
exit
interface Ethernet 1/49, Ethernet 1/50
no shut
switchport mode trunk
switchport trunk allowed vlan 1-3
description **VPC-PEERLINK**
channel-group 100 mode active
no shutdown
vpc domain 50
peer-gateway
role priority 20
peer-keepalive destination 50.50.50.2 source 50.50.50.1 vrf VPC-KEEPALIVE
exit
interface port-channel 100
description **VPC-PEERLINK**
no shutdown
switchport
switchport mode trunk
switchport trunk allowed vlan 1-3
spanning-tree port type network
vpc peer-link
exit
interface Ethernet 1/2
no shutdown
switchport mode trunk
switchport trunk allowed vlan 1-3
channel-group 2 mode on
interface port-channel 2
no shutdown
switchport mode trunk
switchport trunk allowed vlan 1-3
vpc 2
exit
interface eth 1/1
no shutdown
channel-group 1 mode on
interface port-channel 1
description *** Po1 to Server-1 ***
switchport
switchport mode access
switchport access vlan 1
vpc 1
exit


feature hsrp
interface Vlan 1
no shutdown
hsrp 1
ip 1.1.1.254
priority 200
preempt
exit
interface Vlan 2
no shutdown
hsrp 2
ip 192.168.2.254
priority 200
preempt
exit
interface Vlan 3
no shutdown
hsrp 3
ip 192.168.3.254
priority 200
preempt
exit

9K2 Configuration ------------

config t
hostname 9K2-SW2
vlan 1
name DellRecordingServer
exit
vlan 2
name CCTV
exit
vlan 3
name MonitoringPC
exit
feature vpc
feature lacp
feature interface-vlan
int vlan 1
ip add 1.1.1.2 255.255.255.0
no shut
int vlan 2
ip add 192.168.2.2 255.255.255.0
no shut
int vlan 3
ip add 192.168.3.2 255.255.255.0
no shut
exit
vrf context VPC-KEEPALIVE
interface Ethernet 1/51
no shutdown
no switchport
vrf member VPC-KEEPALIVE
ip address 50.50.50.2 255.255.255.0
exit
interface Ethernet 1/49, Ethernet 1/50
description **VPC-PEERLINK**
channel-group 100 mode active
no shutdown
vpc domain 50
peer-gateway
role priority 40
peer-keepalive destination 50.50.50.1 source 50.50.50.2 vrf VPC-KEEPALIVE
exit
interface port-channel 100
description **VPC-PEERLINK**
no shutdown
switchport
switchport mode trunk
switchport trunk allowed vlan 1-3
spanning-tree port type network
vpc peer-link
exit

interface Ethernet 1/2
no shutdown
switchport mode trunk
switchport trunk allowed vlan 1-3
channel-group 2 mode on
interface port-channel 2
no shutdown
switchport mode trunk
switchport trunk allowed vlan 1-3
vpc 2
exit
interface eth 1/1
no shutdown
channel-group 1 mode on
interface port-channel 1
description *** Po1 to Server-1 ***
switchport
switchport mode access
switchport access vlan 1
vpc 1
exit


feature hsrp
interface Vlan 1
no shutdown
hsrp 1
ip 1.1.1.254
priority 150
preempt
exit
interface Vlan 2
no shutdown
hsrp 2
ip 192.168.2.254
priority 150
preempt
exit
interface Vlan 3
no shutdown
hsrp 3
ip 192.168.3.254
priority 150
preempt
exit

Distribution switch configuration .....................

config t
hostname DistSW
vlan 1
name DellRecordingServer
exit
vlan 2
name CCTV
exit
vlan 3
name MonitoringPC
exit
interface range ethernet 0/0-1
no shutdown
switchport mode trunk
switchport trunk allowed vlan 1-3
channel-group 2 mode on
exit

 

32 Replies 32

With NIC teaming

SajidKhan_1-1685359729915.png

 

PING 2000, 
the disruption in traffic when I shut one of port member, the only one loss when I no shut the port 

Screenshot (733).png

Sajid Khan
Level 1
Level 1

Thanks soo much for the response. I tried the same configuration and implemented on real nexus switches, production environment.

HSRP is working fine on real nexus but eveng and some simulator is not 100 % perfect.

Review Cisco Networking for a $25 gift card