ping 不到gateway - Linux

Table of Contents

作業系統是Ubuntu 10.04LTS, 目前無法連上區域網路以外的網路,

1> 可以ping到自己的ip
2> 無法ping gateway(61.254)
3> 可以ping 到同一個區域網路的電腦
4> 於同一個區域網路的電腦
a. 可以ping 到無法連外網路的這台電腦
b. 可以ping gateway

嘗試將整個作業系統重灌,仍然維持這個情形,原本懷疑是網路卡,就去買了一個
USB/RJ45的網卡,但症狀依舊。

目前的推測是 網路線沒問題(交叉測試過,且可ping同區網電腦),
網路卡沒問題(換了外接網路卡情況依舊),
gateway 沒問題(同區網的電腦可以ping得到), 應無被鎖卡

目前毫無頭緒,希望大家能給我一些建議。

一些結果如下(eth0是主機板內建網卡,eth1是外接USB網路卡)
1. ifconfig
eth0 Link encap:Ethernet HWaddr 00:1d:7d:aa:d5:d3
inet6 addr: fe80::21d:7dff:feaa:d5d3/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:29022 errors:0 dropped:0 overruns:0 frame:0
TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2799975 (2.7 MB) TX bytes:54370 (54.3 KB)
Interrupt:23 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:60:6e:00:68:8a
inet addr:140.112.61.75 Bcast:140.112.61.255 Mask:255.255.255.0
inet6 addr: fe80::260:6eff:fe00:688a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11510 errors:0 dropped:0 overruns:0 frame:0
TX packets:883 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1201143 (1.2 MB) TX bytes:85432 (85.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:398 errors:0 dropped:0 overruns:0 frame:0
TX packets:398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32767 (32.7 KB) TX bytes:32767 (32.7 KB)


2. route
Destination Gateway Genmask Flags Metric Ref Use Iface
140.112.61.0 * 255.255.255.0 U 1 0 0 eth0
140.112.61.0 * 255.255.255.0 U 1 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth1
default 140.112.61.254 0.0.0.0 UG 0 0 0 eth0

3. cat /proc/ioports
http://140.112.61.84/~yushengc/ioports

4. cat /proc/interrupts
http://140.112.61.84/~yushengc/interrupts

5. dmesg |grep -3 -i eth
http://140.112.61.84/~yushengc/dmesg

6. DNS
8.8.8.8

--

All Comments

Rebecca avatarRebecca2011-02-19
個人淺見...
Quintina avatarQuintina2011-02-20
1. Gateway是設在eth0,可是您IP是用eth1 ?
2. DNS 8.8.8.8 ...好帥@@"
Necoo avatarNecoo2011-02-25
8.8.8.8是google的DNS
Joe avatarJoe2011-03-01
那能用喔?我還真不知道@@"
我接觸這環境果然時間太短= ="
Robert avatarRobert2011-03-02
話說,原po的網路線是接在哪張網卡上?
Ophelia avatarOphelia2011-03-04
THMiao可以看看這個:http://ppt.cc/gkuR
Dinah avatarDinah2011-03-05
對了,原po可以把/etc/network/interfaces貼上來
Skylar DavisLinda avatarSkylar DavisLinda2011-03-08
哦~ thx~~ XD
Adele avatarAdele2011-03-12
原文的測試情況為 網路線接在eth1上
Connor avatarConnor2011-03-15
另附上拿掉外接網路卡,網路接在eth0的結果
route http://140.112.61.84/~yushengc/route_mb
Christine avatarChristine2011-03-24
出乎意料~換上另一個分配給我們的ip就可以連外了!@___@
Enid avatarEnid2011-03-25
有什麼因素會讓連續ip的其中一個ip連不上gateway的嗎?QQ
Hardy avatarHardy2011-03-29
原ip也延用了二年多,突然發生這個情況@@
Zora avatarZora2011-03-30
這樣聽起來就是原本那組IP被封鎖了 問一下管理者吧
Tristan Cohan avatarTristan Cohan2011-04-03
把route table 的140.112.61.0/24 eth0 先拿掉吧
Megan avatarMegan2011-04-05
噗 上面當我沒說 沒看完之後推文XD
Lily avatarLily2011-04-06
會不會是做ip filter 或之類的,把IP綁上卡號,在gateway擋了
Carolina Franco avatarCarolina Franco2011-04-07
怎麼看都是mac被鎖了,問管理區網的人吧