How To Activate The Network After An Installation

Home » CentOS » How To Activate The Network After An Installation
CentOS 3 Comments

Hallo,

I can t find the switch to activate the network after an installation
without gui. service network start doesn t work and I don t find any other commands.

Thanks for a hint.

Ralf

3 thoughts on - How To Activate The Network After An Installation

  • Normally the place to configure this per a preset network would be in the appropriate file in /etc/sysconfig/network-scripts/ifcfg-
    This would have a variable called ONBOOT= which needs to be set to yes

  • Possibly during install you set the network connection but you didn’t check the auto start check box, that is in the first label at the left of the network configuration page for that interface. If this is the case, if you are connected from console, and you defaulted to use NetworkManager (you can verify with “systemctl status NetworkManager”), these would be the commands:

    You have devices and connections, that are different things; in my case an automatic install has created a device named ens192 and also a connection with the same name.

    – device information
    [root@c7 ~]# nmcli dev status DEVICE TYPE STATE CONNECTION
    virbr0 bridge connected virbr0
    ens192 ethernet connected ens192
    lo loopback unmanaged

  • Hi Ralf,

    If the setuptool package is not installed, then I would suggest to use ip or ifconfig to temporarily assign a network configuration. Then use yum to install the setuptool package.

    Use “setup” to configure network devices, directory services and runtime services in your favorite terminal window.

    Good luck Harri