03-09-2023 06:42 AM
I have a requirement which needs your help, many thanks in advance
for example, vlan 200 , 10.10.10.0/24
I have hsrp in 2-N7Ks in this vlan , but with a different group with different VIP
under SVI 200
hsrp 1 --VIP1 --10.10.10.1 and hsrp 2--VIP2--10.10.10.10
in this VLAN200, the host whose gateway is VIP1 just follows the normal gateway routing, but the host whose gateway is VIP2 will go a special next-hop
how can I separate them?
03-09-2023 06:52 AM
how you have two VIP in same HSRP group ? can you more elaborate ?
03-09-2023 07:05 AM
thanks for the quick reply! Below are sample configurations
ip address 1.1.1.77 255.255.255.0
standby 1 ip 1.1.1.1
standby 1 priority 200
standby 2 ip 1.1.1.10
standby 2 priority 200
a host whose GW is 1.1.1.1 go the normal route, the host whose GW is 1.1.1.10, the next-hop will go a special next-hop
03-09-2023 07:14 AM
Hello
NK1
ip address 1.1.1.77 255.255.255.0
standby 1 ip 1.1.1.1
standby 1 priority 200
standby 2 ip 1.1.1.10
NK2
ip address 1.1.1.78 255.255.255.0
standby 1 ip 1.1.1.1
standby 2 ip 1.1.1.10
standby 2 priority 200
03-09-2023 07:22 AM
good idea , NK2 only apply the PBR ,, but what if the failover happened, both VIPs are active in NK1,,
03-09-2023 09:19 AM
Hello
@rubberheart wrote:
good idea , NK2 only apply the PBR ,, but what if the failover happened, both VIPs are active in NK1,,
Yes correct ...
03-09-2023 07:32 AM
this config of HSRP is unusual, instead of using this config try following
make DHCP push two IP
IP of VLAN1 in NSK1
IP of VLAN2 in NSK2
that make each client have it GW, GW will forward traffic no need to forward it through peer-link.
03-09-2023 07:36 AM
sorry, Sir, the hosts are not DHCP clients, they are servers
03-09-2023 07:42 AM
How do you determine which servers use the special gateway? Is it possible that those servers are in a particular range of IP addresses? We are looking for ways to identify which servers are normal and which are special. So it would be helpful to know how you identify them.
03-09-2023 07:47 AM
ya, that's the problem, those servers are old and I'm may not able to identify each one of them ...I am just trying to see if there is an alternate way to avoid this part.
I was wondering if there is PBR can be applied based on the hsrp group
03-09-2023 07:54 AM
HSRP group is not significant. I have not done it but think that since each HSRP group uses a different mac address, if you could configure a filter that looked at destination mac address you could differentiate traffic going to which virtual IP and PBR that traffic.
03-09-2023 08:08 AM
how these Server get GW IP (VIP1 and VIP2) ?
03-09-2023 08:59 AM
Servers are assigned their GW static ..not get from DHCP
03-09-2023 10:21 AM
I have solution but I need to check it first
thanks
03-09-2023 07:06 AM
Hello
It just a form of LB the traffic for that vlan, I would say half users will route via HSRP1 group via a default-gaeway of 10.10.10.1 the other half will route via HSRP2 group via a default-gaeway of 10.10.10,10, if either fails then the altentaive standy will take over.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide