[問題] ping 不到gateway

看板Linux作者時間15年前 (2011/02/14 18:12), 編輯推噓3(3021)
留言24則, 6人參與, 最新討論串1/1
作業系統是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 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.61.77

02/14 18:22, , 1F
個人淺見...
02/14 18:22, 1F

02/14 18:24, , 2F
1. Gateway是設在eth0,可是您IP是用eth1 ?
02/14 18:24, 2F

02/14 18:24, , 3F
2. DNS 8.8.8.8 ...好帥@@"
02/14 18:24, 3F

02/14 18:25, , 4F
8.8.8.8是google的DNS
02/14 18:25, 4F

02/14 18:26, , 5F
那能用喔?我還真不知道@@"
02/14 18:26, 5F

02/14 18:26, , 6F
我接觸這環境果然時間太短= ="
02/14 18:26, 6F

02/14 18:27, , 7F
話說,原po的網路線是接在哪張網卡上?
02/14 18:27, 7F

02/14 18:28, , 8F
THMiao可以看看這個:http://ppt.cc/gkuR
02/14 18:28, 8F

02/14 18:29, , 9F
對了,原po可以把/etc/network/interfaces貼上來
02/14 18:29, 9F

02/14 18:29, , 10F
哦~ thx~~ XD
02/14 18:29, 10F

02/14 18:55, , 11F
原文的測試情況為 網路線接在eth1上
02/14 18:55, 11F

02/14 18:56, , 12F
另附上拿掉外接網路卡,網路接在eth0的結果
02/14 18:56, 12F

02/14 18:56, , 13F

02/14 18:57, , 14F
interfaces
02/14 18:57, 14F


02/14 18:58, , 16F

02/14 19:14, , 17F
出乎意料~換上另一個分配給我們的ip就可以連外了!@___@
02/14 19:14, 17F

02/14 19:16, , 18F
有什麼因素會讓連續ip的其中一個ip連不上gateway的嗎?QQ
02/14 19:16, 18F

02/14 19:17, , 19F
原ip也延用了二年多,突然發生這個情況@@
02/14 19:17, 19F

02/14 19:45, , 20F
這樣聽起來就是原本那組IP被封鎖了 問一下管理者吧
02/14 19:45, 20F

02/15 16:51, , 21F
把route table 的140.112.61.0/24 eth0 先拿掉吧
02/15 16:51, 21F

02/15 16:55, , 22F
噗 上面當我沒說 沒看完之後推文XD
02/15 16:55, 22F

02/16 12:08, , 23F
會不會是做ip filter 或之類的,把IP綁上卡號,在gateway擋了
02/16 12:08, 23F

02/16 23:31, , 24F
怎麼看都是mac被鎖了,問管理區網的人吧
02/16 23:31, 24F
文章代碼(AID): #1DMG0Vgw (Linux)
文章代碼(AID): #1DMG0Vgw (Linux)