加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

ubuntu 老是掉线(终极解决方法)

(2010-07-17 20:01:01)
标签:

默认

痛骂

替换

解决

方法

分类: Linux
每3 分钟就掉线,我快疯了,难怪没windows那么红,本来想痛骂linux一顿的,现在想起来好惭愧阿。
sudo gedit /etc/network/interfaces
替换为:
#/etc/network/interfaces
#This file describes the network interfaces available on your ystem
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).

#Theloopbacknetworkinterface
auto lo
iface lo inet loopback

#Thisisalistofhotpluggablenetworkinterfaces.
#Theywillbeactivatedautomaticallybythehotplugsubsystem.
mapping hotplug
script grep
map eth1

#Theprimarynetworkinterface
iface eth1 inet static
address 58.46.49.165 
netmask 255.255.255.255
network 10.0.0.0
broadcast 10.0.0.255
#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalled
dns-nameservers 211.162.32.1211.162.32.20 
   

linux下很多选项都是默认的:解决频繁掉线的方法:
sudo gedit /etc/ppp/options
把默认的lcp-echo-failure 4
改为lcp-echo-failure 40 即可

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有