CentOS 6.5インターネットの問題のトラブルシューティング

CentOS 6.5インターネットの問題のトラブルシューティング

CentOS 6.5ルーターのポート転送を介してSSHを使用してアクセスするリモートロケーションで実行されているサーバーがあります。

サーバーがインターネットにアクセスできなくなったことを発見した今日まで、すべてがうまくいきました。

まだリモートSSH経由で接続でき、まだ静的IPアドレス、ゲートウェイなどがありますが、インターネットは利用できません。

別のコンピュータでサーバーイーサネットケーブルを使用すると、インターネット接続に問題はありません

しかし、pingを試みるとすぐにエラーが発生します。

# ping google.com
# ping: unknown host google.com

理由を調べるために提案されたステップがある人はいますか?

**

文書の内容/etc/resolv.conf:

; generated by /sbin/dhclient-script
search DOMAINNAME.LOCAL domainname.local
nameserver 192.168.2.9
nameserver 192.168.2.16

文書の内容/etc/sysconfig/network-scripts/ifcfg-eth1:

DEVICE="eth1"
BOOTPROTO="static"
HWADDR="34:40:B5:89:85:BE"
IPADDR=192.168.2.45
NETMASK=255.255.255.0
GATEWAY=192.168.2.254
DNS1=192.168.2.9
DNS2=192.168.2.16
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="bde2561c-9882-4e50-9e3a-22e44f6a5005"

結果nslookup google.com 192.168.2.9

;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

結果nslookup google.com 192.168.2.16

;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

結果nslookup google.com 8.8.8.8

;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

結果nslookup google.com 8.8.4.4

;; connection timed out; trying next origin
;; connection timed out; trying next origin
;; connection timed out; no servers could be reached

結果netstat -rn

197.81.19.48    0.0.0.0         255.255.255.248 U         0 0          0 eth0
10.254.254.0    0.0.0.0         255.255.255.0   U         0 0          0 as0t0
192.168.2.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.95.0    0.0.0.0         255.255.255.0   U         0 0          0 usb0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.2.254   0.0.0.0         UG        0 0          0 eth1

ベストアンサー1

サーバー上のホストルーティングテーブルはどのように見えますか?

netstat -rn

ローカルホストベースのルーティングの問題があるようです。 SSHへのポート転送はサーバーにローカルに接続されているため、引き続き機能します。

おすすめ記事