|
|
发表于 2008-12-27 10:03:12
|
显示全部楼层
Post by YaoM;1929807
执行/etc/init.d/net.eth0 start 失败,提示信息如上
几个相关文件:
- /etc/hosts:
- # /etc/hosts: Local Host Database
- #
- 127.0.0.1 localhost.localdomain localhost supertux
- ::1 localhost
复制代码
- /etc/conf.d/hostname:
- # /etc/conf.d/hostname
- # Set to the hostname of this machine
- HOSTNAME="supertux"
复制代码
- /etc/conf.d/net:
- # 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 :]!).
- config_eth0=( "xxx.xxx.xxx.xxx mask 255.255.255.0 brd xxx.xxx.xxx255" )
- routes_eth0=( "default via xxx.xxx.xxx.1" )
- dns_servers_eth0="10.10.0.21"
- dns_domain_eth0="localdomain"
复制代码
文档看了好几次,照着改了好几个地方,无奈一直没解决,所以请各位帮帮忙:)
我们学校的网络是静态IP的,同时教室、图书馆提供无线网络(dhcp)。
无线网络我试过,是可以连接的;本地的网络不知哪里配置的不对,
执行/etc/init.d/net.eth0 start ,老是提示: mask: Host name lookup failure
各位大侠走过路过不要绕过呀
晕倒,这里面好几个地方错都没有看到。
config_eth0=( "xxx.xxx.xxx.xxx mask 255.255.255.0 brd xxx.xxx.xxx255" )
改为:
config_eth0=( "xxx.xxx.xxx.xxx netmask 255.255.255.0 brd xxx.xxx.xxx.255" )
再试试吧! |
|