我正在尝试使用公共静态IP地址设置centOS服务器但是如果我尝试ping路由器(192.168.1.1)我得到“网络无法访问”,如果我尝试ping google.com我得到“未知主机谷歌.COM”
这是来自ifconfig的转储
eth0 Link encap:Ethernet HWaddr D4:9A:20:F8:9D:F8
inet addr:200.37.213.113 Bcast:200.37.213.113 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1178 errors:0 dropped:0 overruns:0 frame:0
TX packets:1014 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:292875 (286.0 KiB) TX bytes:40593 (39.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:249 errors:0 dropped:0 overruns:0 frame:0
TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20076 (19.6 KiB) TX bytes:20076 (19.6 KiB)
从路线转储:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
200.37.213.112 * 255.255.255.248 U 0 0 0 eth0
link-local * 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 200.37.213.118 0.0.0.0 UG 0 0 0 eth0
从/ etc / hosts转储
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
200.37.213.113 server.mypersonaldomain.com server
从/etc/resolve.conf转储
nameserver 8.8.8.8
nameserver 8.8.4.4
从/ etc / sysconfig / network转储
NETWORKING=yes
HOSTNAME=server.mypersonaldomain.com
GATEWAY=200.37.213.118
从/ etc / sysconfig / network-scripts / ifcfg-eth0转储
DEVICE="eth0"
BOOTPROTO="none"
IPADDR:="200.37.213.113"
NETMASK="255.255.255.248"
GATEWAY="200.37.213.118"
ONBOOT="yes"
TYPE="Ethernet"
我在这里出错的任何想法?
更新 - 我能够ping 200.37.213.113并收到响应,但不是200.37.213.118或任何其他域/ IP
更新 - 仍然遇到麻烦,其他人有什么想法吗?