# Failover Virtual server Configuration

**URL:** <https://community.a10networks.com/t/failover-virtual-server-configuration/441>\
**Category:** System\
**Created:** [April 14, 2017, 4:40pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441 "2017-04-14T16:40:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ar.65535](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ar.65535](https://community.a10networks.com/u/ar.65535)\
**Post date:** [April 14, 2017, 4:40pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/1 "2017-04-14T16:40:09Z")

</div>

Can you please let me know if A10 allows to configuration failover VIP?  
For Example:  
If i have a Virtual server ABC with backends X1/X2/X3, when all of them goes down, the traffic should be forwarded to a failover site where a different virtual server XYZ. That means XYZ should be configured as a failover virtual server to ABC.

Thanks,  
Abhi

---

<div class="post-metadata">

**Author:** ![aaydnal](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@aaydnal](https://community.a10networks.com/u/aaydnal)\
**Post date:** [April 14, 2017, 6:20pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/2 "2017-04-14T18:20:23Z")

</div>

Hi Abhi, Assuming that the back-end servers X1/X2/X3 are added under a service group. Using aFlex we can check for the active members of the service group and redirect to backup vip if all the servers are Down. Following is the aFlex:

```auto

aflex create redirect_if_down
when HTTP_REQUEST {
    if { [active_members example_service_group] < 1 } {
        HTTP::redirect "http://backup.example.com"
    }
}
.

```

and then bind the aFlex to the vip as shown below: slb virtual-server abc 10.10.10.1 port 80 http service-group example\_service\_group aflex redirect\_if\_down Hope this helps. Avinash A. A10 Professional Services Engineer

---

<div class="post-metadata">

**Author:** ![ar.65535](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ar.65535](https://community.a10networks.com/u/ar.65535)\
**Post date:** [April 14, 2017, 6:29pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/3 "2017-04-14T18:29:55Z")

</div>

Hello Avinash,

Thank you for the reply, Can you please let me know if this can be done for udp ports?  
Both the vip’s in question are udp-514.  
Thanks,  
Abhi

---

<div class="post-metadata">

**Author:** ![ar.65535](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ar.65535](https://community.a10networks.com/u/ar.65535)\
**Post date:** [April 14, 2017, 6:50pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/4 "2017-04-14T18:50:47Z")

</div>

Also, please provide me with the sample script to redirect udp traffic.

---

<div class="post-metadata">

**Author:** ![aaydnal](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@aaydnal](https://community.a10networks.com/u/aaydnal)\
**Post date:** [April 14, 2017, 8:16pm UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/5 "2017-04-14T20:16:46Z")

</div>

Redirect will not hold if it is a udp port. In that case i suggest may be add a back-up service-group/server instead of a back-up vip. aFlex:

```auto

aflex create back_up_service-group
when CLIENT_ACCEPTED {
    if { [active_members example_service_group] < 1 } {
        pool "back_up_service-group"
		# node "server-ip"
    }
}
.

```

slb virtual-server abc 10.10.10.1 port 514 udp service-group example\_service\_group aflex back\_up\_service-group Let me know if this works. If you need more information , please open a A10 TAC case. [Product Support Overview - A10 Support](https://www.a10networks.com/support) Regards, Avinash A.

---

<div class="post-metadata">

**Author:** ![ar.65535](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@ar.65535](https://community.a10networks.com/u/ar.65535)\
**Post date:** [April 20, 2017, 10:33am UTC](https://community.a10networks.com/t/failover-virtual-server-configuration/441/6 "2017-04-20T10:33:01Z")

</div>

Thank You Avinash!
