Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
New Contributor

Using one VIP for both WAN1 and WAN2

I'm looking to configure BGP on my FortiGate 101F to establish a Dual-Homed connection. I have a /22 class of Public IPs and would like to create a Virtual IP (VIP) for each server to allow access from both WAN1 and WAN2. In the event that WAN1 experiences an outage, I want the servers to continue responding via WAN2. However, each customer is assigned a single Public IP, and I cannot allocate additional Public IPs for creating secondary VIPs.

My question is, how can I set up a single VIP for each server that works seamlessly with both WAN interfaces? I want to ensure that the servers can respond via WAN2 when WAN1 is unavailable. Your insights and guidance would be greatly appreciated.


Hi @amini2425,


Why can't you create multiple VIPs? one to NAT the public IP of wan1 to an internal server and another one to NAT the public IP of wan2 to an internal server. If you want to create only 1 VIP, you can set the Interface to "any" and "External IP address/range" to 



Esteemed Contributor III

You said dual-home. I'll take it as "multi-home" with the /22 public subnet advertised by BGP to two circuits/ISPs. Then, the /22 subnet is not bound to either wan1 or wan2. Depending on how you advertise the /22 toward two BGP neighbors over two circuits, some might come in wan1 while others might come in wan2 for the same IP. So you just need to make the interface "any" for each VIP as @hbac said.
But if the public IPs are for your customers, I would suggest you chunk them up and assign each /31 or /30 to customers and route them to their interfaces.Which is more flexible for your customers to use assigned IPs.



Esteemed Contributor III

ok. I didn't know about the definition of "dual-home" until now. So those two circuits are provided by one ISP. Still the same IP can be routed either circuit if you are to advertise the /22 via BGP. So one IP in the /22 is not bound to a particular circuit/interface.


You can also create only 1 VIP for both WAN interfaces but in some specific cases.

This is when VIP IP range is not configured on any of WAN interfaces, and both ISPs know how to route traffic to that particular IP.
For example:


Both ISPs should have route to toward your device.

In this case you may use the same VIP on both WAN interfaces.




Top Kudoed Authors