Proxmox Network Config

thewball

Active Member
Sep 7, 2018
4
0
41
36
Hi Everyone!

I have not had to do a setup like this for Proxmox before, but I would like to have the following settings.

From my hosting provider, My dedicated server is assigned

208.xxx.xxx.154/29

Currently, the host is on 208.xxx.xxx.154.

I would like to change it so I can have a VM on 208.xxx.xxx.154 and the host on 208.xxx.xxx.155 as well as having all of the VMs use the rest of the addresses in the block. How do I accomplish this?

UPDATE!:
Here is the interfaces file.

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 208.xxx.xxx.154
netmask 255.255.255.248
network 208.xxx.xxx.152
broadcast 208.xxx.xxx.159
gateway 208.xxx.xxx.153
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers xxx.xxx.xxx.xxx
dns-search com
dns-nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx



Thanks so much for all of your help!!
 
Last edited:
From my hosting provider, My dedicated server is assigned

208.xxx.xxx.154/29

Currently, the host is on 208.xxx.xxx.154.

I would like to change it so I can have a VM on 208.xxx.xxx.154 and the host on 208.xxx.xxx.155 as well as having all of the VMs use the rest of the addresses in the block. How do I accomplish this?

Depends on what your hosting provider allows.

The easiest way is the following:

- make a bridge vmbr0 with physical port eth0 (btw.: which Debian version do you use? eth0 looks old fashioned, i.e. jessie or older)

- assign the host to 208.xxx.xxx.155

- bridge your VM's NIC to vmbr0

- assign inside the guest 208.xxx.xxx.154 (as well as the same netmask, gateway, dns as the host have)


If your provider's switch/router do not allow unknown MAC addresses (i.e. those from VMs) you have to leave eth0 without being part of a bridge, assign 208.xxx.xxx.155 to it and route 208.xxx.xxx.154 to the VM via local virtual network.
 
This is an old machine that I was forced to upgrade from wheezy -> jessie -> stretch on because my hosting provider only had templates for Wheezy available. Just checked with my provider, they do not allow unknown MACs on their network. Can you detail more how to route the local virtual network?
 
Just checked with my provider, they do not allow unknown MACs on their network. Can you detail more how to route the local virtual network?

in principle as follows (this is not a detailed how-to):

- make a bridge vmbr0 without any physical port

- assign eth0@host to 208.xxx.xxx.155

- bridge your VM's NIC to vmbr0

- assign inside the guest 208.xxx.xxx.154 and define it as point-to-point connection

Code:
auto eth0
iface eth0 inet static
  address 208.xxx.xxx.154
  netmask 255.255.255.255
  pointopoint 208.xxx.xxx.155
  gateway 208.xxx.xxx.155

- route in the host 208.xxx.xxx.154 directly to vmbr0, e.g. by
Code:
route add 208.xxx.xxx.154 vmbr0

- enable routing in host by
Code:
echo 1 >  /proc/sys/net/ipv4/ip_forward
 

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!