防止上网掉线:参数如何设置?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

防止上网掉线:参数如何设置?

#1

帖子 罗非鱼 » 2008-11-11 9:26

为防止ubuntu掉线,根据官方的提法:

在终端内

sudogedit/etc/network/interfaces

复制下面内容完全复盖即可

#/etc/network/interfaces
#Thisfiledescribesthenetworkinterfacesavailableonyoursystem
#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).

#Theloopbacknetworkinterface
autolo
ifaceloinetloopback

#Thisisalistofhotpluggablenetworkinterfaces.
#Theywillbeactivatedautomaticallybythehotplugsubsystem.
mappinghotplug
scriptgrep
mapeth1

#Theprimarynetworkinterface
ifaceeth1inetstatic
address10.0.0.139
netmask255.255.255.0
network10.0.0.0
broadcast10.0.0.255
#dns-*optionsareimplementedbytheresolvconfpackage,ifinstalled
dns-nameservers211.162.32.1211.162.32.20

dns-nameservers是你的dns服务器地址,如果有路由器的同志可以打开路由器设置看看,把路由器上的默认dns服务器贴上。

我将windao下使用ipconfig /all 的结果,address,netmask,dns填好,还有两个不知道如何处理:
1、network还是使用10.0.0.0?这个值也适合我的网络环境?这里的network是什么含义?
2、broadcast还是使用10.0.0.255?这个值也适合我的网络环境?这里的broadcast是什么含义?
头像
32idea
帖子: 1251
注册时间: 2006-12-15 9:32
系统: linux

Re: 防止上网掉线:参数如何设置?

#2

帖子 32idea » 2008-11-11 9:46

network应该是你的网关吧?不确定,
broadcast应该是广播地址
罗非鱼
帖子: 980
注册时间: 2008-04-12 12:44

Re: 防止上网掉线:参数如何设置?

#3

帖子 罗非鱼 » 2008-11-11 19:10

我如何知道广播地址?
回复