Help with nmcli

Jerry Geis jerry.geis at gmail.com
Tue Sep 7 15:03:37 UTC 2021


HI I am doing autoconfig setup of a box. All that is working.
At the end I want to run the NetworkManager to set the "static" IP of the
box.
I logged the following commands before the reboot.

nmcli connection modify "Wired connection 1" ipv4.method manual ipv6.method
ignore autoconnect yes ipv4.addr 192.168.123.40/24 gw4 192.168.123.1
ipv4.dns 8.8.8.8

systemctl restart NetworkManager


But it does not take.

Is there something special "DURING autoinstall" that I have to do first to
make network-manager be alive and accept my command?

During autoinstall I am setting up the netplan to be NetworkManager. I do
this in the late-commands:
["curtin", "in-target", "--", "sh", "-c", "echo \"network:\n  version: 2\n
 renderer: NetworkManager\n\" > /etc/netplan/00-installer-config.yaml"]

Thanks,

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210907/c8fa6db7/attachment.html>


More information about the ubuntu-users mailing list