Configuration for Interface failover

gdseb

New Member
Sep 20, 2021
3
0
1
51
Configuration for Interface failover

Hello,

I am new to Proxmox and have little knowledge of debian.

I would like to configure my proxmox to switch between interfaces (Ethernet and Wifi) when one or the other is down
By default: proxmox is connected via Ethernet
If the ethernet drops, the wifi is enabled and the VMs are still accessible.

For the moment, wifi is activated but the router is not pinged.

My interface file:
auto lo
iface lo inet loopback

auto enp1s0
allow-hotplug enp1s0
iface enp1s0 inet dhcp

allow-hotplug wlp2s0
auto wlp2s0
iface wlp2s0 inet static
address 192.168.0.15/24
gateway 192.168.0.1
wpa-ssid MySSID
wpa-psk xxxxxxxx

auto vmbr0
iface vmbr0 inet static
address 192.168.0.19/24
gateway 192.168.0.1
bridge-ports none
bridge-please off
bridge-fd 0

What's wrong in my config?

Regards
 
Hi,

did you read https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration ?

Your vmbr0 has no physical device. Is this by accident or by intention?

Learning network basics will tell you: you can not have two interfaces with different address in the same network without applying additional black magic and/or voodoo! Routing would be ambiguous and would not work (reliably).


Best regards
 
I think you can create an active-backup bond interface, and add enp1s0 && wlp2s0 in the bond. (with enp1s0 as primary)


Code:
auto enp1s0
iface enp1s0 inet manual

auto wlp2s0
iface wlp2s0 inet manual
    wpa-ssid MySSID
    wpa-psk xxxxxxxx

auto bond0
iface bond0 inet manual
    bond-slaves enp1s0 wlp2s0
    bond-miimon 100
    bond-mode active-backup
    bond-primary enp1s0

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.19/24
    gateway 192.168.0.1
    bridge-ports bond0
    bridge-please off
    bridge-fd 0
 
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!