After a fresh installation of CentOS in a new machine, the OS can not automatically connect to the network by default. So, the user/admin should manually change few setting so that the new system can gain a new IP address and connect to the internet.

To start, type nmcli d to check if the NIC card is installed properly.

image

Now the nmtui will open up the network manager setting for the centOS.

image

Choose the Edit a connection option

image

Choose the network interface and activate

image

Now, Click edit to configure the network settings

image

Check on the automatically connect option and OK to exit from network manager

image

Restart the network services

image

Enter the password of the root to commit the changes

image

Use the command IP a to see the IP configuration detail of the interfaces.

image

Ping google.com to check if the machine can connect to the internet.

image

Advertisements