I have 2 interfaces on the server ens18 and ens19
ens18 is IPv4 only and ens19 is IPv6 only: this is due to how my host provider provides IPv4 and IPv6 they have to be on their own interface.
I did have a problem that I reported and was fixed in version 2.101 ticket 5630 where the yaml file created was not correct.
Since that correction, I have been able to issue netplan apply the file that is created from Webmin's Network Configuration page and the yaml applies fine.
Also if I press the Apply Configuration button on the /net/ page that applies fine.
But if I select the adaptor or adaptors ens18 ens19 on the /net/list_ifcs.cgi page and select apply selected interfaces, I get the following error message: "Failed to activate interfaces : RTNETLINK answers: Operation not supported"
Any help to resolve this is much appreciated.
Which Linux distribution and version are you running there?
Also, does the Apply button on the main page of the Network Configuration module work?
ubuntu 20.04 and as I said above the Apply button on the main page works as does a manual netplan apply at the console. I also get the same error message when I add an IP and use the SAVE and APPLY button.
Last edit: Stephen Cockburn 2023-11-13
Can you attach a screenshot of the Activated at Boot tag on the Network Interfaces page from your system?
Activated at boot as requested
Can you try applying this patch and then re-try activating the interface? https://github.com/webmin/webmin/commit/b095aa2b20309ad88417a569c1678d153e66fac1
It should show a more detailed error message now..
Done and got the following error message: Failed to activate interfaces : ip addr add dev ens19 failed : RTNETLINK answers: Operation not supported
Also ens18 which is IPv4 only applies fine, so I assume the error is happening because ens19 had no IPV4 address like I had with the previous netplan issue as mentioned in the first post. So I think its because ens19 is IPV6 only.
Last edit: Stephen Cockburn 2023-11-15
Ok, that's useful! Try also applying this patch : https://github.com/webmin/webmin/commit/35bae257f24721c35ba5a114947edf58d391bb5e
Many thanks, that has fixed the problem, will the fix now be integrated into a future release?
Last edit: Stephen Cockburn 2023-11-16
Yes it will. Thanks for reporting this!