Top 5 things to do after Linux Installation – RHEL/CentOS 7 Configuration
After installing the any Linux Operating System( RHEL/CentOS 7 Installation ), it is mandatory to RHEL/CentOS 7 Configuration which is required to proceed further.
In this article, I’m going to explain you about the very important 5 steps that are very useful when you installed fresh Linux Server. I hope every Linux Admin will do the same task after a fresh installation of the Linux OS. Every Linux engineer performs these below configuration settings before starting deploying anything on the server.
To change the IP Address and hostname to Static, following command will help you to set the static IP for RHEL/CentOS 7 systems,in traditional version RHEL/CentOS 5&6 we have used “setup” command to make static changes, but coming to the latest version of RHEL/CentOS 7 unlike we use different command here.
The following command will help you to set the static entries of IP address and Hostname and basic RHEL/CentOS 7 configuration.
RHEL/CentOS 7 Configuration
1. Network Configuration – Static IP Address adding
Suggestable Read: Network settings in Red Hat / CentOS 7
nmtui – NETWORK CONFIGURATION USING A TEXT USER INTERFACE (NMTUI)
RHEL – 7 Network Management – nmcli or nmtui
# nmtui is an alternative command for nmcli which is based on “Text User Interface”.
Step 1: To verify the status of Network service
|[[email protected] ~]# systemctl status network.service|
Step 2: To check which network interface is managed by Network Manager, run:
|[[email protected] ~]# nmcli dev status|
Step 3: Configure a Static IP Address without Network Manager
First, need to verify the network settings and its proper configuration as below
|[[email protected] ~]# vim /etc/sysconfig/network-scripts/ifcfg-enp0s3|
If you want to use Network Manager to manage the interface, you can use nmtui (Network Manager Text User Interface) which provides a way to configure Network Manager in a terminal environment.
Before using nmtui, first set “NM_CONTROLLED=yes” in /etc/sysconfig/network-scripts/ifcfg-enp0s3
Now let’s install nmtui as follows.
|[[email protected] ~]# yum install NetworkManager-tui|
Then go ahead and edit the Network Manager configuration of ifcfg-enp0s3 interface:
|[[email protected] ~]# nmtui|
Use the arrow keys to navigate this screen, press Enter to select from a list of values (or fill in the desired values), and finally click OK at the bottom right:
Finally, restart the network service.
|[[email protected] ~]# systemctl restart network.service|
After configuring the Static IP, you can free to use open source software called PuTTY, this is an SSH and telnet client Service.
PuTTY Download Link: putty.exe