Wednesday, October 1, 2014

ifconfig doesn't work on default RHEL7 installation.

The default installation on RHEL7 will not have the ifconfig command.

ifconfig -a
bash: ifconfig: command not found

You need to install the RPM named net-tools.

[root@localhost Packages]# rpm -ivh net-tools-2.0-0.17.20131004git.el7.x86_64.rpm
warning: net-tools-2.0-0.17.20131004git.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:net-tools-2.0-0.17.20131004git.el################################# [100%]

[root@localhost Packages]# ifconfig
ens192: flags=4163  mtu 1500
        inet 10.213.21.133  netmask 255.255.255.0  broadcast 10.213.21.255
        inet6 2002:976:2c08:610:20c:29ff:feee:3857  prefixlen 64  scopeid 0x0
        inet6 fe80::20c:29ff:feee:3857  prefixlen 64  scopeid 0x20
        ether 00:0c:29:ee:38:57  txqueuelen 1000  (Ethernet)
        RX packets 184253  bytes 1087049370 (1.0 GiB)
        RX errors 0  dropped 50  overruns 0  frame 0
        TX packets 82604  bytes 6774921 (6.4 MiB)
        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 0  (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


Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home