Error : -bash: ifconfig: command not found
Login as root user :
[root@0.0.0.0]#
[root@0.0.0.0]#
[root@0.0.0.0]#
[root@0.0.0.0]# ifconfig
-bash: ifconfig: command not found
[root@0.0.0.0]#
[root@0.0.0.0]#
[root@0.0.0.0]#
Install net-tools package using yum command
[root@0.0.0.0]# yum install net-tools
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 0:01:33 ago on Mon 22 May 2023 04:36:53 PM UTC.
Dependencies resolved.
==============================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================
Installing:
net-tools x86_64 2.0-0.52.20160912git.el8 rhel-8-baseos-rhui-rpms 322 k
Transaction Summary
==============================================================================================================================
Install 1 Package
Total download size: 322 k
Installed size: 942 k
Is this ok [y/N]: y
Downloading Packages:
net-tools-2.0-0.52.20160912git.el8.x86_64.rpm 9.4 MB/s | 322 kB 00:00
------------------------------------------------------------------------------------------------------------------------------
Total 6.1 MB/s | 322 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : net-tools-2.0-0.52.20160912git.el8.x86_64 1/1
Running scriptlet: net-tools-2.0-0.52.20160912git.el8.x86_64 1/1
Verifying : net-tools-2.0-0.52.20160912git.el8.x86_64 1/1
Installed products updated.
Installed:
net-tools-2.0-0.52.20160912git.el8.x86_64
Complete!
[root@0.0.0.0]#
[root@0.0.0.0]#
[root@0.0.0.0]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001
inet 172.21.31.211 netmask 255.255.240.0 broadcast 172.31.31.255
inet6 f80::6:3ccf:fe7d:1a13 prefixlen 64 scopeid 0x20<link>
ether 0a:76:33:7d:1a:13 txqueuelen 1000 (Ethernet)
RX packets 86484 bytes 127950677 (122.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 11182 bytes 1084233 (1.0 MiB)
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 509 bytes 77514 (75.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 509 bytes 77514 (75.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@0.0.0.0]#
[root@0.0.0.0]#
No comments:
Post a Comment