≡ Menu

ifconfig Command Does Not Show IPv4 Address

ifconfig command does not show IP address on my Linux based laptop computer. How do I fix this problem?

You need to configure your networking. Here are some tips to solve this problem under Linux.

Find out if eth0/wlan0 detected or not…

Is your network card detected by Linux? Run ifconfig command and make sure you can see eth0 or wlan0 as an interface:
Also run the lspci command to list your current wireless and ethernet devices:
If you do not see your card. You need to install the network card driver.

GUI Tools

Networking on Linux can be painful, especially in comparison to other operating systems. You can use NetworkManager to configure your wireless or ethernet cards. NetworkManager is configured through graphical interfaces, which are available for GNOME and KDE.

How Do I Use NetworkManager?

You will see applet (computer icon) in the notification area / system tray. Left-click this icon to present the nm-applet pop-up menu. You can see neighboring wireless networks with a broadcasted SSID. You can right click and edit the settings.

A note about the Internet connection…

Is your Internet connection working? Most router will give you an IP address when connected to the Internet via DHCP server. Make sure eth0 or wlan is configured to obtain address automatically using DHCP.

Linux Network Setting Wireless To Auto DHCP

Fig.01: DHCP settings

Another option is to set IP address manually:

Linux GUI Networking Setting IP Address / Netmask / Gateway Manually

Fig.02: IPv4 manual settings

How do I configure networking manually?

See the following tutorial for more information:

  1. Debian Linux Configure Network Interface Cards – IP address and Netmasks
  2. RHEL / Red Hat / CentOS Linux Network Configuration
Share this tutorial on:

Like this? Follow us on Twitter OR support us by using Patreon

{ 3 comments… add one }
  • venkatesh November 23, 2013, 6:56 am

    my static ipv4 address is not showing on etho but it is showing on ifconfig… what is the issue…

  • Devin May 7, 2014, 10:05 pm

    hello i m devin i have wired broadband internet connection so can i use backtrack
    if yes what r the possible configuration i have to make .Please send the answer on my email

  • Ted July 7, 2015, 8:56 pm

    How do you solve this for Windows 7 ?

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">

   Tagged with: , , , , , , , , , , , , , , , , ,