This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

WAN IP and Gateway IP not in same network error...

I have an ESXi server in a datacenter. They give failover IP's based on MAC address.
The Failover IP and the gateway IP or not on the same network.
When I fill the IP's and subnet on the WAN interface, I get the following error:

"Interface IP and gateway IP address must be in the same network"

In UTM 9 this wasn't an issue. Here the URL how to enable a failover IP:
forum.online.net/index.php

www.astaro.org/.../50686-specific-ip-route-settings.html


How do I accomplish this?



This thread was automatically locked due to age.
  • Also have the same issue only im with soyoustart (ovh).

    Trying to run this with esxi but no luck.
    My setup esxi host at ip 91.121.x.x netmask 255.255.255.0 gateway 91.121.x.254
    installed xg firewall with an failover ip 164.132.x.x but i have to configure it with netmask 255.255.255.255 with gateway 91.121.x.254.

    this the error i get as mentioned above. "Interface IP and gateway IP address must be in the same network"

    I can confirm this is no issue with UTM 9 as i have that currently running now, but i look forward to see this working.


    Any help on this problem?

    thanks

  • I have the same issue, with UTM 9 it work ... any solution ?

    Regards
  • Same issue with me, OVH failover ip uses the host gateway and is not on the same subnet.

    I got the setup working fine with UTM 9 as well.

    XG does not accept this configuration, did anyone find a solution or workaround for this.
  • Has anyone found a solution? Is it maybe possible by shell?

  • Heya Folks, 

        I have run a decent amount of router/firewall VMs running on KVM/Proxmox in OVH and SoYouStart environments.  Most you need to follow these basic steps:

     

    Create the WAN interface with the appropriate MAC address set  to the Failover IP (I normally just use Proxmox's NIC MAC field) 

          For Sophos I used a /24 255.255.255.0 and set the gateway (only because you have to) set it to the fail.over.IP.254 - this will not route your traffic.

    Then go into the GUI and add a static route in this order:

    You primary hosts default gateway is referred to by OVH as the gateway_vm - http://help.ovh.com/BridgeClient - this is in a different subnet then your failover IP

    Establish the interface by adding a static route for gateway.VM.IP.254 /255.255.255.0 - PORT 2 (important) (or whatever your WAN interface is)

    Then a default route 0.0.0.0/0 to gateway.VM.IP.254 and do NOT assign it to any port, the rule above does this and avoids the subnet check.

    This is working for me for about an hour and matches how RouterOS works.  Hope this helps the next round of folks if some have given up already.

    Good luck.

    J

  • I am confused.  

     

    Establish the interface by adding a static route for gateway.VM.IP.254 /255.255.255.0 - PORT 2 (important) (or whatever your WAN interface is)

     

    So what is the destination IP and which is the gateway?

     

    Is the Destination IP your Failover IP and the "gateway.VM.IP.254" is the actual gateway assigned in the route?

     

     

  • so lets say for example I have the following.  Can you provide what goes where because I keep trying this and I continue to have errors every time.

     

    Example of what my interface IP for my dedicated server is:

     

    129.56.27.20 IP

    129.56.27.256 Gateway

    255.255.255.0 Subnet

     

    Fail Over IP:  66.70.125.159

  • Hi Mark,

     

    I've just followed the steps provided by Jonathan. Thanks to him !

     

    So for your server :

    In setup > Network > Interfaces :

    setup the WAN interface (PORTB by defaut) with :

    ip : 66.70.125.159/24

    gw : 66.70.125.254 (don't think just apply that, i know it does'nt feel right)

     

    In setup > routing >static routing :

    you'll add 2 routes:

    - 129.56.27.0/24 - leave GW empty - select WAN interface (PORTB)

    - 0.0.0.0/0 - GW 129.56.27.254 - leave interface empty

     

    and that's it.

    Since I'm deploying my UTM on an OVH dedicated server, I had to setup the right MAC address to my WAN interface but that's specific to OVH's routing with Failover IPs.

     

    hope it's clear.

    have a great day