LinuxSir.cn,穿越时空的Linuxsir!

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

ifconfig's problem(已解)

[复制链接]
发表于 2006-2-23 20:17:29 | 显示全部楼层 |阅读模式
I use ifconfig to configured my ip address
then I use route to add the gateway
and the network get work
But after I reboot my computer , all the information are lost
I have to reconfigure the ip address and gateway.
Why?
发表于 2006-2-23 20:33:13 | 显示全部楼层
因为这个是要每次启动都设置的东西。参考Gentoo 的手册,看看如何设置网卡的。
回复 支持 反对

使用道具 举报

发表于 2006-2-23 21:02:41 | 显示全部楼层
没有rc-update add net.eth0 default吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-25 08:24:35 | 显示全部楼层
我还是没有搞定,搞定了ip地址,没有搞定网关
我把net.eth0加到runlevel default了
我的/etc/conf.d/net配置文件是这样的
config_eth0=("192.168.1.20 netmask 255.255.255.0")
route_eth0=("default via 192.168.1.1")

route这一行我原来是写成route_eth0=("default gw 192.168.1.1")的
不行
我看了net.sample后,就改成via,还是不行
郁闷
回复 支持 反对

使用道具 举报

发表于 2006-2-25 08:44:28 | 显示全部楼层
routes_eth0=("default gw 192.168.1.1")
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-25 09:58:57 | 显示全部楼层
倒,我太粗心了,谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

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