Saturday, August 25, 2018

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


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.