Setting up static IP addresses for times when DHCP is not available but you still need to make that service reachable
This is for times when you don’t have DHCP or when you need to always ensure the same address. This will provide the IP address, gateway, DNS, and routing that comes along with that setup; you sometimes need to enable the system via static configurations. You will notice that in the following screenshot, it did get a DHCP address but for our purposes, we are going to assume it received the incorrect address that is needed for the application. We will show the current IP address on the server using the following command:
[emcleroy@rhel2 ~]$ ip a | grep enp0s3
The following screenshot shows the IP address information that is currently configured on the server:
Figure 5.1 – IP addressing based on DHCP currently
So, in order to resolve this issue, we are going to set the system up statically using the nmtui
command to gain...