Hi, i have installed Ubuntu 24.04 LTS manually and set the DHCP server manually for ipv4 and ipv6. However the netplan not show ipv4 gateway and the NAT forwarding not work when i have ipv6 setup. can you help what is the right way to revise this to have ipv4 gateway working?
Got it working with this. i don’t know why routes for each ipv4 and ipv6 is not being assigned during manual first setup. If i am setting ipv4 first and second ipv6, the gateway assign ipv6. if i setup ipv6 first, ipv4 gateway being assigned during fresh install but not both for each.
Depends how you define “new” … in the light of the age of the universe it definitely is …
In Ubuntu it was introduced in 2014 and became the default in 16.04, so it has been around as the default for 8 years now …
i am very new to linux and haven’t got the chance to dig deeper while my preconfigured vps was working. i recently switched to dedicated server and then i started working on this.
my vps preconfigured ubuntu 24.04 lts manage network via /etc/network/interfaces while the same ubuntu version iso i use in proxmox uses netplan.
Could you help how different it is?
also if you know if netplan config is a bug or not?
as mentioned i don’t think the issue is in netplan.
The issue is Ubuntu GUI not writes the network configuration properly in /etc/netplan/50-cloud-init.yaml or .yaml file during the first time setup/os installation.
i will wait for some help from other team members.
Well, I dont know what the GUI in your two last screenshots is, the first ones clearly show “subiquity” though … which is the name of the server installer … you might want to add an additional task to your bug to include subiquity
Last two screenshot is from Proxmox noVNC. That’s what we use to install os on proxmox VM.
first two are simply a cropped version of novnc window or ssh client. There is no specific installation method that would complicate this. it is like a regular installation with iso.
The issue is, like you see in first two screenshot, the network DHCP is set for both ipv4 and ipv6 but the DHCP gateway adds a single one based on which network type was set in last.
This might help or might not but could be a interesting read ipv6 on ubuntu
I use netplan on my 3 Servers but don’t have any set to static on the servers found it easier to set the IP’s static via the router. I also don’t VM, pretty much stick to a simple setup to do 1 task per server. So the link may not assist you but could provide a better look into setup of netplan.
not sure if i need to add the following line as it is working without adding this.
dhcp4: false
dhcp6: false
on-link: true
again, the issue is not netplan, it is ubuntu os installer network screem which not adding the routes it should for both ipv4, ipv6.
however the above doc almost confirm that my code is correct and can be used without any issue. i will wait for some response before deploying it on other vms.
given a fresh install and adding new screenshot of the issue. You notice while i manually set the static ipv4, ipv6 including the gateway, one is not being added in routes.