I have Ubuntu 22.04.1 desktop installed. Can I change my network settings using the ip command while NetworkManager is running?
2 Answers
You can use the ip
command. But there's a few things to note:
- It may be overwritten by NetworkManager.
- It's not persistent.
Generally I would suggest you use nmcli
or nmtui
to configure the network. Those are console frontends for Network Manager, and will modify the same backend as the graphical tools.
Since "the network" is a system-wide resource, any configuration change, done via ip
command or GUI or purpose-written program, affects "the network" for the whole system. There are two caveats: Some changes only applied as the interface transitions from DOWN
to UP
; and any GUI UI suffers from WYSIAYG (What You See Is All You Get) - if the GUI developers didn't think of "it", you can't do "it".
ip
command is for use in command line terminals and scripts. Your request for a "GUI" makes no sense for theip
command. You could do most of your network configuration via the GUI atSystem settings->Network
.