我们的RedHat服务器网络配置遍布地图.在安装RH4和RH5的一组服务器中,有时我们在/ etc / sysconfig / networking / devices中管理网络信息,有时在/ etc / sysconfig / networking / profiles / default中,有时在/ etc / sysconfig / network-scripts中.
我知道当“配置文件”发挥作用时,redhat-config-network应用程序(也就是CentOS和其他分支的system-config-network)在使用时会将文件写入其中,否则我认为默认设置最初是在网络中设置的/设备.
假设配置文件位于所有这三个密钥目录中,它们的评估顺序是使用它们,它们是在原子目录级别,还是为每个单独的文件执行了命令?
这意味着,如果我在最高排序目录中有ifcfg-eth1,而没有其他内容,并且在第二个目录中有ifcfg-eth0,则会考虑eth0配置,或者是否会跳过它并且eth1是唯一配置的设备?
解决方法
Assuming configuration files resided
in all three of these key directories,
in which order are they evaluated for
use,and are they on an atomic
directory level,or does order take
place for every individual file?
/ etc / sysconfig / network-scripts /是唯一使用的目录.证明是开始阅读/etc/rc.d/init.d/network.忽略/ etc / sysconfig / networking /.
如果您对配置文件系统的实现方式感到好奇,请参阅/usr/share/system-config-network/netconfpkg/NC_functions.py中的updateNetworkScripts函数.
基本上它会在/ etc / sysconfig / network-scripts /,/ etc / sysconfig / networking / devices /和/ etc / sysconfig / networking / profiles / *中生成ifcfg- *文件的硬链接.
例如,鉴于你在foo中
> / etc / sysconfig / network-scripts / ifcg-eth0
> / etc / sysconfig / networking / devices / ifcg-eth0
> / etc / sysconfig / networking / profiles / foo / ifcg-eth0
都是同一个文件.
附:我是RHCE所以我说的一定是正确的.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。