【Linux】一步一步学Linux——ifcfg命令(157)
生活随笔
收集整理的這篇文章主要介紹了
【Linux】一步一步学Linux——ifcfg命令(157)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
00. 目錄
文章目錄
- 00. 目錄
- 01. 命令概述
- 02. 命令格式
- 03. 常用選項
- 04. 參考示例
- 05. 附錄
01. 命令概述
ifcfg命令是一個Bash腳本程序,用來設置Linux中的網絡接口參數。
02. 命令格式
語法格式: ifcfg [參數]03. 常用選項
網絡接口:指定要操作的網絡接口 add/del:添加或刪除網絡接口上的地址 ip地址:指定IP地址和子網掩碼 stop:停用指定的網絡接口的IP地址04. 參考示例
4.1 停止指定網絡接口上的IP地址
[root@localhost ~]# ifcfg ens33 stop Forwarding is ON or its state is unknown (6). OK, No RDISC.4.2 為網絡接口配置IP地址
[root@localhost ~]# ifcfg ens33 add 172.16.0.76/23 Forwarding is ON or its state is unknown (6). OK, No RDISC.4.3 刪除IP地址
[root@localhost ~]# ifcfg ens33 delete 172.16.0.76/2305. 附錄
參考:【Linux】一步一步學Linux系列教程匯總
總結
以上是生活随笔為你收集整理的【Linux】一步一步学Linux——ifcfg命令(157)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Linux】一步一步学Linux——d
- 下一篇: 【Linux】一步一步学Linux——n