[CentOS] nmcli

Wed Mar 31 02:36:36 UTC 2021
Chris Adams <linux at cmadams.net>

Once upon a time, Peter Larsen <peter at peterlarsen.org> said:
> >how do I just remove the single ADDRESS I added as an alias ? not the whole
> thing ?
> You first remove all ipv4.addresses and then add the one you want. Then you
> save/activate.

That's not necessary.  For any setting that can be multi-valued (such as
addresses and routes), you can prefix with + or - to add or remove just
one entry.  For example, to remove just address

   nmcli con mod em1 -ipv4.address
   nmcli con up em1

Chris Adams <linux at cmadams.net>