Hey there,
Apologies if this is the one of the stupidest questions asked here, but I've been struggling for a couple of days, and a lot of the other threads I've found haven't been too helpful, so I thought I'd just ask.
From looking at the docs, and other threads on this forum, I found this, and I'm in a similar situation, but the answer hasn't seemed to work for me. I rent a dedicated server from a hosting company, and have Proxmox VE installed on it, which I access with the IP xx.xx.xx.170. I bought 2 additional IPv4s but can't seem to work out how to assign them to VMs. From what I have read on other threads, I don't need to create any bridges to achieve this, but when I assign them within the VMs they don't seem to be able to access the internet.
Additional IPs Info:
Address: xx.xx.xx.7 (netmask 255.255.255.0)
Gateway: xx.xx.xx.1
Address: xx.xx.xx.214 (netmask 255.255.255.128)
Gateway xx.xx.xx.129
How I'm setting up network in Ubuntu Server 22.04:
Imgur Link
My /etc/network/interfaces File:
(When a VM is given vmbr1 as an adapter, it can reach the internet, but for what I need the VMs for they need an external IP address)
Whenever I go to the next page in the Ubuntu Server installer, it can't reach the mirror server, despite me triple checking it's online.
Any help is appreciated, and apologies again if this is a simple fix that I've missed. Thanks!
Apologies if this is the one of the stupidest questions asked here, but I've been struggling for a couple of days, and a lot of the other threads I've found haven't been too helpful, so I thought I'd just ask.
From looking at the docs, and other threads on this forum, I found this, and I'm in a similar situation, but the answer hasn't seemed to work for me. I rent a dedicated server from a hosting company, and have Proxmox VE installed on it, which I access with the IP xx.xx.xx.170. I bought 2 additional IPv4s but can't seem to work out how to assign them to VMs. From what I have read on other threads, I don't need to create any bridges to achieve this, but when I assign them within the VMs they don't seem to be able to access the internet.
Additional IPs Info:
Address: xx.xx.xx.7 (netmask 255.255.255.0)
Gateway: xx.xx.xx.1
Address: xx.xx.xx.214 (netmask 255.255.255.128)
Gateway xx.xx.xx.129
How I'm setting up network in Ubuntu Server 22.04:
Imgur Link
My /etc/network/interfaces File:
(When a VM is given vmbr1 as an adapter, it can reach the internet, but for what I need the VMs for they need an external IP address)
Code:
auto lo
iface lo inet loopback
auto enp5s0
iface enp5s0 inet static
auto vmbr0
iface vmbr0 inet manual
address xx.xx.xx.170/24
gateway xx.xx.xx.1
bridge-ports enp5s0
bridge-stp off
bridge-fd 0
auto vmbr1
iface vmbr1 inet static
address 192.168.10.100/24
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.10.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.10.0/24' -o vmbr0 -j MASQUERADE
Whenever I go to the next page in the Ubuntu Server installer, it can't reach the mirror server, despite me triple checking it's online.
Any help is appreciated, and apologies again if this is a simple fix that I've missed. Thanks!