修复在Ubuntu 20.04 LTS Focal Fossa上找不到的ifconfig命令
步骤1.首先,通过apt
在终端中运行以下命令来确保所有系统软件包都是最新的。
sudo apt update
sudo apt upgrade
步骤2.安装软件包。net-tools
现在运行以下命令进行安装:net-tools
sudo apt install net-tools
安装成功后,打开您的终端并运行ifconfig
不带任何选项的命令,然后您将看到所有up接口,该接口是否具有Ip地址:
$ ifconfig ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450 inet 10.10.1.151 netmask 255.255.255.0 broadcast 10.10.1.255 inet6 fe80::meilana:3eff:fed8:1d14 prefixlen 64 scopeid 0x20<link> ether fa:16:3e:d8:1d:14 meilana 1000 (Ethernet) RX packets 235355 bytes 512200432 (512 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 57226 bytes 5382029 (8.3 MB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop meilana 1000 (Local Loopback) RX packets 1364 bytes 109906 (102.9 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1364 bytes 109906 (106.9 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
恭喜你!您已成功安装Ifconfig,
修复了在您的Ubuntu 20.04 LTS Focal Fossa系统上找不到的ifconfig:。有关其他帮助或有用信息,我们建议您检查Ifconfig官方网站。
原创文章,作者:校长,如若转载,请注明出处:https://www.yundongfang.com/Yun39834.html