The network command line tool ‘ifconfig’
is not available on CentOS 8 minimal installation.
Ifconfig command is part of net-tools package and it can be installed from CentOS
8 default BaseOS repository on CentOS 8.
[root@linuxcnf ~]# ifconfig
-bash: ifconfig: command not found
[root@linuxcnf ~]#
|
Step 1. Install Package: Run the following dnf command to install net-tools package:
[root@linuxcnf ~]# dnf install
net-tools -y
…………………….
Installed:
net-tools-2.0-0.52.20160912git.el8.x86_64
Complete!
[root@linuxcnf ~]#
|
Step 2. Validate the Installation: Run the following commands to validate the installation
and ‘ifconfig’ command:
[root@linuxcnf ~]# which
ifconfig
/usr/sbin/ifconfig
[root@linuxcnf ~]#
|
[root@linuxcnf ~]# ifconfig
enp0s3:
flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::86e:1ab5:b2fe:b2bd prefixlen 64 scopeid 0x20<link>
ether 08:00:27:09:ac:1e txqueuelen 1000 (Ethernet)
RX packets 1726 bytes 455216 (444.5 KiB)
RX errors 0 dropped 0
overruns 0 frame 0
TX packets 555 bytes 54046 (52.7 KiB)
TX errors 0
dropped 0 overruns 0 carrier
0 collisions 0
…………………….
[root@linuxcnf ~]#
|
No comments:
Post a Comment