This guide describes how to configure the network after installing a CentOS 8 ISO image.
CentOS 8 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 & Hostname during installation. If the parameter ONBOOT=no is set, the network is not 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 by entering the following command in the terminal:
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-ens192
When you see the CentOS 8 graphical interface, you must open the terminal to access vi. To do this, click Applications > System Tools > Terminal.
The editor 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 as follows: ONBOOT=yes
Press the ESC key.
To exit vi and save the file, type the following command and then press Enter:
To activate the interface, enter the following command:
[root@localhost ~]# ifup ens192