最近两天才发现,系统上不了网。不管是我用有线还是无线,手动设置 IP 地址还是自动 DHCP,都访问不了外网。
ping 163.com的时候是不通,但直接 ping 公网的 IP 是通的。应该是 DNS 解析的问题,我有尝试设置不同的 DNS(确定这些 DNS 在其它的机器上都是可以正常解析的)。
下面是 163.com 的 ping:
linux-fe5s:/etc/sysconfig/network # ping 163.com
ping: unknown host 163.com
linux-fe5s:/etc/sysconfig/network # ping 183.61.133.46
PING 183.61.133.46 (183.61.133.46) 56(84) bytes of data.
64 bytes from 183.61.133.46: icmp_seq=1 ttl=54 time=26.0 ms
64 bytes from 183.61.133.46: icmp_seq=2 ttl=54 time=25.2 ms
64 bytes from 183.61.133.46: icmp_seq=3 ttl=54 time=23.8 ms
64 bytes from 183.61.133.46: icmp_seq=4 ttl=54 time=22.7 ms
现有的有线连接:
!](http://image.suse.org.cn/image.php?di=DY30)
网关可以通:
!](http://image.suse.org.cn/image.php?di=ESX8)
其它的配置检查:
linux-fe5s:/etc/sysconfig/network # cat routes
default 192.168.8.1 - eno1
linux-fe5s:/etc/sysconfig/network # cat ifcfg-eno1
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME='RTL8111/8168B PCI Express Gigabit Ethernet controller'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
linux-fe5s:/etc/sysconfig/network # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
linux-fe5s:/etc/sysconfig/network #