Tuesday, August 11, 2020

How to Fix Internet Connection on Centos 8

When you suddenly can ping www.yahoo.com but can ping its ip address 98.137.11.163. You may have a DNS issue.

Use this sample configuration from my Centos 8 Server.


Thermalite Network configuration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[root@thermalite ~]# cat /etc/sysconfig/network-scripts/ifcfg-enp2s0
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="enp2s0"
UUID="fc6f7668-2012-4473-9037-56296cb3aff7"
DEVICE="enp2s0"
ONBOOT="yes"
IPADDR=192.168.1.100
PREFIX=24
GATEWAY=192.168.1.1
[root@thermalite ~]#


[root@thermalite ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search fios-router.home
nameserver 192.168.1.1 
[root@thermalite ~]#

[root@thermalite ~]# cat /etc/networks
default 0.0.0.0
loopback 127.0.0.0
link-local 169.254.0.0
[root@thermalite ~]#
[root@thermalite ~]# cat /etc/sysconfig/network

# Created by anaconda
#NETWORKING=yes
#NETWORKING_IPV6=no
#HOSTNAME=thermalite.localdomain
[root@thermalite ~]#
 

No comments:

Post a Comment