ubuntu 上网问题,2年了

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

ubuntu 上网问题,2年了

#1

帖子 chzgn » 2009-10-07 14:55

各位,大家好。
我太想用ubuntu了,但一个致命的问题是怎么都上不了网,我的电脑的网卡是板载的rtl8139(主板集成网卡),网通宽带上网,无需拨号,也就是固定ip,无论用nm,还是用命令行配置/etc/resolv.conf和/etc/network/interfaces,都无法上网。我ping网关都不通,ping局域网内的电脑也不通,上不了网,ubuntu就是哑巴,谁能帮我撬开ubuntu的嘴巴?
另外,更可笑的是,fedora10及以前的版本,都能上网,但换成fedora11就不能上网了,因为fedora11的上网设置改成了和ubuntu设置的方法,同时很可爱的linuxmint也无法上网,因为也和ubuntu相同设置办法。凡是和ubuntu相同方法设置上网的,我都无法上网,难道有个咒语?请各路大仙来个仙人指路吧!我的电脑可能被恶魔上了金箍咒。网卡好像被ubuntu认成rtl8169,是否与上此有关?
ifconfig eth0 down
ifconfig eth0 up
ifdown eth0
ifup eth0
/etc/init.d/networking restart
均执行了,仍然无法ping 通网关和局域网。
上次由 chzgn 在 2009-10-08 7:18,总共编辑 2 次。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: ubuntu 上网问题,2年了

#2

帖子 hcym » 2009-10-07 14:57

8139不会有问题

查查其他原因喽
头像
ubuntu_fang
帖子: 694
注册时间: 2009-06-05 18:13
联系:

Re: ubuntu 上网问题,2年了

#3

帖子 ubuntu_fang » 2009-10-07 15:01

你先说你能看到你的网卡吗?
==========================
我的博客地址:http://blog.163.com/fanglinyong_81
这里记录了我学习使用ubuntu中遇到的诸多问题,希望整理出来,供网友参考,也希望各位能提出不同的解决方法!

==========================
system:ubuntu9.04
firefox3.5.2
CPU:AMD Sempron(tm) 2500+
DDR:1G

==========================
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

Re: ubuntu 上网问题,2年了

#4

帖子 chzgn » 2009-10-07 15:07

看到了,能看到我的网卡,以下是我的设置和检查情况
******************************
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:16:d3:45:f0:3b
inet addr:192.168.1.210 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe49:c11d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:92 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4944 (4.9 KB) TX bytes:0 (0.0 B)
Interrupt:252 Base address:0xe000

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:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2142 (2.1 KB) TX bytes:2142 (2.1 KB)

pan0 Link encap:Ethernet HWaddr ba:34:ce:29:95:0b
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

************************
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 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0

********************
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 202.102.154.3
nameserver 202.102.152.3

******************************
cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.210
netmask 255.255.255.0
gateway 192.168.1.1

*********************


/etc/init.d/networking restart
* Reconfiguring network interfaces... RTNETLINK answers: No such process
SIOCDELRT: No such process

********************
lspci | grep r

.
.
.
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)

********************
lsmod | grep r
.
.
.
parport 42220 3 lp,ppdev,parport_pc
r8169 40836 0
mii 13312 1 r8169
softcursor 9984 1 bitblit

*******************************
mii-tool

eth0: negotiated 100baseTx-FD flow-control, link ok

********************************
ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.210 icmp_seq=10 Destination Host Unreachable
From 192.168.1.210 icmp_seq=11 Destination Host Unreachable
From 192.168.1.210 icmp_seq=12 Destination Host Unreachable
From 192.168.1.210 icmp_seq=13 Destination Host Unreachable
From 192.168.1.210 icmp_seq=14 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
15 packets transmitted, 0 received, +5 errors, 100% packet loss, time 14095ms
, pipe 3

******************************
ethtool eth0

Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes
**************************
mii-tool -r
restarting autonegotiation...
上次由 chzgn 在 2009-10-08 7:08,总共编辑 3 次。
anxiaonong
帖子: 4
注册时间: 2009-10-05 16:56

