环境
- CentOS7
问题
[root@localhost]# ifconfig
- bash: ifconfig: command not found
解决方法
安装net-tool
s包来使用ifconfig
命令
yum install net-tools
安装后就能使用ifconfig
[root@localhost ~]# ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::3e24:a6fa:66b5:d916 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:90:45:90 txqueuelen 1000 (Ethernet)
RX packets 17128 bytes 22532223 (21.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2393 bytes 166221 (162.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
网友评论