Adding new IP blocks and assigning them to containers

dos360

New Member
Feb 25, 2015
4
0
1
Istanbul
I have two /29 IP ranges and two ethernet devices on my server. The interfaces file on the host is as follows

# network interface settings
auto lo
iface lo inet loopback
iface eth1 inet manual
iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address x.x.x.162
netmask 255.255.255.248
gateway x.x.x.161
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address x.x.x.250
netmask 255.255.255.248
bridge_ports eth1
bridge_stp off
bridge_fd 0​

IP addresses in the first block can be assigned to new containers and work as expected. Those in the second block don't work except for the first address in the block (x.x.x.250) which connects me to the Proxmox server itself -- a waste of address.

The documentation makes no sense to me. What should I do?

Ahmet
 
# network interface settings
auto lo
iface lo inet loopback

iface eth1 inet manual

iface eth0 inet manual

auto vmbr0
iface vmbr0 inet static
address 77.75.32.162
netmask 255.255.255.248
gateway 77.75.32.161
bridge_ports eth0
bridge_stp off
bridge_fd 0

auto vmbr1
iface vmbr1 inet static
address 31.210.75.250
netmask 255.255.255.248
bridge_ports eth1
bridge_stp off
bridge_fd 0
 
Those in the second block don't work except for the first address in the block (x.x.x.250) which connects me to the Proxmox server itself -- a waste of address.

Why do you configure that on the host then (the host does not need that additional IP address).
 
Why do you configure that on the host then (the host does not need that additional IP address).

I know that there is an error in my configuration and am here to seek help. I have two sets of /29 IP blocks. I would like to use one IP address for the host and the rest for guests. The existing documentation is not particularly helpful: https://pve.proxmox.com/wiki/Network_Model, https://pve.proxmox.com/wiki/Vlans.

Do you know where I can find better documentation and a working configuration please?

Ahmet
 
I suspect that this is a fairly common requirement. Isn't there a way to do it without drama? Some people in this forum claim to have succeeded but they did not take the time to explain their topology and configuration files.

Ahmet