Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Proxmox network configuration multiples ips
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.

Proxmox network configuration multiples ips

arogeraroger Member

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)

https://pastebin.com/f6fSsmVD

Here is the network interfaces from a VM

https://pastebin.com/eDfKk81J

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

  • AlwaysSkintAlwaysSkint Member
    edited June 2019

    First pastebin image was taking ages to load - I gave up. :-/

    From your VM

    ip r

    You need to have a default gateway defined.

  • arogeraroger Member
    edited June 2019

    There is no image on pastbin link; only raw text; strange its taking ages to load :neutral:
    ip r : doesn't return a result on my VM

  • AlwaysSkintAlwaysSkint Member
    edited June 2019

    Try this, at the bottom of /etc/network/interfaces on the host..

    iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o vmbr0 -j MASQUERADE

    You may have to change vmbr0 to vmbr3

  • arogeraroger Member

    Still no internet on the VM

  • Try manually adding a default route in the VM

  • arogeraroger Member

    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.

  • arogeraroger Member

    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.

    Thanked by 1Hetzner_OL
  • JackHJackH Member

    @aroger Please also migrate to iproute2. You shouldn't be using ifconfig/route/ifup in 2019...

    Thanked by 1FHR
  • UndergridUndergrid Member
    edited June 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.

    Thanked by 1AlwaysSkint
Sign In or Register to comment.