Howdy, Stranger!

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


Help with multiple IPS in Proxmox
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.

Help with multiple IPS in Proxmox

Hello.

Can anybody point me in to the right direction of how to get a proxmox kvm guest network working with additional ips outside of the main subnet?

Server main IP: 208.100.2X.XX
Server gateway: 208.100.2X.XX
Additional IPS planning to use for personal VMS: 208.100.4X.XX

Configs as of now
Proxmox Server:

auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet static
address 208.100.2X.XX
netmask 255.255.255.224
gateway 208.100.2X.XX
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/enp2s0/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 208.100.4X.XX
netmask 255.255.255.255
bridge_ports none
bridge_stp off
bridge_fd 0

iface enp3s0 inet manual

Proxmox KVM Guest: (Ive experimented with multiple trials but this is the latest attempt)

auto ens18
iface ens18 inet static
address 208.100.4X.XX
netmask 255.255.255.255
post-up ip route add 208.100.2X.XX dev ens18
post-up ip route add default via 208.100.2X.XX
pre-down ip route del default via 208.100.2X.XX
pre-down ip route del 208.100.2X.XX

Thanks!

Comments

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire
    edited December 2018

    Do you tried to work on enp3s0?

    auto enp3s0
    iface enp3s0 inet static
    address 208.100.4X.XX
    netmask 255.255.255.X
    gateway 208.100.4X.XX
    

    EDIT: I don't know about your network setup and how the IPs are provided so this is just a wild guess

  • enp3s0 should be disabled.. i dont believe there is a cable ran to it anyway. Also they did not give me a gateway for the additional ip range (208.100.4X.XX). I need to somehow route those IPS via the main ip or the main gateway i think.

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    Can you use the IP: 208.100.4X.XX in your host machine?

    Thanked by 1akaemu
  • Yes, the first additional ip is the vmbr0 ip on the host and is pingable from outside. I did that following the proxmox routed ip wiki. That was not the default proxmox install config.

  • Got it working using the hetzner guide, even though this is not a hetzner server.

    Thanked by 1eol
  • @akaemu said:
    Got it working using the hetzner guide, even though this is not a hetzner server.

    You did well mentioning Hetzner twice.

    Thanked by 1lowendboi
  • Thanks eol. 😂🏳️‍🌈

    Thanked by 1eol
Sign In or Register to comment.