developer workstation Proxmox 6.1

aureladmin

Well-Known Member
Apr 15, 2016
30
10
48
I installed my laptop in "developer workstation" mode with the XFCE interface and everything else.

There is one thing that I cannot do for the moment, it is a "bond0 active-backup" with a wifi and ethernet card.

I am putting my current "interfaces" file to you.

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

allow-hotplug enp111s0
iface enp111s0 inet dhcp
#    metric 1000


## VMBR-WAN
auto vmbr0
iface vmbr0 inet static
    address  192.168.199.254
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    metric 1000
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.199.0/24' -o enp111s0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.199.0/24' -o enp111s0 -j MASQUERADE


## VMBR-VLAN
auto vmbr211
iface vmbr211 inet static
    address  192.168.211.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr212
iface vmbr212 inet static
    address  192.168.212.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr213
iface vmbr213 inet static
    address  192.168.213.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr214
iface vmbr214 inet static
    address  192.168.214.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr215
iface vmbr215 inet static
    address  192.168.215.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr216
iface vmbr216 inet static
    address  192.168.216.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr217
iface vmbr217 inet static
    address  192.168.217.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr218
iface vmbr218 inet static
    address  192.168.218.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

auto vmbr219
iface vmbr219 inet static
    address  192.168.219.211
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0

I tried the modifications below but without success:
Code:
allow-hotplug enp111s0
iface enp111s0 inet manual

auto bond0
iface bond0 inet dhcp
      slaves enp111s0 wlo1
      bond_miimon 100
      bond_mode active-backup

## VMBR-WAN
auto vmbr0
iface vmbr0 inet static
    address  192.168.199.254
    netmask  24
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    metric 1000
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.199.0/24' -o bond0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '192.168.199.0/24' -o bond0 -j MASQUERADE

The Wifi card wlo1 is managed by network manager without dhcp (in manual).

I have also attempt to use the "laptop mode" with this instruction : Debian Bonding
 
You have quite a lot bridges, each "disconnected" from any other network port/device and havinga single static address on them, why's that? Maybe you would have a more flexible setup if you add one bridge, install dnsmasq and setup a local DHCP server on that bridge interface? Here on my dev workstation i have such a disconnected bridge with following dnsmasq.conf for VM/CT tests which should not pollute our lab network:

Code:
interface=vmbr04
bind-interfaces
dhcp-range=10.10.0.10,10.10.0.254,1h
log-dhcp

Just a slightly off-topic tip.


I tried the modifications below but without success:

Shouldn't have the vmbr0 bond0 as slave-port, instead none? And also add the laptop's host IP on the bond?
 
The vmbr without bridge it's for test network architecture before deployment. All vmbr represent a vlan. there is pfsense VM for routing between vmbr.
dhcp is managed by vm (domain server, ...) so no need for dhcp on proxmox-ve

I have test vmbr without address but the vmbr do not up at boot (no connection). I have also test with "bridge vlan-awares" but with pfsense there are some error with the network card. there are juste one network card present in pfsense but in the config vm i have 9 vmbr1 with different tag vlan for each.
 

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!