[SOLVED] Wrong elaboration of `/etc/network/interface` by proxmox gui

Fra

Renowned Member
Dec 10, 2011
143
10
83
From a pristine installation of Proxmox pve 6.4 from ISO, with just the following

Bash:
apt dist-upgrade
reboot
install ifupdown2

I just added a comment in the network configuration from the GUI, and applied. Changes results as follow:


Bash:
diff  /etc/network/interfaces.original  /etc/network/interfaces
-    bridge_ports enp5s0
-    bridge_stp off
-    bridge_fd 0
+    bridge-ports enp5s0
+    bridge-stp off
+    bridge-fd 0

To me it looks like the GUI makes a wrong change (https://manpages.debian.org/testing/bridge-utils/bridge-utils-interfaces.5.en.html )

Bash:
# pveversion
pve-manager/6.4-8/185e14db (running kernel: 5.4.119-1-pve)
 
Last edited:
mah, there is apparently not any difference on using `_` vs `-`, can somebody confirm?
 
External commands are documented in interfaces(5) as being called with environment variables created from options by pretending IF_ and converting - to _. The bridge commands are not built in to ifupdown so the behavior you see is not too surprising.
 

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!