I'm having an issue with netplan settings being changed on reboot. I'm attempting to setup a simple bridge network on my home server. My configuration is in a file called /etc/netplan/99-netconfig.yaml
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: no
bridges:
br0:
dhcp4: yes
interfaces:
- enp1s0
When I run netplan generate and netplan apply everything works as intended. When I reboot, suddenly I get a file in /run/netplan/enp1s0.yaml that calls for a static IP address. I also get 3 files under /run/systemd/network, and one of them is 10-netplan-enp1s0.network. That file also calls for a static IP address. Even if I delete all of these files and reset my netplan, they will all return upon reboot.
Is there a way to prevent this from happening? It took me a while to get this far, but I'm stuck in figuring out what in my system is making this happen. This issue causes my server to lose internet.
I'm running Ubuntu 24.04.2 LTS x86_64. I am also running Docker.
Any help is appreciated.