如何在ubuntu 20.04上安装ifconfig
时间:2020-02-23 14:44:40 来源:igfitidea点击:
我发现Ubuntu 20.04(Focal FOSTA)服务器版没有预装的IFConfig命令。
那么你如何在Ubuntu 20.04上安装ifconfig(焦点fossa)?
如果我们收到邮件Ifconfig:在Ubuntu上找不到,则表示未安装命令。
ifconfig是一个用于网络接口配置的命令行界面工具。
在ubuntu 20.04上安装ifconfig
为了确保Ubuntu 20.04(焦点磁骨)机上可用IFConfig命令。
运行命令:
sudo apt install net-tools
Net-Tools包将在Ubuntu 20.04上安装ifconfig(焦点fossa)。
安装后,我们可以在终端中尝试调用ifconfig。
$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::f816:3eff:fed8:1d14 prefixlen 64 scopeid 0x20<link> ether fa:16:3e:d8:1d:14 txqueuelen 1000 (Ethernet) RX packets 235355 bytes 512200432 (512.2 MB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 57226 bytes 5382029 (5.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 txqueuelen 1000 (Local Loopback) RX packets 1364 bytes 109906 (109.9 KB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1364 bytes 109906 (109.9 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0