How to set route metric in container?

JTownBrewer

New Member
Mar 26, 2018
4
1
3
51
I have a container with 2 network interfaces configured on different subnets. I would like to set the routing metric on one of the interfaces, but am not having any luck figuring out how to do so.

Running on proxmox 5.1 (all updates current). The container is Arch, using systemd-networkd, and both interfaces are currently set as DHCP in Proxmox.

I've tried putting in a .pve-ignore.eth0.network file in /etc/systemd/network and adding the metric to the eth0.network file, but then that interface isn't managed at all (and isn't brought up). I don't see any options to put into the container's configuration (/etc/pve/lxc/xxx.conf) to set a metric.

Anyone know how to do this?
 

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!