SYSTEM INFORMATION | |
---|---|
OS type and version | Debian Linux 12 |
Usermin version | 2.203 |
Virtualmin version | 7.30.8 Pro |
Theme version | 23.03 |
Apache version | 2.4.62 |
Linux 6.1.0-31-amd64 on x86_64 |
SERVER:
Debian12
Using “systemd-networkd” with “netplan”
PROBLEM:
Webmin can’t handle correctly the configuration of netplan
Can not read correctly
Can not save correctly
If “apply” the server lost connectivity due to bad network configuration
CONFIGURATION:
“/etc/netplan/50-cloud-init.yaml”
network: version: 2 ethernets: enp10s0f0: addresses: ['XX.XX.XX.XX/32', 'YYY:YYY:YYYY:YYYY::1/128'] nameservers: addresses: [8.8.8.8, 1.1.1.1, '2001:4860:4860::8888', '2001:4860:4860::8844'] routes: - to: default via: 100.64.0.1 on-link: true metric: 100 - to: default via: fe80::1 on-link: true metric: 100 accept-ra: false match: macaddress: d8:43:ae:8a:0d:76 set-name: enp10s0f0
IMPORTANT:
The options “on-link:true” and “metric: 100” are absolutely necessary both
If one of them is missing, then configuration does not work
APPLY:
$netplan generate
$netplan apply
RESULT:
All is absolutely correct
But only if the configuration is set correctly with all the required params (as I have said)
PROBLEM WITH WEBMIN:
Can not read this configuracion
And if you make same change of network in webmin and “save”, then does not write the necessary options, and “destroy” the network configuration of the server
ISSUE:
Obviously the issue is with webmin, that cannot read-write this kind of configuration