LinuxSir.cn,穿越时空的Linuxsir!

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

求助:怎么配置网络?

[复制链接]
发表于 2006-1-10 11:10:44 | 显示全部楼层 |阅读模式
我大菜,刚装Debian一个很小的系统,想去网上装点东西,不知道怎么配置网络,设置升级服务器
souces 和 resolv.conf  都是空的文件  请大侠帮下写写相关文件  我是教育网的  10M
发表于 2006-1-10 11:15:52 | 显示全部楼层
resolv.conf配置dns:nameserver IP address
如有多个dns,可写多行.

sources.list可以看 Debian 安装资源  http://www.linuxsir.cn/bbs/showthread.php?t=218212

再不明白,man resolv.conf  man sources.list
回复 支持 反对

使用道具 举报

发表于 2006-1-10 11:18:49 | 显示全部楼层
我也是用教育网。我的/etc/apt/source.lst是这样的:
  1. deb http://security.debian.org/ sarge/updates main contrib non-free
  2. deb http://security.debian.org/debian sarge main non-free contrib
  3. deb http://security.debian.org/debian-non-US sarge/non-US main non-free contrib
  4. deb http://security.debian.org/debian-uo sid marillat rareware misc ustc firefly jrfonseca java
  5. deb ftp://debian.ustc.edu.cn/debian stable main non-free contrib
  6. deb ftp://debian.ustc.edu.cn/debian proposed-updates main contrib non-free
  7. deb ftp://debian.ustc.edu.cn/debian-security stable/updates main
  8. deb ftp://debian.ustc.edu.cn/debian-uo sid marillat rareware ustc java misc jrfonseca
  9. deb-src ftp://debian.ustc.edu.cn/debian proposed-updates main contrib non-free
  10. deb-src ftp://debian.ustc.edu.cn/debian stable main non-free contrib
  11. deb ftp://ftp.tsinghua.edu.cn/mirror/debian/debian unstable contrib main non-free
  12. deb http://mirror.dlut.edu.cn/debian unstable main contrib non-free
  13. deb http://mirror.dlut.edu.cn/debian-non-US unstable/non-US main contrib non-free
  14. deb http://mirror.dlut.edu.cn/debian-security stable/updates main
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-10 12:01:55 | 显示全部楼层
我的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

# The primary network interface
# auto eth1
# iface eth1 inet dhcp

auto eth0
iface eth0 inet static
address 211.87.206.253
netmask 255.255.255.128
network 211.87.206.0
broadcast 211.87.206.255
gateway 211.87.206.254
回复 支持 反对

使用道具 举报

发表于 2006-1-10 12:23:31 | 显示全部楼层
netmask 255.255.255.128
-->netmask 255.255.255.0
试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-10 21:32:16 | 显示全部楼层
netmask 255.255.255.128
-->netmask 255.255.255.0
试试
这个不会错  网管给的  .
network 211.87.206.0
broadcast 211.87.206.255
我胡添的   没有
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-10 21:32:19 | 显示全部楼层
netmask 255.255.255.128
-->netmask 255.255.255.0
试试
这个不会错  网管给的  .
network 211.87.206.0
broadcast 211.87.206.255
我胡添的   没有
回复 支持 反对

使用道具 举报

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

本版积分规则

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