PVE in 2 subnets with 1 NIC?

Kiwiana

Member
Mar 15, 2021
9
0
6
44
Hi, I'm new to Proxmox and don't have that much Linux experience...

I have an intel NUC which is running Proxmox VE. It has the IP address 192.168.3.52. Then I have a NAS with the IP address 192.168.1.10.
I wanted to create a new PVE disk which is network share on the NAS. This failed so far and I tried to ping the NAS in the PVE shell which never gets an answer.

However, I created a qemu virtual machine which works fine (Home Assistant) which has an IP in the 192.168.3.x range but can also access the NAS. So, something is missing in my PVE network I assume but I couldn't figure out what.

Right now the PVE network has these entries:
eno1 - Network Device
vmbr0 - Linux Bridge, 192.168.3.52/24, Gateway 192.168.3.1, Bridge ports: eno1
vmbr1 - Linux Bridge, 192.168.1.52/24 (this was my try but I still can't ping the NAS - which does reply pings)

Help would be appreciated, I searched the forum but only found slightly different questions (mostly about the hosts)
 
Hi, I'm new to Proxmox and don't have that much Linux experience...

I have an intel NUC which is running Proxmox VE. It has the IP address 192.168.3.52. Then I have a NAS with the IP address 192.168.1.10.
I wanted to create a new PVE disk which is network share on the NAS. This failed so far and I tried to ping the NAS in the PVE shell which never gets an answer.

However, I created a qemu virtual machine which works fine (Home Assistant) which has an IP in the 192.168.3.x range but can also access the NAS. So, something is missing in my PVE network I assume but I couldn't figure out what.

Right now the PVE network has these entries:
eno1 - Network Device
vmbr0 - Linux Bridge, 192.168.3.52/24, Gateway 192.168.3.1, Bridge ports: eno1
vmbr1 - Linux Bridge, 192.168.1.52/24 (this was my try but I still can't ping the NAS - which does reply pings)

Help would be appreciated, I searched the forum but only found slightly different questions (mostly about the hosts)

I'm not sure that I understand your topology
How is NAS connected with PVE node?
I mean on physical connection. You have one switch and in one port is PVE on second is NAS or ?
 
To route between networks you generally need a router. Is there a reason why the proxmox host can't be on the same network as the NAS?

Is there actually a device at 192.168.3.1 or is that just what you have defined as the gateway for that network?

Are vmbr0 or vmbr1 associated with eno1?
 
Last edited:
auto lo iface lo inet loopback auto eno1 #real IP address iface eno1 inet static address 192.168.1.52 netmask 255.255.255.0 gateway 192.168.1.1 auto vmbr0 #private sub network iface vmbr0 inet static address 192.168.3.52 netmask 255.255.255.0 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.3.0/24' -o eno1 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.3.0/24' -o eno1 -j MASQUERADE

from https://pve.proxmox.com/wiki/Network_Configuration
 
Last edited:
  • Like
Reactions: gelcom
auto lo iface lo inet loopback auto eno1 #real IP address iface eno1 inet static address 192.168.1.52 netmask 255.255.255.0 gateway 192.168.1.1 auto vmbr0 #private sub network iface vmbr0 inet static address 192.168.3.52 netmask 255.255.255.0 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.3.0/24' -o eno1 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '192.168.3.0/24' -o eno1 -j MASQUERADE

from https://pve.proxmox.com/wiki/Network_Configuration
Thanks for that. I edited the interfaces file directly but it seems to have reverted to what's defined in the PVE GUI. in the interfaces is a note to utilize 'source' or 'source-directory', do i have to make use of that?
 
Yeah, something didn't work, the PVE was not available anymore after applying the settings (couldn't reach the GUI from my PC anymore on 192.168.1.52 nor 192.168.3.52 (old) )

However, I restored the original network settings, cleaned up some router settings and now everything seems to work.
 
Last edited:

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!