No IPv4 address is currently assigned

 No IPv4 address is currently assigned

Example:

From the output of your ip a command, there is no IPv4 address assigned to your active network interface (eth0), only IPv6 addresses are present.


Here's What You Have:

  • Loopback interface (lo) has: 127.0.0.1 → that's only for local use.

  • Ethernet interface (eth0) has only IPv6 addresses


To get an IPv4 address (automatically):

Run this command:
        $ sudo dhclient eth0
Note;
    dhclient is not installed by default on your Kali system.

Let’s fix that and get your IPv4 address:

        $ sudo apt install isc-dhcp-client -y

Then check:

        $ ip a

You should now see a line under eth0 like:



🧠 Why might IPv4 be missing?

  • Your network/router might be IPv6-only

  • DHCP server is not assigning IPv4

  • Your system didn’t automatically request an IPv4 address


If dhclient doesn’t work:

Try this command instead (newer systems use NetworkManager):

            $ nmcli device reapply eth0



Comments

Popular posts from this blog

Install Moodle 4.3 on Ubuntu 23.10

Activate window and MS-Office with PowerShell

GNS3 installation in Linux