[SOLVED] How To Configure Proxmox VE Networking

iCoExist

Member
Jun 4, 2020
2
0
6
United States
icoexist.io
Hey everyone,
I've recently purchased a dedicated machine from US Dedicated. I've been given the IP block 66.23.201.176/29. This allows me to use 66.23.201.178 - 182, and the gateway is 66.23.201.177.

What I'm having issues understanding is, how to properly configure these network interfaces. I'm used to how OVH handles their IP addressing, and I've never seen this before.

Here's what I see in the Networking tab in Proxmox VE:
chrome_aQwHdYhyfj.png

And here is what is in /etc/network/interfaces by default:
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface primary inet static
        address 66.23.201.178/29
        gateway 66.23.201.177
        dns-nameservers 8.8.8.8
        dns-search tradingmaniacs.com
# dns-* options are implemented by the resolvconf package, if installed
# Added by SynergyCP

auto primary:1
iface primary:1 inet static
        address 66.23.201.179/29

auto primary:2
iface primary:2 inet static
        address 66.23.201.180/29

auto primary:3
iface primary:3 inet static
        address 66.23.201.181/29

auto primary:4
iface primary:4 inet static
        address 66.23.201.182/29

iface enp1s0f1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 66.23.201.176/29
        bridge-ports none
        bridge-stp off
        bridge-fd 0

I can't seem to figure out how to get VMs/containers working with Internet access, and if I make *any* changes, the network config breaks and I can no longer contact the server. Can anyone give me some pointers as to how to get this up and running? I've never seen networking like this before, and I don't even know what to look up to get started. Thanks so much.
 
Last edited:
. I've been given the IP block 66.23.201.176/2`

/29 ?



you don't need primary:X interfaces.

vm/containers ips should be done inside your vm/ct.

do you have a bridged setup (where the vm gateway is outside proxmox on your provider network) or a routed setup (where vmbr0 is the gateway of your vms) ?
 
/29 ?



you don't need primary:X interfaces.

vm/containers ips should be done inside your vm/ct.

do you have a bridged setup (where the vm gateway is outside proxmox on your provider network) or a routed setup (where vmbr0 is the gateway of your vms) ?

Thanks for getting back to me. This was the default setup from the hosting provider, and I was quite confused. I have just figured out what I was doing wrong.

I removed all the "primary:x" interfaces and figured out how to do a bridge.

My /etc/network/interfaces file now looks like this:
Code:
auto lo
iface lo inet loopback

auto primary
iface primary inet manual

auto vmbr0
iface vmbr0 inet static
        address 66.23.201.178
        netmask 255.255.255.255
        gateway 66.23.201.177
        bridge_ports primary
        bridge_stp off
        bridge_fd 0

From here, I'm able to create new CTs/VMs in Proxmox and just assign the address during the CT/VM creation.
 

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!