新人求助:如何解决adsl联网经常掉线的问题?

上网、浏览、聊天、下载等
回复
jadebell
帖子: 13
注册时间: 2005-08-24 2:08

新人求助:如何解决adsl联网经常掉线的问题?

#1

帖子 jadebell » 2005-08-27 22:33

我是新人,这几天刚装上ubuntu,按照介绍的设置好了pppoeconf,然后pon是可以正常联网的,可是过段时间,特别是在下载的时候进度会停掉,这时我才注意到网络断了,ping不通几个门户网站。而且这种情况经常会发生,所以每次都是先poff -a,再pon,如此反复实在麻烦。
请教各位DX,有什么解决办法吗?难道pppoe在ubuntu上就是这样的不稳定?请各位帮忙解答,谢谢拉!!!
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#2

帖子 yongyi » 2005-08-27 22:52

viewtopic.php?t=264&start=15
这是相关讨论,最后解决方法请看第三页
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
yongyi
帖子: 3025
注册时间: 2005-05-07 23:57
联系:

#3

帖子 yongyi » 2005-08-27 22:54

[quote=welans]
非常感谢!看来我的问题和你一样。
把我的解决过程贴出来,或许对其他人有用:

1、在pppoeconf设置时选择不更改/etc/resolv.conf 。(不过按理说这个比较没关系,resolv.conf可以自己更改)。
2、重要的是修改/etc/network/interfaces文件。我默认的是对连接到adsl modem的网卡eth1进行dhcp分配ip,很可能是dhcp修改了/etc/resolv.conf的namesever信息,所以我把网卡eth1设成静态ip。

代码: 全选

# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1

# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.111.138.55 202.111.98.55 
3、确保/etc/resolv.conf中的dns设置正确:

代码: 全选

# /etc/resolv.conf
nameserver 202.111.113.55
nameserver 202.111.98.55
 
[/quote]
引自:http://www.linuxsir.org/bbs/showthread.php?t=215888
独自看一看大海
总想起身边走在路上的朋友
Lenovo E290-420[Celeron-M420/256M/60G/Intel GMA950]
jadebell
帖子: 13
注册时间: 2005-08-24 2:08

#4

帖子 jadebell » 2005-08-28 11:36

谢谢啦,先设置起来 :D
jadebell
帖子: 13
注册时间: 2005-08-24 2:08

#5

帖子 jadebell » 2005-08-28 16:09

本地IP设为192.168.1.10,ADSL的IP为192.168.1.1。
设置都是在“系统”->“系统管理”->“联网”的“网络设置”界面设置的,删除了搜索域“ETNA”,手动加上两个DNS。
然后配置pppoeconf,不自动更新/etc/resolv.conf,不开机连接,其他都是默认。
两个文件如下:
#/etc/resolv.conf如下

代码: 全选

nameserver 202.96.209.6
nameserver 202.96.209.133
#/etc/network/interfaces如下

代码: 全选

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
auto eth0



这样配置应该没问题吧?
robinl980
帖子: 28
注册时间: 2005-10-16 12:42

#6

帖子 robinl980 » 2005-10-18 14:35

我在公司装了一台UBUNTU,结果搞的现在老掉线重拨,关了它也不行.估计上面介绍的有用
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#7

帖子 oneleaf » 2005-10-18 15:43

robinl980 写了:我在公司装了一台UBUNTU,结果搞的现在老掉线重拨,关了它也不行.估计上面介绍的有用
将你连接ADSL的网卡设置一个静态IP,就好了。
robinl980
帖子: 28
注册时间: 2005-10-16 12:42

#8

帖子 robinl980 » 2005-10-19 16:04

thx, wo zhe tai dian nao an zhuang de shi hou jiu she zhi le ip 192.168.1.xx, gong si LAN dou shi wo she zhi de, wo xian zai shan chu le ip6, zai deng deng kan .
dfrg_msc
帖子: 7
注册时间: 2007-07-31 16:04
来自: 江苏无锡
联系:

#9

帖子 dfrg_msc » 2007-08-03 13:17

恩,好帖,顶一个。
回复