ifcfg命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社《Linux命令应用大词典》

讲述729个命令,1935个例子
学习Linux系统的参考书、案头书,遇到不懂的命令或命令选项一查即可
争取每天都发布内容


本文出自 “airfish2000” 博客,更多命令查看博客:
http://airfish2000.blog.51cto.com/10829608/1894366


【ifcfg命令--Linux命令应用大词典729个命令解读】ifcfg命令
使用ifcfg命令可以进行IP地址管理,是一个替换ifconfig命令的简单的脚本。
命令语法:
ifcfg [设备] [命令] [地址[/长度]]
命令中各选项的含义如表所示。
表ifcfg命令选项含义

命令
描述
add
添加新地址
del
删除地址
stop
完全禁用IP

例:为网络接口eth0添加IP地址。
[root@rhel ~]# ifcfgeth0 add 192.168.0.3
Forwarding is ON orits state is unknown (6). OK, No RDISC.
例:删除网络接口eth0的IP地址。
[root@rhel ~]# ifcfg eth0 del 192.168.0.3
Forwarding is ON or its state is unknown (6). OK, No RDISC.
例:完全禁用网络接口eth0。
[root@rhel ~]# ifcfg eth0 stop


转载于:https://blog.51cto.com/airfish2000/1894366

    推荐阅读