Article sections

    Source : https://www.unixmen.com/ifconfig-command-found-centos-7-minimal-installation-quick-tip-fix/

    yum whatprovides ifconfig

    Here, “provides” or “whatprovides” switches are used to find out which package provides some feature or file.

    As you see in the above output, the net-tools package provides the ifconfig command. So, let us install net-tools package to use ifconfig command.

    yum install net-tools

    Now, you’ll be able to use the command ifconfig as usual.

    ifconfig -a

    Sample output:

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            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
    
    venet0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP>  mtu 1500
            inet 127.0.0.1  netmask 255.255.255.255  broadcast 0.0.0.0  destination 127.0.0.1
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 0  (UNSPEC)
            RX packets 7073  bytes 8549159 (8.1 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 4611  bytes 359201 (350.7 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    venet0:0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP>  mtu 1500
            inet 192.168.1.101  netmask 255.255.255.255  broadcast 192.168.1.101  destination 192.168.1.101
            unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 0  (UNSPEC)
    in Linux Commands