In this tutorial we will learn step by step how to configure IP address in linux . There are different ways in linux to configure IP address. We will show how to configure IP address in linux in different ways. We will use GUI tool nmtui text bases user interface network manager tool
What is IP address?
- An IP address is a set of 4 numbers assigned to each device/system on a computer network.
- Every computer requires IP address to communicate with others over the LAN or WAN.
- In computer network the IP address is a numerical representation of a host address.
For example, the domain google.co.uk would go to the IP address 216.58.210.67 There are four configuration parameters required for Static IP.
- IP Address
- Subnet mask
- Default Gateway or Router
- DNS Server(s)
There are two ways to configure an IP on a host.
- Static Configuration
- Dynamic Configuration
Static IP ConfigurationYou have to assign all these parameters manually.
The IP address will not change automatically. We assign static IP addresses to servers or network resources like printer, router etc. Dynamic IP Configuration Dynamic configurations are handled by DHCP server which assigns IP address automatically. DHCP service on the network provides all these parameters to a system when it joins the network.
DHCP uses DORA process for IP.
DORA Stand for;
D- Discover
O-Offer
R-Request
A-Acknowledgement
How to Configure IP in Linux
CentOS/Red Hat provides two tools to configure the network device/interface.
- Network Configuration Tool
- Network Manager Tool
Network Configuration Tool This is a command line network configuration tool. This tool is used to configure IP address on terminal. Type below command in terminal and hit enter to invoke tool nmtui —network manager text user interface (you can run this command as root user) see below image;
You will see the dialog box (screenshot below)and select option Edit a connection
Select the interface enp0s3 which is by default interface name and hit enter
You will see the network configuration dialog box if you want to use DHCP then leave value Automatic highlighted in below screenshot; 












Congratulations we have learn how to configure IP in linux bravo
In this tutorial we have learnt step by step how to configure IP address in linux using GUI tool nmtui text based user interface network manager tool
I hope you enjoyed tutorial. See you again in next tutorial. Please let us know if there are any mistakes in tutorial suggestions are always welcome… Thanks


