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

Fra

Renowned Member
Dec 10, 2011
146
15
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.