Score:0

How do you reset networking interface to defaults?

in flag

How do you reset Ubuntu's networking interface to the default configuration?

I'm not asking how to restart the networking service. I'm asking how to wipe out any custom networking configurations as though you had just installed Ubuntu for the first time.

Searching for guides on how to reset networking just gives me tons of results on how to edit YAML files. Obviously, when you install Ubuntu for the first time, you don't have to edit YAML files. There must be some command to reinstall the default configuration files?

I have a server configured to use a static IP, which I first setup back when it was Ubuntu 16, and now it's on Ubuntu 22. For some reason, I'm unable to change the static ip, and editing the legacy /etc/network/interfaces nor editing the new netplan shenanigans has any effect, so I'm guessing the upgrade has left me in no-man's land. To work around this, I want to reset it to the default DHCP and start from scratch.

Pilot6 avatar
cn flag
What is the Ubuntu version you are using now?
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.