nmcli Renew / Restart / Stop DHCP Linux Command For NetworkManager

Fig.02: nmcli command in action

Fig.02: nmcli command in action

nmcli is a command-line tool for controlling NetworkManager and getting its status. It is not
meant as a replacement of nm-applet or other similar clients. Rather it’s a complementary util‐
ity to these programs. The main nmcli’s usage is on servers, headless machines or just for
power users who prefer the command line.

Get list

nmcli con

Stop interface

nmcli con down id 'Connection'

Start interface

nmcli con up id 'Connection'

Examples and usage: Linux Force DHCP Client (dhclient) to Renew IP Address