文档:ifconfig(8) - Linux manual page
https://en.wikipedia.org/wiki/Ifconfig
https://www.baeldung.com/linux/ifconfig-command
https://www.baeldung.com/linux/ifconfig-command
1.简介
ifconfig 是类 Unix 操作系统中用于网络接口配置的实用程序。
该实用程序是一个命令行接口工具,用于许多系统启动脚本中。
具有配置、控制和查询 TCP/IP 网络接口参数的功能。
Ifconfig 最初作为BSD TCP/IP 套件 的一部分出现在4.2BSD中。
ifconfig 是 net-tools 包的一部分
ifconfig 分配静态 IP 地址。如果要使用DHCP 动态 IP,请使用 dhclient 命令。