Re: ubuntu 上网问题,2年了

#5

帖子 anxiaonong » 2009-10-07 16:48

我装了ubuntu后网络连接显示no network devices have been found.应该是没有看到网卡.请问怎么做才能连上网?
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

Re: ubuntu 上网问题,2年了

#6

帖子 chzgn » 2009-10-08 14:13

再看,这是什么意思?
ping 192.168.1.1
From 192.168.1.210 icmp_seq=9 Destination Host Unreachable
From 192.168.1.210 icmp_seq=10 Destination Host Unreachable
From 192.168.1.210 icmp_seq=11 Destination Host Unreachable
From 192.168.1.210 icmp_seq=12 Destination Host Unreachable
From 192.168.1.210 icmp_seq=13 Destination Host Unreachable
From 192.168.1.210 icmp_seq=14 Destination Host Unreachable
From 192.168.1.210 icmp_seq=15 Destination Host Unreachable
From 192.168.1.210 icmp_seq=16 Destination Host Unreachable
From 192.168.1.210 icmp_seq=17 Destination Host Unreachable
From 192.168.1.210 icmp_seq=18 Destination Host Unreachable
From 192.168.1.210 icmp_seq=19 Destination Host Unreachable
From 192.168.1.210 icmp_seq=20 Destination Host Unreachable
^[[AFrom 192.168.1.210 icmp_seq=22 Destination Host Unreachable
From 192.168.1.210 icmp_seq=23 Destination Host Unreachable
^[[A64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=23897 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=22890 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=21882 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=20874 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=19866 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=18858 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=17850 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=16842 ms
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
ping: sendmsg: No buffer space available
64 bytes from 192.168.1.1: icmp_seq=24 ttl=64 time=60753 ms
64 bytes from 192.168.1.1: icmp_seq=25 ttl=64 time=59754 ms
64 bytes from 192.168.1.1: icmp_seq=26 ttl=64 time=58745 ms
64 bytes from 192.168.1.1: icmp_seq=27 ttl=64 time=57737 ms
64 bytes from 192.168.1.1: icmp_seq=28 ttl=64 time=56729 ms
64 bytes from 192.168.1.1: icmp_seq=29 ttl=64 time=55722 ms
64 bytes from 192.168.1.1: icmp_seq=30 ttl=64 time=54714 ms
64 bytes from 192.168.1.1: icmp_seq=31 ttl=64 time=53705 ms
64 bytes from 192.168.1.1: icmp_seq=32 ttl=64 time=52697 ms
64 bytes from 192.168.1.1: icmp_seq=33 ttl=64 time=51689 ms
64 bytes from 192.168.1.1: icmp_seq=34 ttl=64 time=50682 ms
64 bytes from 192.168.1.1: icmp_seq=35 ttl=64 time=49674 ms
64 bytes from 192.168.1.1: icmp_seq=36 ttl=64 time=48665 ms
64 bytes from 192.168.1.1: icmp_seq=37 ttl=64 time=47657 ms
说明是通的?
ygf
帖子: 458
注册时间: 2006-11-27 12:25

Re: ubuntu 上网问题,2年了

#7

帖子 ygf » 2009-10-08 16:15

问题可能在这里:
/etc/init.d/networking restart
* Reconfiguring network interfaces... RTNETLINK answers: No such process
SIOCDELRT: No such process
看一下这篇文章对你有没有帮助:
http://blog.chinaunix.net/u1/56723/showart_485708.html
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

Re: ubuntu 上网问题,2年了

#8

帖子 chzgn » 2009-10-08 18:32

按ygf师兄的办法试了一下,问题仍然无法解决。
/etc/init.d/networking restart
* Reconfiguring network interfaces... Ignoring unknown interface eth0=eth0.

**************************
ifup eth0
Ignoring unknown interface eth0=eth0.

ifdown eth0
ifdown: interface eth0 not configured
不知以上是怎么回事。
ygf
帖子: 458
注册时间: 2006-11-27 12:25

Re: ubuntu 上网问题,2年了

#9

帖子 ygf » 2009-10-08 20:34

你是不是用了那篇文章的第二个方法,即删除了路由?我觉得你的问题应该不是路由引起的,有没有试一下禁止ipv6这个方法?
google了一下,跟ipv6有关,于是在/etc/modprobe.d/black.list 里加上:
blacklist ipv6
要重启电脑哦。
上次由 ygf 在 2009-10-08 21:34,总共编辑 2 次。
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

Re: ubuntu 上网问题,2年了

#10

帖子 chzgn » 2009-10-08 21:22

我用了第一种办法 ,也就是在/etc/modprobe.d/black.list 里加上:
blacklist ipv6,然后重启动,并且重启网络等,也还是不行。现在就像网卡没有驱动好一样。
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: ubuntu 上网问题,2年了

#11

帖子 wangdu2002 » 2009-10-08 21:27

要不楼主干脆加块二手的8139的独立网卡试试。
某全买的8139网卡,以前两台机器内置网卡工作不稳定,花了6块钱,加了块8139螃蟹卡,一装就通,超级稳定。 :em04
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
ygf
帖子: 458
注册时间: 2006-11-27 12:25

Re: ubuntu 上网问题,2年了

#12

帖子 ygf » 2009-10-08 21:34

如果禁止ipv6的方法仍不可行的话,有一个可能是你的网卡的中断(irq)和另外的什么卡的中断冲突了,如果你的是独立网卡,只要换一个插槽就可以了,但你的不是独立网卡,要在BIOS中重新调整。下面的这个贴子有与你类似的问题,你可以看一下:
http://forums.opensuse.org/archives/sls ... olved.html
上面的贴子中还提到一个方法是调整网卡的MTU值,你也可以试一下,方法应该是修改/etc/network/interfaces文件,在eth0的设置下增加一项mtu size,size是你想更改的MTU值,具体是多少要试了。

如果还不行,我建议你买一块独立网卡装上去(反正不是很贵嘛! :em06 ),用这块独立网卡应该不会有问题了。

其实LINUX的网络功能是很强的,网络是LINUX的主要功能。如果你的电脑连接不上网络,一般是设置或硬件问题,多尝试一下,总是能解决的。
头像
ubuntu_fang
帖子: 694
注册时间: 2009-06-05 18:13
联系:

Re: ubuntu 上网问题,2年了

#13

帖子 ubuntu_fang » 2009-10-09 0:12

在你说你的问题的时候,能否说明一下你的网络连接方式,是宽带直接连接,还是通过路由了,如果通过路由,那么你在设置的时候,可否将NM中的设置画面附个图上来看看呢?
另外ubuntu自带的硬件检测软件也检测不到你的网卡,那么你的内核版本是多少,是否考虑升级到最新的内核看看呢?
希望能尽量内容丰富些!图文并茂!
==========================
我的博客地址:http://blog.163.com/fanglinyong_81
这里记录了我学习使用ubuntu中遇到的诸多问题,希望整理出来,供网友参考,也希望各位能提出不同的解决方法!

==========================
system:ubuntu9.04
firefox3.5.2
CPU:AMD Sempron(tm) 2500+
DDR:1G

==========================
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: ubuntu 上网问题,2年了

#14

帖子 eexpress » 2009-10-09 0:35

网通宽带上网,无需拨号
搜索相关
● 鸣学
chzgn
帖子: 12
注册时间: 2009-09-24 20:20

Re: ubuntu 上网问题,2年了

#15

帖子 chzgn » 2009-10-09 13:47

以上所有的方法我都试过了(除了更换网卡),都无效。在windowsxp下,我上网很好,我是光纤+路由,固定ip上网,按理说,这是最简单的一种上网方式,可是,ubuntu竟然不接纳我的网卡,既然ubuntu不想让我为徒,我将抽时间添加一块网卡试试,或者马上9.10版就要出来了,再装上试,感谢各位的教化。 :em19
上次由 chzgn 在 2009-10-10 11:24,总共编辑 1 次。
回复