How to revert by complete the effects/settings of the "netplan" command?

Hello Friends

For Ubuntu Server 24.04 was possible define the static ip through:

  • a custom /etc/netplan/01-netcfg.yaml file

And finally executing the following commands:

  • sudo netplan generate
  • sudo netplan apply

It works perfect until Ubuntu Server 22.04, but for 24.04 I have the following situation:

Is not critical and is possible solve until some point.

Now, for Fedora Server and even for Debian Server is possible use the nmcli command.
The good thing is that a .yaml file is not involved, therefore:

  • The error prone of its own syntax is gone
  • Is not necessary upgrade its own syntax (for example about the routes key part)

Question

  • How to revert by complete the effects/settings of the netplan command?

Of course at a first glance is move to other place the /etc/netplan/01-netcfg.yaml file but to be sure I am creating this post prior to use the nmcli command to avoid any kind of complications

Purpose

Configure from the scratch as a new installation the static ip through the nmcli command and expecting that the secondary ip dynamic case does not appear.

Note: the OS runs in an isolated environment through VirtualBox

Thank You

2 Likes

If I understand this correctly, you ard trying to return all network settings on one static ip interface to their defaults.?

I think this tells you how

2 Likes

Thanks for the reply Neville

If I understand this correctly, you ard trying to return all network settings on one static ip interface to their defaults.?

Not really. I want have the settings about networking as it came from the beginning, I mean, it when the OS itself was installed for first time. By default was a dynamic ip. But I am assuming that perphaps other settings were defined from the beginning in the network

Therefore I want start to define the static ip with all the default settings as the first time. But now working with the nmcli command

Huge thanks for the link. I am going to do a research about that.

2 Likes

I get it, the main aim is to use NetworkManager instead of Netplan. Another option is Conman… have you tried that?

2 Likes

As usual thanks for your time

I played with nmcli thanks to Fedora Server and I liked, no more .yaml involved. Perhaps more commands to execute but is straightforward and possible create a script file in peace

I did do realize it is well maintained

Another option is Conman… have you tried that?

Never used, it because so far I had zero problems with nmcli and to be honest I didn’t know about its existence. Thanks for that extra info too.

What is its official page? I found for example

Thank You

1 Like

It seems to be an Intel project. So well supported.

ConnMan is the default network app in Artix (non-systemd Arch).

and also in Antix

and is optional in Devuan and Void

A lot of the non-systemd distros tend to use ConnMan, probably because they like to offer choices.

2 Likes

Thank you …

just reading some tutorials about the nmcli command and was mentioned other very interesting command. It is nmtui

1 Like

Yes that looks interesting.
There is a useful nmtui tutorial here

I use NetworkManager in Void.
I will give nmtui a try.

2 Likes

RedHat has good documentation too

Thanks for the link! … new command(s) to learn :nerd_face:

1 Like