LinuxSir.cn,穿越时空的Linuxsir!

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

求教:刚装的Gentoo上不了网

[复制链接]
发表于 2007-3-3 16:28:13 | 显示全部楼层 |阅读模式
/etc/conf.d/net内容:

routes_eth0=" ("defautt via 192.168.72.254") "
iface_eth0="192.168.72.26 broadcast 192.168.72.255 netmask 255.255.255.0"

/etc/resolv.conf内容
nameserver:202.102.24.34

用ifconfig命令会显示
inet addr : 192.168.72.255等。

不可以上网。

后来按照handbook上面做了如下操作:
# cd /etc/init.d
# ln -s net.lo net.eth0
修改/etc/conf.d/net
config_eth0=( "192.168.72.26 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.72.254" )

/etc/init.d/net.eth0 start还是会出错。

You are using a depreciated configuration syntax for eth0等等。

求教。
 楼主| 发表于 2007-3-3 16:29:04 | 显示全部楼层
用liveCD的图形界面方式networkless安装的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-3 16:56:54 | 显示全部楼层
一个解图如下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2007-3-3 18:39:53 | 显示全部楼层
config_eth0=( "192.168.72.26/24" )
回复 支持 反对

使用道具 举报

发表于 2007-3-3 21:34:18 | 显示全部楼层
config_eth0=( "192.168.72.26 netmask 255.255.255.0" )
config_eth0=( "192.168.72.26/24" )
这两条是等价的

config_eth0=( "192.168.72.26 netmask 255.255.255.0 brd 192.168.72.255" )

你的网关是192.168.72.254 ?

改好后要执行rc-update add net.eth0 default
还要加载网卡模块
回复 支持 反对

使用道具 举报

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

本版积分规则

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