Setup CentOS Network from Command Line

For CentOS minimal install, the network device is disabled by default. To turn on the device, we use network manager command line tools

First we need to check for if the network device exist:

nmcli d

Once we confirm that the device is present, use another tool to activate the network. Use the command below to activate the network.


Select "Edit a connection".

Select the network device and choose Edit....

Most of the setting are default, just make sure that "Automatically connect" is checked. Select OK when done.

On the main screen, select Activate a connection. Once the connection is activated, we are good to go.

We can check the network connection using the command below:

nmcli connection show



Popular posts from this blog

Install and Configure RealVNC in Linux Ubuntu 18.04 LTS

Configure Unattended Upgrades on Raspberry Pi

Revive Old Mac Mini (2009) with Linux