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
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.
nmtui
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
***
Comments
Post a Comment