/etc/sysconf/network-scripts/ifcfg-eth0的手册到底在哪里

虽然有个NetworkManager,但是network.service的清晰简洁依然让人无法拒绝。

不过它的配置手册和manuel藏得比较隐晦,在这里:

/usr/share/doc/initscripts-9.49.39/sysconfig.txt

我是怎么找到它的:

用service找到了它的rpm,又看了一下rpm里都有啥。

[root@A04-R08-I199-99-3GHCDB2 network-scripts]# systemctl status network |grep loaded
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
[root@A04-R08-I199-99-3GHCDB2 network-scripts]# rpm -qf /etc/rc.d/init.d/network
initscripts-9.49.39-1.el7.x86_64
[root@A04-R08-I199-99-3GHCDB2 network-scripts]# rpm -ql initscripts-9.49.39-1.el7.x86_64 |grep man8
/usr/share/man/man8/ifdown.8.gz
/usr/share/man/man8/ifup.8.gz
/usr/share/man/man8/ppp-watch.8.gz
/usr/share/man/man8/service.8.gz
/usr/share/man/man8/sushell.8.gz
/usr/share/man/man8/sys-unconfig.8.gz
/usr/share/man/man8/usernetctl.8.gz
[root@A04-R08-I199-99-3GHCDB2 network-scripts]# rpm -ql initscripts-9.49.39-1.el7.x86_64 |grep doc
/usr/share/doc/initscripts-9.49.39
/usr/share/doc/initscripts-9.49.39/COPYING
/usr/share/doc/initscripts-9.49.39/changes.ipv6
/usr/share/doc/initscripts-9.49.39/examples
/usr/share/doc/initscripts-9.49.39/examples/networking
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bond-802.3ad
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bond-activebackup-arpmon
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bond-activebackup-miimon
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bond-slave
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bridge
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-bridge-port
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-eth-alias
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-eth-dhcp
/usr/share/doc/initscripts-9.49.39/examples/networking/ifcfg-vlan
/usr/share/doc/initscripts-9.49.39/ipv6-6to4.howto
/usr/share/doc/initscripts-9.49.39/ipv6-tunnel.howto
/usr/share/doc/initscripts-9.49.39/static-routes-ipv6
/usr/share/doc/initscripts-9.49.39/sysconfig.txt
/usr/share/doc/initscripts-9.49.39/sysvinitfiles

 

man ifup的时候,它也会提示你这个地方。

这样,你就能准确的知道你的os里的配置项都有什么,以及每个项都支持什么值了。

 

posted on 2021-11-08 19:55  toong  阅读(173)  评论(0编辑  收藏  举报