After manually configuring your network settings (static IP, etc..) you’ll have to reload and restart the interface for the changes to take effect.
Reload connection profile
nmcli connection reload
Restart connection
nmcli connection up ifname eth0
OR
Restart device
nmcli device down eth0;nmcli device up eth0
Where eth0 is the device name.
To display configured network devices use the following:
nmcli device show
To show the device status use:
nmcli device status
DONE!
Another way to restart the connection with UUID instead of interface/device name
You can also restart the connection using the following method after reloading the config profile:
Get the connection UUID:
nmcli connection show
You’ll see output similar to:
NAME UUID TYPE DEVICE System eth0 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 ethernet eth0
Copy the UUID then restart the connection using the following command:
nmcli connection up {UUID}
Replace {UUID} with your connection UUID.
Or :
nmcli connection down {UUID};nmcli connection up {UUID}
Replace {UUID} with your connection UUID as follows:
nmcli connection down 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03;nmcli connection up 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03