ifconfig: command not found in CentOS 7 / RHEL 7
How to install ifconfig command in CentOS / RHEL 7
Error: bash: ifconfig: command not found...
Check package for ifconfig command in CnetOS 7
# yum whatprovides *bin/ifconfig
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirror.snu.edu.in
* extras: centos.mirror.snu.edu.in
* updates: centos.mirror.snu.edu.in
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo : base
Matched from:
Filename : /sbin/ifconfig
Install ifconfig command package
# yum install net-tools -y
Run command after installation of package
# ifconfig
ens33: flags=4163 mtu 1500
inet 192.168.35.150 netmask 255.255.255.0 broadcast 192.168.35.255
inet6 fe80::c021:2d47:4832:e35f prefixlen 64 scopeid 0x20
ether 00:0c:29:fc:2e:d1 txqueuelen 1000 (Ethernet)
RX packets 754 bytes 370668 (361.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 414 bytes 127068 (124.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Error: bash: ifconfig: command not found...
Check package for ifconfig command in CnetOS 7
# yum whatprovides *bin/ifconfig
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.mirror.snu.edu.in
* extras: centos.mirror.snu.edu.in
* updates: centos.mirror.snu.edu.in
net-tools-2.0-0.17.20131004git.el7.x86_64 : Basic networking tools
Repo : base
Matched from:
Filename : /sbin/ifconfig
Install ifconfig command package
# yum install net-tools -y
Run command after installation of package
# ifconfig
ens33: flags=4163
inet 192.168.35.150 netmask 255.255.255.0 broadcast 192.168.35.255
inet6 fe80::c021:2d47:4832:e35f prefixlen 64 scopeid 0x20
ether 00:0c:29:fc:2e:d1 txqueuelen 1000 (Ethernet)
RX packets 754 bytes 370668 (361.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 414 bytes 127068 (124.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0