LinuxSir.cn,穿越时空的Linuxsir!

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

关于网络配置和neat的一个问题

[复制链接]
发表于 2004-3-10 12:12:13 | 显示全部楼层 |阅读模式
小弟在阅读教材的时候,有一段文字没有明白,原文如下:
Note that using neat or redhat-config-network creates an alternate file hierarchy under /etc/sysconfig/networking. Modifying an interface with these tools will update two configration files: on in /etc/sysconfig/netwrok-scripts and another in /etc/sysconfig/networking/profiles/<profile>. Both files will have the same name(e.g. ifcfg-th0).

小弟就跑到那个目录下找文件,可是没有找到。在我的机器上的/etc/sysconfig/networking/目录下,有如下内容:
devices(目录) ifcfg-lo0(文件) profiles(目录)
进入profiles目录后,只有一个目录defualt,然后进到这个目录后,什么都没有。并不是向原文中说得那样,有和/etc/sysconfig/network-scripts/下面的ifcfg-eth0之类的对应的文件。

哪位朋友可否说一下,是否课文中的这段话也不是绝对的,如果不安装neat之类的冬冬的时候,也不必考虑这个情况?

多谢啦,小弟现在这里谢谢大家!
发表于 2004-3-10 12:57:56 | 显示全部楼层
[lsg@student sysconfig]$ ls -l /etc/sysconfig/network-scripts/
total 176
-rw-r--r--    1 root     root          106 Feb 25 21:15 ifcfg-eth0
lrwxrwxrwx    1 root     root           22 Oct 16 18:18 ifcfg-lo -> ../networking/ifcfg-lo
lrwxrwxrwx    1 root     root           20 Oct 16 18:18 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x    1 root     root         1026 Jan 24  2001 ifdown-aliases


[lsg@student network-scripts]$ cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.40.40
NETMASK=255.255.255.0
GATEWAY=192.168.40.254
[lsg@student network-scripts]$
 楼主| 发表于 2004-3-10 14:16:20 | 显示全部楼层

没看懂

主要是我没有找到按照书上说的/etc/sysconfig/networking/profile/...
下面的ifcfg-eth0之类的配置,所以比较困惑。

你的回帖我没看懂。但是谢谢你的回复!
发表于 2004-3-10 15:55:41 | 显示全部楼层
你的路径错了。
[lsg@student lsg]$ ls /etc/sysconfig/ -l
total 164
-rw-r--r--    1 root     root         4818 Feb 25  2003 apmd
-rw-r--r--    1 root     root           66 Feb 23 19:23 network
drwxr-xr-x    4 root     root         4096 Oct 16 18:18 networking
drwxr-xr-x    2 root     root         4096 Feb 25 21:15 network-scripts
-rw-r--r--    1 root     root           85 Feb 14  2003 ntpd
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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