the problem is it’s not changing at all, tell me how you get that the IP is changing. All I did was add a virtual interface with the extra IP as my vpn supplier has the default IPas one starting 185 & the 109 one was added afterwards … I think more the problem here is VM didn’t write the netplan config file correctly reading the above posts shows how I fixed it and how it was after the new virtual interface was added via virtualmin
Based on the screenshot, it appears you “changed” your NIC’s primary IP address from “185” to “109” which changed the “default IP” address. Then you “added” the “185” address back as a “virtual adapter”.
Is there a reason you didn’t simply “add” the “109” address as the virtual adapter?
Just trying to make better sense of how you actually got to where you are now.
*** My next few responses may be delayed as it’s 4:30 am PST and I’ll be away much of tomorrow ***
after reboot the netplan config file looked like this
This was the config for netplan with the nag screen.
To remove the nag screen the netplan config had to altered to
as you can see virtualmin forgot to add the 185 ip address to the netplan config, after adding the 109 address, as per above, and rebooting the vps everything returned to normal.
As I foot note up until now I have not researched network interfaces until now ( to try and fix this problem) in the past virtualmin has never failed but to be fair Ubuntu <= 20.04 you didn’t have to use net plan but it appears in 22.04 it’s the default. in fact in the past Jamie told me to remove the directory “/etc/netplan” as the boot up interfaces don’t show in the webmin module with this directory present therefore I am new to netplan
To add to this the ports used on both Ip’s are 27000 through 27100 but to be fair I could have opened 26000 through 26100 and pointed the running software to the newly opened ports, however steam game users like to be on default ports i.e 27000 & upwards
I don’t see DHCP4 being disabled, as config option named dhcp4: true still present on your netplan config file. You may also want to setup routes and nameservers in static IP configuration.
It can be done in Webmin using Networking ⇾ Network Configuration: Routing and Gateways and Networking ⇾ Network Configuration: Hostname and DNS Client pages.
After all your netplan config should look something like:
network:
ethernets:
ens3:
addresses: ['185.132.42.12/32','109.228.35.223/32']
accept-ra: true
nameservers:
addresses: [127.0.0.53, 8.8.8.8]
search: [.]
routes:
- to: default
via: 185.132.42.254 # may vary depending on your network configuration
version: 2
Also, I would suggest to contact your ISP to help you to switch to static network configuration.
If you wish to do it on your own consider using ip route and resolvectl status commands to fill the right network configuration.
went back to ubuntu 20.04 … as vm seams to have issues with 22.04 … this did fix the above problems but that said after reboot the virtual interface disappears rather than adding loads of interfaces with the same ip