Configuring a Server After Installing an ISO Image (CentOS 7)

This guide describes how to configure the network after installing a CentOS 7 ISO image.

CentOS 7 configures the network interface correctly via DHCP but automatically sets the parameter ONBOOT=no if you do not activate the network interface Ethernet (ens192) under NETWORK & COMPUTERNAME during installation. If the parameter ONBOOT=no is set, the network will not be activated after restarting. In this case, server access is only possible via the KVM console.

To change the onboot parameter after the installation is complete, follow these steps:

  • Open the file /etc/sysconfig/network-scripts/ifcfg-ens192 with the editor vi. To do this, enter the following command:
    [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens192

Notes
  • When you see the CentOS 7 graphical interface, you must open the terminal to access vi. To do this, click Applications > System Tools > Terminal.

  • Vi has an insert mode and a command mode. You can enter the insert mode by pressing the i key. In this mode the entered characters are immediately inserted into the text. To enter the command mode, then press the ESC key. If you use the command mode, your keyboard input is interpreted as a command.

  • Change the parameter ONBOOT=no: ONBOOT=yes

  • Press the ESC key.

  • To exit vi and save the file, type the following command and then press Enter:
    :wq

  • To activate the interface, enter the following command:
    [root@localhost ~]# ifup ens192