how to Set Up Persistent IP Address on Ubuntu 22.04 Server with Netplan
I'm attempting to set up I've searched everywhere and can't find a clear answer. I'm working on a project and hit a roadblock... I'm trying to configure a static IP address on my Ubuntu 22.04 server using Netplan, but after applying the configuration, I still need to access the server using the new IP. The configuration file located at `/etc/netplan/01-netcfg.yaml` looks like this: ```yaml network: version: 2 ethernets: ens33: dhcp4: no addresses: - 192.168.1.100/24 gateway4: 192.168.1.1 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 ``` After editing the file, I applied the changes using the command `sudo netplan apply`, but when I check the IP address with `ip a`, it still shows the old DHCP address. I've also tried running `sudo netplan --debug apply` to see if there are any errors, but there aren't any messages indicating a question. I have double-checked the indentation in the YAML file, as I know that can cause issues, and it looks correct to me. Additionally, the service for the network is running since I verified with `systemctl status systemd-networkd` and it shows as active. What could be causing the static IP configuration to not take effect? Are there other steps I might be missing? I also want to ensure that this setup will continue after a reboot, which seems to be a common scenario I've read about. Any insights or troubleshooting steps would be greatly appreciated. Is there a better approach? My development environment is Windows. Any help would be greatly appreciated! This issue appeared after updating to Yaml 3.10. What are your experiences with this? Any suggestions would be helpful.