LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1362|回复: 0

ubuntu用adsl上网防止掉线的设计

[复制链接]
发表于 2008-11-11 09:54:56 | 显示全部楼层 |阅读模式
为防止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是什么含义?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表