Looking at the ouput below we can see highlighted with the red underline that the name of
my ethernet adapter is
enp0s3
We have now configured the ethernet adapter to obtain a I.P address via DHCP.
Resolving issues:
Install Network Manager:
So lets begin the first method I will call this way the manual approach as we will be
working directly with configuration files.
Method1: Configure a Static I.P without Network Manager
In the above, "NM_CONTROLLED=no" indicates that this interface will be set up using this
configuration file, instead of being managed by Network Manager service. "ONBOOT=yes"
tells the system to bring up the interface during boot.
Save the file and restart the network:
systemctl restart network.service
Resolving Issues:
If you want to use your own DNS servers:
vim etc/resolv.conf
Add the following ( your DNS Server address):
nameserver 8.8.8.8
This will launch nmtui and will allow us to edit the same information shown in the
/etc/sysconfig/network-scripts/ifcfg-enp0s3
file
Once you have made the required changes restart the network:
systemctl restart
network.service
Check your new ipdetails:
ip addr show