Score:0

Netplan not being applied at startup

ph flag

I have an old PC which I wanted to make into a linux server. I downloaded Linux Server 20.04 LTS onto my USB and installed it normally without any issues. Then, when trying to connect to the internet via Wi-Fi I discovered that apparently its not possible right away from the system itself, so I followed this tutorial https://www.youtube.com/watch?v=Dacn58kgMXA&t=402s&ab_channel=DrewHowdenTech Which basically told me to download supplicant and some dependencies, then create netplan file and apply that plan.

Everything worked fine. I pinged google, downloaded all the updates and rebooted my machine only to find out that I don't have access to internet anymore ("Temporary failure in name resolution" when trying to ping google). After long and PAINFULL troubleshooting I discovered that my internet connection disappeared because my network plan wasn't applied. I had to do "sudo netplan apply" to bring back my internet connection. There's no way I'm doing that every time I turn that PC on, so I started searching the internet but nothing helped me.

I tried: changing the file to be accessible to anyone (I thought it can't apply my netplan because my user doesn't have permission)
copy pasting the file from "/etc/netplan/" to "/run/netplan/" (https://netplan.io/faq told me that those folders have hierarchy, so i thought it can help)
removing "optional: true" from my netplan file (to force it to be waited for at boot)

On netplan website I found an information that "If the interface is not configured in a .yaml file in /etc/netplan, it will not be configured at boot. " but my configuration IS a .yaml file and it indeed IS placed in /etc/netplan

How do I force that file to apply at startup?

chili555 avatar
cn flag
Please edit your question to add the result of: `cat /etc/netplan/*.yaml` and also: `ip a` Welcome to Ask Ubuntu.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.