LinuxSir.cn,穿越时空的Linuxsir!

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

lfs 6.3 成功安装,但是无网络命令 ifconfig netstat 。。。

[复制链接]
发表于 2009-7-14 18:15:39 | 显示全部楼层 |阅读模式
按照  lfs  官方手册和 金步国翻译的6.2  还有本论坛一些lfs 文章 成功的安装了 lfslivecd-6.3-r2160   ,但是没有网络命令,但是能ping通 。无ifconfig  netstat 这些命令,请大侠指定一下是哪里错了。还有我想在LFS下mount iso ,提示“special device /dev/cdrom does not exist" .怎么样添加/dev/cdrom   ?
发表于 2009-7-14 19:48:05 | 显示全部楼层
本就没有。我如果没记错的话。
回复 支持 反对

使用道具 举报

发表于 2009-7-14 20:50:17 | 显示全部楼层
用 ip 命令代替

ifconfig 需要安装 net-tools
回复 支持 反对

使用道具 举报

发表于 2009-7-14 21:41:03 | 显示全部楼层
lfs 官方手册 是有 ifconfig 的 ,只是 你 在 lfs 過程中禁止編譯了

http://www.linuxfromscratch.org/lfs/view/6.3/chapter06/inetutils.html

在 6.40. Inetutils-1.5  中

./configure --prefix=/usr --libexecdir=/usr/sbin \
    --sysconfdir=/etc --localstatedir=/var \
    [color="Red"]--disable-ifconfig --disable-logger --disable-syslogd \
    --disable-whois --disable-servers


--disable-ifconfig

    This option prevents Inetutils from installing the ifconfig, which can be used to configure network interfaces. LFS uses ip from IPRoute2 to perform this task.

ifconfig 在 Inetutils 和 net-tools  都有 ,不過 net-tools 的強大一些 ,在 Inetutils 時去掉 --disable-ifconfig 就可以在 lfs 中未裝 net-tools時 有 ifconfig
回复 支持 反对

使用道具 举报

发表于 2009-7-21 21:50:49 | 显示全部楼层
inetutils 所含的 ifconfig 不轮不类,如果不惯用 ip,那还是装 net-tools 来给出 ifconfig 吧
回复 支持 反对

使用道具 举报

发表于 2009-7-23 09:36:56 | 显示全部楼层
装个net-tools吧,ip巨难用。
回复 支持 反对

使用道具 举报

发表于 2009-7-23 09:59:10 | 显示全部楼层
我也是支持用net-tools
回复 支持 反对

使用道具 举报

发表于 2010-3-8 11:11:19 | 显示全部楼层
mount /dev/hdc  /mnt/cdrom   就可以挂载光驱了
回复 支持 反对

使用道具 举报

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

本版积分规则

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