• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

bash ifconfig: command not found on Debian Linux

Written by Rahul, Updated on November 20, 2018
Linux Tutorials command, debian, ifconfig

ifconfig command is a useful utility for getting network configuration details on Debian Linux systems. With the older versions of Debian operating systems, ifconfig command packages were default installed. but with the latest Debian systems, the ifconfig command was not installed default with operating system installation.

Error, I faced while running ifconfig on newly installed Debian system:

-bash: ifconfig: command not found

-bash: ifconfig: command not found

Install Package for ifconfig on Debian

ifconfig command comes from net-tools Debian package. Install this package using the following command which is available under default repositories.

Install Package:

sudo apt-get install net-tools

Getting Interface Information using ifconfig

Then you can use this command to check network configuration details. Below command will show details for all interfaces configured on your Debian system.

[email protected]:~# ifconfig 

enp0s3: flags=4163  mtu 1500
        inet 192.168.1.237  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::a00:27ff:fe2b:861a  prefixlen 64  scopeid 0x20
        ether 08:00:27:2b:86:1a  txqueuelen 1000  (Ethernet)
        RX packets 3347  bytes 1777600 (1.6 MiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 1262  bytes 119822 (117.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 1000  (Local Loopback)
        RX packets 69  bytes 4756 (4.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 69  bytes 4756 (4.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Use below command to show details for interface eth0 in system

ifconfig enp0s3

To get all interfaces details using ifconfig use following command.

ifconfig -a

Share it!
Share on Facebook
Share on Twitter
Share on Google+
Share on Reddit
Share on Tumblr
Rahul
Rahul
Connect on Facebook Connect on Twitter Connect on Google+

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

Related Posts

  • How To Install Specific Package Version on Ubuntu & Debian

    January 1, 2019
  • How to Install Multiple PHP Version with Apache on Debian 9

    June 24, 2018
  • How to Install Sublime Text Editor on Debian 9/8

    June 6, 2018
  • How to Check IP Address on Ubuntu 18.04 (Desktop)

    May 7, 2018
  • 10 Awesome Linux cd Command Examples

    June 28, 2017

2 Comments

  1. Liam Reply to Liam
    December 12, 2018 at 6:25 am

    It’s a great utility to get network configuration details on Debian Linux system.

  2. preter Reply to preter
    November 20, 2018 at 9:55 am

    The ifconfig command was not installed default with Debian, because of net-tools has been obsolete by iproute2 in 2009: https://lists.debian.org/debian-devel/2009/03/msg00780.html
    You should to use default iproute2, not install old, not development and security risk net-tools.

    Poor article, do not learn people how to use old and security risk tools.

Leave a Reply

Cancel reply

Popular Posts

  • How To Install Zabbix Agent on Debian 9/8
  • How to Install and Configure Squid Proxy on Debian 9
  • How To Install Wine 3 on Debian 9 (Stretch)
  • How to Remove “public/index.php” from URL in Laravel
  • How to Install Swift on Ubuntu 18.04 LTS
All rights reserved. © 2013-2018 TecAdmin.net. This site uses cookies. By using this website you agree our term and services