Help with nmcli

Jerry Geis jerry.geis at gmail.com
Tue Sep 7 20:41:45 UTC 2021


On Tue, Sep 7, 2021 at 11:03 AM Jerry Geis <jerry.geis at gmail.com> wrote:

> 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
>

Tried a number of things - could not get it to work.  Then it came to me to
set the network AFTER reboot - that works.

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


More information about the ubuntu-users mailing list