Forum Discussion
Irule to modify the VIP route advertisement setting upon pool down
- Feb 08, 2022
What you could do is create a gateway monitor and give it an Alias Address of the gwy. Assign that to the pool as a second monitor that is the default pool of the virtual server the vip address is assigned to. That way, when the gwy fails, it marks the pool members down which in turn will retact the advertisment of the route.
But I also posted a reply to James: I guess I shoud use BFD for that purpose.
Thank you.
What you could do is create a gateway monitor and give it an Alias Address of the gwy. Assign that to the pool as a second monitor that is the default pool of the virtual server the vip address is assigned to. That way, when the gwy fails, it marks the pool members down which in turn will retact the advertisment of the route.
- Albert_CollFeb 08, 2022Cirrus
Hi Jim, thanks for your suggestion. It works!
Let me post what I did as if it could be useful for anyone:
- I created the monitor "test_def_gwy_firewall" including:
- Type: “Gateway ICMP”
- Parent monitor: gateway_icmp (default setting)
- Alias Address: The default gateway ip address, example: 192.168.1.1
- Alias service port: * (all ports).
- I associated this new health monitor to ALL pools of ALL virtual servers sharing the VIP to be advertised, (in addition to their already existing health monitors). So that from now on, each Pool has not only its original health monitor, but also this new one.
- I made sure that all 3 VIPS have the “route advertisement” to “selective, all, any” upon your choice. (Except “always” if you want to advertise this VIP through a routing protocol).
And that’s all.
Now, when I disrupt the IP connectivity to my default gateway IP address (192.168.1.1), all pools, virtual servers and VIPs go down and BGP stops advertising such VIPs to the PE’s. Conversely, when the connectivity to the def gwy is resumed, everything comes back to normal.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com