Multiple default route metrics

oopsibrokeitagain

New Member
Oct 19, 2021
1
0
1
Hello,

Long time lurker, first time caller.

I am running a PVE cluster with two switches for redundancy. Both switches have access to the rest of the network/internet. The primary switch is connected with dual 10G LACP links and the secondary with dual 1G active-backup links.

My goal is to set the default route on both links, with the primary route being over the 10G switch. This can be accomplished normally with:
Code:
ip route add default via xx.xx.xx.xx metric 200


What is the appropriate way to accomplish this using the /etc/network/interfaces configuration file?

Here is my current setup:
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto eno2
iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto enp6s0
iface enp6s0 inet manual

auto enp6s0d1
iface enp6s0d1 inet manual

auto pve
iface pve inet static
        address 10.23.70.11/24
        gateway 10.23.70.1
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=2370

iface pve inet6 static
        address 2603:xxxx:xxxx:2570::11/64

auto pvebackup
iface pvebackup inet static
        address 10.23.75.11/24
        ovs_type OVSIntPort
        ovs_bridge vmbr1

auto bond0
iface bond0 inet manual
        ovs_bonds enp6s0 enp6s0d1
        ovs_type OVSBond
        ovs_bridge vmbr0
        ovs_options other_config:lacp-time=fast lacp=active bond_mode=balance-tcp

auto bond1
iface bond1 inet manual
        ovs_bonds eno1 eno2
        ovs_type OVSBond
        ovs_bridge vmbr1
        ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 pve

auto vmbr1
iface vmbr1 inet manual
        ovs_type OVSBridge
        ovs_ports bond1 pvebackup
 

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!