網路連不出去問題 (兩張網卡) - Linux

Tracy avatar
By Tracy
at 2011-05-06T11:16

Table of Contents

我的系統是 Linux, eth0是內網, eth1是外網.
我用 ping的方式, dns server, 目的ip都是通的
[root@localhost ~]# ping 168.95.192.1
PING 168.95.192.1 (168.95.192.1) 56(84) bytes of data.
64 bytes from 168.95.192.1: icmp_seq=1 ttl=248 time=37.7 ms
64 bytes from 168.95.192.1: icmp_seq=2 ttl=248 time=37.4 ms

[root@localhost ~]# ping 64.233.183.104 (www.google.com.tw)
PING 64.233.183.104 (64.233.183.104) 56(84) bytes of data.
64 bytes from 64.233.183.104: icmp_seq=1 ttl=53 time=39.8 ms
64 bytes from 64.233.183.104: icmp_seq=2 ttl=53 time=39.5 ms

不過我直接ping www.google.com.tw就是沒有反應.....
我想應該是轉譯的問題...
但是系統的設定看似乎都是對的, routing table也沒什麼問題...
哪位大大幫忙診斷一下~~XD

[root@localhost ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
nameserver 168.95.1.1
nameserver 168.95.92.1


[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1


eth0 Link encap:Ethernet HWaddr BC:AE:C5:4E:96:71
inet addr:192.168.26.1 Bcast:192.168.255.255 Mask:255.255.0.0

eth1(外網) Link encap:Ethernet HWaddr BC:AE:C5:4E:96:8A
inet addr:192.168.1.112 Bcast:192.168.1.255 Mask:255.255.255.0

--
Tags: Linux

All Comments

Olivia avatar
By Olivia
at 2011-05-07T18:03
「nslookup www.google.com.tw」的結果貼上來?
Steve avatar
By Steve
at 2011-05-10T13:39
換DNS看看,我比較喜歡用8.8.8.8
Agatha avatar
By Agatha
at 2011-05-15T13:20
我猜防火牆把 UDP 53 的封包擋掉了。
Leila avatar
By Leila
at 2011-05-17T03:39
8888用了也是依樣,所以應該不是nameserver的問題
Connor avatar
By Connor
at 2011-05-20T09:18
咦?! 192.168.0.0 的 mask 是 155.155.0.0 似乎跟 .1.0
的網段有部份重疊了。
Leila avatar
By Leila
at 2011-05-21T16:38
更正! 是 255.255.0.0
Frederica avatar
By Frederica
at 2011-05-25T03:14
重疊有辦法設定優先序嗎?
Valerie avatar
By Valerie
at 2011-05-27T14:08
我開始也以為是網段重疊問題,但是ping nameserver又可以

embedded linux系統的幾個問題(apt,v4l,安裝軟體)

Una avatar
By Una
at 2011-05-05T23:35
我是LINUX的新手。 剛好有機會拿到一塊小板子。 就動手把它裝上LINUX。 我想在上面掛上WEBCAM來用。 我裝的是Angstrom的demo file http://www.angstrom-distribution.org/demo/beagleboard/ 是2.6.32的Kernel (unam ...

ubuntu11.04開機後黑屏

Harry avatar
By Harry
at 2011-05-05T21:28
如題, 我是灌在acer aspire 4810TG上的, 開機後就進入黑屏, 而且按alt+ctrl+f2也不能進入指令介面。 之前都可以, 現在突然就不行了, 多開幾次好像偶爾會成功。 另外我沒裝ubuntu額外驅動程式裡的ATI...顯示卡驅動程式。 謝謝答覆~ - ...

利用shell script 對數個文字檔做合併

Elma avatar
By Elma
at 2011-05-05T18:00
初學shell script不久, 想請教一個問題 假設我現在有a, b, c 3個(或更多)的文字檔 格式如下: a1 a2 a3 ... 即是說每個文字檔每行都是單一字串, 無空白 且每個檔案的行數都相同 現在我想將這些文字檔合併成一個檔案, 格式如下 a1 b1 c1 a2 b2 c2 .. ...

ubuntu 11.04 pcmanx gcin打中文

Una avatar
By Una
at 2011-05-05T16:17
在ubuntu 11.04的pcmanx裏面 打中文的時候 會看不到自己打什麼 要按了ENTER之後才會出現 還有一樣在pcmanx裏面 沒辦法用單鍵切換中英(就是類似微軟新注音的shift) 這些問題在GOOGLE CHROME和FIREFOX都沒問題 不知道有沒有解決的方法?? - ...

PPstream on Ubuntu

Dora avatar
By Dora
at 2011-05-05T14:18
請問一下 我在ppstream官網抓了ubuntu版本的ppstream 安裝有成功了 可是播放的時候一直出現正在連接伺服器 請問一下有人有發生過相同的問題嘛 - ...