Monday, February 4, 2019

Kali Linux New Install has No Internet NAT

If you have no internet access on a new install of Kali Linux

root@kali:~# ping
ping: Name or service not known
root@kali:~# ping
connect: Network is unreachable

and ifconfig has no ip address

root@kali:~# ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 00:0c:29:3c:6b:02  txqueuelen 1000  (Ethernet)

my fix was to run 

root@kali:~# dhclient eth0

And now I have an ip address

root@kali:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast

and i can hit google

root@kali:~# ping
PING ( 56(84) bytes of data

No comments:

Post a Comment