Network Configuration
Try the following steps to reset the server’s internet connection:
Before Starting….
To see which file is connected to the internet, use the next command:
nmcli d
Step #1
Connect to the wifi and check the GATEWAY IP (basically the router’s IP).
You could also check this information by accessing the router directly:
Step #2
You will need to change the configurations of the network directly from a network settings-oriented file usually called “ifcfg-eth0”, “ens33”, or “eno1”. In the case of this server, it is “enp89s0”. These files will usually be located at /etc/sysconfig/network-scripts/. The command to access this server’s network settings is:
vi /etc/sysconfig/network-scripts/{your_internet_file}
Below, you can see what it usually looks like:
Step #3
After editing the file, you must restart the network with the command next:
sudo systemctl restart network
Right after restarting, do the next two checking measures. If the packages or the gateways are well set, the internet connection will be all setup.
ping 8.8.8.8
route -n