GUI delete netmask from /etc/network/interfaces

ianmbetts

Member
Mar 11, 2020
24
1
23
65
Hi folks, I am having trouble with clean install on buster.

Any time I make any alteration to the network config using the GUI it removes the netmask definition from the network devices in /etc/network/interfaces. This is totally repeatable, and it doesnt matter if the /24 notation or the 255.255.255.0 notation is used.

E.g, if I use the GUI to assign an address 192.168.5.99/24 to a previously unallocated nic, the net mask is never added to the interface definition in /etc/network/interfaces (all other parameters are correct) , nor does the netmask appear as expected afterwards in the in the tabulated info in the GUI, only the ip address 192.168.5.99 is shown ( no /24 on the end).

If I add explict netmask (or /24) manually in /etc/network/interfaces and then refresh the GUI, it is corrected and everything looks and works ok, but as soon as I make any alteration to (any) network interface/bridge/vlan using the GUI the netmask is stripped on all the interfaces.

I should add that this is true regardless ifupdown2 is installed or not.
I am at a loss to understand what is happening here as this on a completely clean install, and happening all three nodes.

Any pointers would be appreciated.
Thanks
 
Can you please send the output of pveversion -v?
 
proxmox-ve: 6.1-2 (running kernel: 5.3.18-2-pve)
pve-manager: 6.1-7 (running version: 6.1-7/13e58d5e)
pve-kernel-helper: 6.1-7
pve-kernel-5.3: 6.1-5
pve-kernel-5.3.18-2-pve: 5.3.18-2
ceph: 14.2.6-pve1
ceph-fuse: 14.2.6-pve1
corosync: 3.0.3-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 2.0.1-1+pve4
libjs-extjs: 6.0.1-10
libknet1: 1.15-pve1
libpve-access-control: 6.0-6
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.0-13
libpve-guest-common-perl: 3.0-3
libpve-http-server-perl: 3.0-4
libpve-storage-perl: 6.1-5
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 3.2.1-1
lxcfs: 3.0.3-pve60
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-3
pve-cluster: 6.1-4
pve-container: 3.0-21
pve-docs: 6.1-6
pve-edk2-firmware: 2.20200229-1
pve-firewall: 4.0-10
pve-firmware: 3.0-6
pve-ha-manager: 3.0-8
pve-i18n: 2.0-4
pve-qemu-kvm: 4.1.1-3
pve-xtermjs: 4.3.0-1
qemu-server: 6.1-6
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.3-pve1
 
ok good news.
A fresh install now seems to work as expected ( I may have inadvertently omitted to edit /etc/hosts )
Even better news the cidr/netmasl issue is resolved :-)
Thankyou.
 
  • Like
Reactions: Stoiko Ivanov