Main Proxmox Server IP and /27 SubNet for VMs

wupse

New Member
Mar 13, 2020
5
0
1
34
Hi community,
i am at the beginning of proxmox virtualization

i have a problem

my proxmox host has the following ip config (but gets ip config from dhcp server)
address 45.11.16.135
netmask 27
gateway 45.11.16.129

my subnet has this ip config
address 45.11.16.32
netmask 27
gateway 45.11.16.33

i tried exactly this config in "interfaces"
allow-hotplug eno1
iface eno1 inet dhcp
iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
address 45.11.16.135
netmask 27
gateway 45.11.16.129
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr0:1
iface vmbr0:1 inet static
address 45.11.16.32
netmask 27

but this does not work
have installed vm with ip 45.11.16.34 gateway 45.11.16.33 and netmask 255.255.255.224

maybe because of its not active?
(i dont know how to make vmbr0:1 active)

screenshotfrom2020-0354jls.png


ip does not route to vm and primary host ip doesnt root too anymore
i cant reach proxmox over webinterface because of non routing

the only thing i can do is to edit interfaces over remote management console

can you help?
 
Last edited:
my proxmox host has the following ip config (but gets ip config from dhcp server)
usually this does not work too well - but in any case you need to configure the ip on the vmbr0 - not on the bridge-port eno1
Code:
iface eno1 inet dhcp
this line needs to be changed (write manual instead of dhcp there) and try to reboot

If both /27 networks are directly on the link you don't need to configure an ip of the second network on the PVE-node at all - just plug the guests into vmbr0 and configure them to use an ip from the second network and the provided gateway

I hope this helps!
 
/etc/network/interfaces @proxmox host

Code:
auto lo
iface lo inet loopback

allow-hotplug eno1

iface eno1 inet static
address 45.11.16.135
netmask 255.255.255.224
gateway 45.11.16.129

iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
address 45.11.16.135
netmask 255.255.255.224
gateway 45.11.16.129
bridge-ports eno1
bridge-stp off
bridge-fd 0

auto vmbr0:1
iface vmbr0:1 inet static
address 45.11.16.32
netmask 27

ip config @vm
screenshotfrom2020-03y7jvi.png


doesnt work

with the above host config i cant reach proxmox webinterface anymore
 
Last edited:
Hi,

my subnet has this ip config
address 45.11.16.32
netmask 27
gateway 45.11.16.33
i tried exactly this config i

so in this subnet, you can use ip range : 45.11.16.33 -> 45.11.16.62

also , and your main proxmox ip is on another subnet, you can't put both subnets on the same vmbr0.
you need 2 vmbrX, and enable routing.
(and also, you can't put ip on eno1 if eno1 is a bridge-bridge port of eno1)


try something like this:

Code:
iface lo inet loopback

iface eno1 inet manual
iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
address 45.11.16.135
netmask 255.255.255.224
gateway 45.11.16.129
bridge-ports eno1
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward

auto vmbr1
iface vmbr1 inet static
address 45.11.16.33
netmask 27
[/QUOTE]
 
screen.png

after hard
reset of server this configuration is okay
but i create vm with gateway 45.11.16.33 and ip 45.11.16.34 netmask 255.255.255.224

cant reach vm from outside
 

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!