Re: nmcli

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Once upon a time, Peter Larsen <peter@xxxxxxxxxxxxxxx> 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 10.1.1.2/24:

   nmcli con mod em1 -ipv4.address 10.1.1.2/24
   nmcli con up em1

-- 
Chris Adams <linux@xxxxxxxxxxx>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux