[SOLVED] Unable to obtain IP Route with Proxmox on OVH

May 3, 2018
8
0
6
36
Hello!

So to make some things clear firstly, `192.99.xxx.xxx` is my Failover IP and associated subnet (`255.255.255.248`) that I'm trying to use with Proxmox on the OVH network, for which I have also already created Virtual MAC addresses for, with each being unique. This here is my `/etc/network/interfaces` configuration file: pastebin.com/P6RNWaTp

`158.xxx.xxx.21` is the main IP address to the server/hypervisor itself, with `158.xxx.xxx.254` being the supposed gateway. Yet when I run the command `ip route show dev vmbr172` or start an installer, I basically get the error that is attached to this thread.

X96ldEM.png

What am I doing wrong? I have been pulling my hair out for days over this matter and would dearly appreciate any help, even if it's just a simple idea. I'm ready for any suggestions at this point after scouring Google multiple times. I am also using a `ISC DHCP server` but that doesn't seem to be causing any troubles, I don't think. If someone here thinks I need to upload the configuration to that then I will.
 
First install must be via NAT mode, but only not in the GUI anyore! Via console:

qm set -netX <e1000|virtio|etc.>[,macaddr=MACADDR]

https://forum.proxmox.com/threads/nat-kvm.43230/#post-207880

After install edit:

Code:
~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address FO-IP
        netmask 255.255.255.255
        broadcast FO-IP
        post-up route add Proxmox-GW dev eth0
        post-up route add default gw Proxmox-GW
        pre-down route del Proxmox-GW dev eth0
        pre-down route del default gw Proxmox-GW

iface eth0 inet6 static
        address A:B:C:105::yourIP
        netmask 64
        post-up /sbin/ip -f inet6 route add A:B:C:1ff:ff:ff:ff:ff dev eth0
        post-up /sbin/ip -f inet6 route add default via A:B:C:1ff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del default via A:B:C:1ff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del A:B:C:1ff:ff:ff:ff:ff dev eth0
 
Last edited:
  • Like
Reactions: Phobos D'thorga
Running a NAT is not optimal, as all the ports behind the Failover-IP need to be accessible by the world/public. Is there any other way I can do this, thank you? I appreciate the replies too :)
 
I still can't get the darned thing to work. Here's my configuration: https://pastebin.com/eJHSYmRz

Any further help would be greatly appreciated, thank you. I do admit to being out of my league with this stuff.

EDIT: The reason it's 255.255.255.248 is because the IP block is 192.xxx.xxx.xxx/29.
 
Maybe better
Code:
Proxmox server OVH (IPv6 address M:N:OP::)
==================

~# cat /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  A.B.C.D
        netmask  255.255.255.0
        gateway  A.B.C.254
        broadcast  A.B.C.255
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        network A.B.C0

iface vmbr0 inet6 static
        address  M:N:OP::
        netmask  64
        post-up /sbin/ip -f inet6 route add M:N:Off:ff:ff:ff:ff dev vmbr0
        post-up /sbin/ip -f inet6 route add default via M:N:Off:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del default via M:N:Off:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del M:N:Off:ff:ff:ff:ff dev vmbr0

===========================================================================================

KVM VM - FO IPv4, bridge (Debian) (my IPv6 address M:N:OP::224)
================================

~# cat /etc/network/interfaces

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address J:K:L:M
        netmask 255.255.255.255
        broadcast J:K:L:M
        post-up route add A.B.C.254 dev eth0
        post-up route add default gw A.B.C.254
        pre-down route del A.B.C.254 dev eth0
        pre-down route del default gw A.B.C.254

iface eth0 inet6 static
        address M:N:OP::224
        netmask 64
        post-up /sbin/ip -f inet6 route add M:N:Off:ff:ff:ff:ff dev eth0
        post-up /sbin/ip -f inet6 route add default via M:N:Off:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del default via M:N:Off:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del M:N:Off:ff:ff:ff:ff dev eth0
 
As you can see the Error say: "The network autoconfiguration was SUCCESSFUL. However, no DEFAULT ROUTE was set".
You must follow set the gateway manually as I described before. Also no NAT required.

You're brilliant! I have it working now, thank you :D

Thank you for your help too, Hollis!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!