设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 发行版讨论区 —— LinuxSir.cn
›
Gentoo Linux
›
ifconfig's problem(已解)
返回列表
查看:
696
|
回复:
5
ifconfig's problem(已解)
[复制链接]
craig_wu
craig_wu
当前离线
积分
20
IP卡
狗仔卡
发表于 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?
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
晨想
晨想
当前离线
积分
9643
IP卡
狗仔卡
发表于 2006-2-23 20:33:13
|
显示全部楼层
因为这个是要每次启动都设置的东西。参考Gentoo 的手册,看看如何设置网卡的。
回复
支持
反对
使用道具
举报
显身卡
kohno
kohno
当前离线
积分
1160
IP卡
狗仔卡
发表于 2006-2-23 21:02:41
|
显示全部楼层
没有rc-update add net.eth0 default吧。
回复
支持
反对
使用道具
举报
显身卡
craig_wu
craig_wu
当前离线
积分
20
IP卡
狗仔卡
楼主
|
发表于 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,还是不行
郁闷
回复
支持
反对
使用道具
举报
显身卡
HotGinger
HotGinger
当前离线
积分
53
IP卡
狗仔卡
发表于 2006-2-25 08:44:28
|
显示全部楼层
route
s
_eth0=("default gw 192.168.1.1")
回复
支持
反对
使用道具
举报
显身卡
craig_wu
craig_wu
当前离线
积分
20
IP卡
狗仔卡
楼主
|
发表于 2006-2-25 09:58:57
|
显示全部楼层
倒,我太粗心了,谢谢
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
开源软件专题讨论
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表