QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1101|回复: 1

gentoo2005.1 ip怎么都设不好

[复制链接]
发表于 2006-2-24 21:05:52 | 显示全部楼层 |阅读模式
/etc/conf.d/net内容:
[code:1]
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
## in /etc/conf.d/net (this file :]!).
#modules=( "ifconfig" )
modules=( "iproute2" )
#iface_eth0="192.168.2.199 broadcast 192.168.2.255 netmask #255.255.255.0"
#gateway="eth0/192.168.2.1"
#config_eth0=("192.168.2.199/24 brd 192.168.2.255")
#config_eth0=("192.168.2.199 broadcast 192.168.2.255 netmask #255.255.255.0")
#config_eth0=( "192.168.2.199 netmask 255.255.255.0" )
config_eth0=( "192.168.2.199/24" )
routes_eth0=( "default via 192.168.2.1" )
[/code:1]

提示错误:
[code:1]
* Caching service dependencies ...                                       [ ok ]
* Starting lo
*   Bringing up lo
*     "127.0.0.1/8
*     No loaded modules provide ""127.0.0.1/8" ("127.0.0.1/8_start)
*     brd
*     No loaded modules provide "brd" (brd_start)
*     127.255.255.255"                                                   [ !! ]
* Starting eth0
*   Bringing up eth0
*     "192.168.2.199/24"
*     No loaded modules provide ""192.168.2.199/24"" ("192.168.2.199/24  [ !! ]
[/code:1]
打#号的都试过了
还是出错 我可是按文档及net.example的说明设置的
也不知道漏了哪一步
发表于 2006-2-24 23:48:59 | 显示全部楼层
给你参考。
config_eth0=( "192.168.0.89 netmask 255.255.255.0 brd 192.168.0.255" )
routes_eth0=( "default gw 192.168.0.1" )
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-7-3 13:04 , Processed in 0.331960 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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