LinuxSir.cn,穿越时空的Linuxsir!

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

Debian新手求助:基本系统装上了,网络地址怎么填?X进不去

[复制链接]
发表于 2003-11-16 18:02:36 | 显示全部楼层 |阅读模式
好象要填四个地址,一个IP,一个掩码,一个网关,一个网段号吧,还有一个什么的,记不太清了

俺的机器的IP为10.1.1.10,网关10.1.1.1,子网掩码255.0.0.0

其它的,网络号填的是10.0.0.0,默认的没改
还有一个是什么记不太清了,也是默认的,没填

弄完后,挂载第一张ISO安装了一些,但后来在线装不成功,绐络连不上。

用的是这个sourece.list:
#For switching the apt source to this mirror, modify he /etc/apt/source.list as the following

##############################################
deb http://debian.cn99.com/debian woody main contrib non-free
deb http://debian.cn99.com/debian-non-US woody/non-US main contrib non-free
deb http://debian.cn99.com/debian-security woody/updates main contrib non-free
deb-src http://debian.cn99.com/debian woody main contrib non-free
deb-src http://debian.cn99.com/debian-non-US woody/non-US main contrib non-free

另外还有一个问题是,安装后X界面进不去,startx老是黑一会儿就跳出来,说是我的X配置有问题。是真的配置有问题,还是安装第一张盘的东西,但没有把X需要的包全装上呢?
发表于 2003-11-21 14:41:50 | 显示全部楼层
编辑
/etc/network/interfaces文件:

auto eth0
iface eth0 inet static
address 10.1.1.10
network 10.1.1.0
netmask 255.0.0.0
gateway 10.1.1.1
发表于 2003-11-21 14:48:43 | 显示全部楼层

最好不用安装盘装

debian stable版光盘的kernel和自带软件的版本都太低了。
发表于 2003-11-21 15:29:15 | 显示全部楼层
写个sh.保存为ifconfig.sh
ifconfig eth0 address 10.0.1.10 netmask 255.0.0.0
route add -net 0 gw 10.1.1.1
写运行update-rc.d ifconfig.sh start 90 1 2 3 . stop 63 0 6
注意3后面有个小点.
发表于 2005-9-22 22:21:58 | 显示全部楼层
初次配置网络用什么命令?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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