New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Proxmox network configuration multiples ips
Hello
I have some troubles configuring multiple ips to proxmox, I created a bridge for
each public ip and a bridge to create a internal network.
Here is the network interfaces (from the host)
Here is the network interfaces from a VM
So I can ping all public ips from outside but from my VM my network isn't working, I have no access to internet. (network is unreachable)
ip forwarding for ipv4 and ipv6 is enabled in /etc/sysctl.conf
Could you help me finishing this setup ?
Thank you
Comments
First pastebin image was taking ages to load - I gave up. :-/
From your VM
You need to have a default gateway defined.
There is no image on pastbin link; only raw text; strange its taking ages to load
ip r : doesn't return a result on my VM
Try this, at the bottom of /etc/network/interfaces on the host..
You may have to change vmbr0 to vmbr3
Still no internet on the VM
Try manually adding a default route in the VM
well I'm not sure if its correct but I added under the gateway
up route add -net 10.20.30.3 netmask 255.255.255.0 gw 10.20.30.1 dev eth0
ifup eth0:
Cannot find devide "eth0"
ifup: failed to bring up eth0
The interface is correctly named eth0 ...
Question, Do you intend the VM's to have private IP addresses and be NAT'ed to the internet, or do you want the additional IP addresses assigned to the VM(s)?
Also, is this on Hetzner? It has a very Hetzner smell to the IP address allocations.
I'm looking to have private ip address bridged on the one of the public ip address
yes this is hetzner services
As it currently stands, your VM will have a non-routable 10.x.x.x address and not be available from the internet, though I'm not sure why the NAT isn't currently working.
You may want to have a look at the "Configuring the Network" section of this guide to get the appropriate configuration for your machine. If you can't work it out, I can help, but I'd need to know if the additional IP addresses are one you ordered singly or if you have a subnet.
@aroger Please also migrate to
iproute2
. You shouldn't be using ifconfig/route/ifup in 2019...Never mind, thought you were talking about something else, ignore me.
Anyway, he managed to get it all set up with a little help and it's working now.