Question about Proxmox Networking

maverickws

Member
Jun 8, 2020
50
2
8
Hi all,

I recently purchased a couple of servers from Hetzner to test and get acquainted with Proxmox.
For this question I'll focus on the connection between two servers only.

The servers are all identical so let's say they all have one Xeon Processor, 2 drives, and one network card.
The connectivity for the VM's will be provided through a pfSense vm acting as router/gateway, and I'm aiming to connect the servers via Hetzner's vSwitch.

/etc/network/interfaces

Code:
auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp2s0
iface enp2s0 inet manual

auto enp2s0.4000
iface enp2s0.4000 inet manual
    mtu 1400

auto vmbr0
iface vmbr0 inet static
    address 80.100.30.192/27
    gateway 80.100.30.193
    bridge-ports enp2s0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

iface vmbr0 inet6 static
    address 2a01:4f8:0a:23b9::2/64
    gateway fe80::1

    up route add -net 80.100.30.192 netmask 255.255.255.224 gw 80.100.30.193 dev vmbr0
    up route add -net 190.200.150.108 netmask 255.255.255.248 gw 80.100.30.192 dev vmbr0

auto vmbr1
iface vmbr1 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

auto vmbr2
iface vmbr2 inet dhcp
    bridge-ports enp2s0.4000
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094
    mtu 1400

Both servers have a similar network config.
On server A the pfSense router is connected to (same on Server B):
vmbr0 for WAN
vmbr1 for LAN local
vmbr2 for the network that goes through the vSwitch with DHCP on.

Server A: VM's on LAN have connectivity all normal.
Server B: pfsense router connected to vmbr2 gets an address from pfsense on server A

On server A I have the vmbr2 bridge on proxmox to acquire a DHCP lease, as I was thinking it should get an IP from the DHCP server, and then I'd be able to select this network from Proxmox (for example private network for the cluster).

If I do `ip ad` I do have an IP assigned to the vmbr2 interface. DHCP appears to be working.

ISSUE:
- IP doesn't show on the Proxmox GUI.
- Can't select vmbr2 for "Cluster" for example.

Is this expected behaviour or am I missing something? Thanks
 
I changed enps02.4000 to vmbr0.4000
set static ip on vmbr0.4000 and corresponding entry on the DHCP server
removed vmbr2 and made required adaptions to pfsense
Connectivity OK and able to select interface.