1 Reply Latest reply on May 4, 2019 2:36 AM by a.p.

    fix networking

    VMwareuser222 Lurker

      I have been running Kali Linux on this VMWare workstation. Yesterday something happened and my internet is gone. I cannot even ping google.

       

      root@kali:~# ping 8.8.8.8

      connect: Network is unreachable

      root@kali:~# ifconfig -a]

      ifconfig: option `-a]' not recognised.

      ifconfig: `--help' gives usage information.

      root@kali:~# ifconfig -a

      eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500

              ether 00:0c:29:dd:c3:59  txqueuelen 1000  (Ethernet)

              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

       

      lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

              inet 127.0.0.1  netmask 255.0.0.0

              inet6 ::1  prefixlen 128  scopeid 0x10<host>

              loop  txqueuelen 1000  (Local Loopback)

              RX packets 16  bytes 960 (960.0 B)

              RX errors 0  dropped 0  overruns 0  frame 0

              TX packets 16  bytes 960 (960.0 B)

              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

       

      root@kali:~# ifconfig eth0 up

      root@kali:~# ping 8.8.8.8

      connect: Network is unreachable

      root@kali:~# ip route add default via 192.168.1.254 dev eth0

      Error: Nexthop has invalid gateway.

      root@kali:~# ping google.com

      ping: google.com: Name or service not known

      root@kali:~# ping 8.8.8.8

      connect: Network is unreachable

      root@kali:~#

       

      What do I need to do?  I have tried recreating the networks under virtual network editor with no success.

      What is going on with my machine? Can someone give me step by step instructions on what to do to repair my internet connection?

      Should I be running NAT?  My internet is working perfectly fine on windows 10. From the View your network properties in windows:

       

      Name:    Ethernet 4

      Description:    Intel(R) Ethernet Connection I217-LM

      Physical address (MAC):    98:90:96:9d:ca:30

      Status:    Operational

      Maximum transmission unit:    1500

      Link speed (Receive/Transmit):    1000/1000 (Mbps)

      DHCP enabled:    Yes

      DHCP servers:    192.168.1.254

      DHCP lease obtained:    Friday, May 3, 2019 10:49:33 PM

      DHCP lease expires:    Saturday, May 4, 2019 10:49:33 PM

      IPv4 address:    192.168.1.68/24

      IPv6 address:    2600:1700:b610:f300::7ad/128, 2600:1700:b610:f300:3c3e:5c33:b6a8:2611/64, 2600:1700:b610:f300:6c65:653c:db77:7cef/128, fe80::3c3e:5c33:b6a8:2611%18/64

      Default gateway:    fe80::fa2c:18ff:fe7c:d5e9%18, 192.168.1.254

      DNS servers:    2600:1700:b610:f300::1, 192.168.1.254

      DNS domain name:    attlocal.net

      DNS connection suffix:    attlocal.net

      DNS search suffix list:   

      Network name:    Network

      Network category:    Public

      Connectivity (IPv4/IPv6):    Connected to Internet

                                            

                                            

      Name:    Ethernet 5

      Description:    Private Internet Access Network Adapter

      Physical address (MAC):    00:ff:fe:fa:9c:0c

      Status:    Not operational

      Maximum transmission unit:    1500

      IPv4 address:    169.254.183.154/16

      IPv6 address:    fe80::3c8e:15ec:dff0:b79a%21/64

      DNS servers:    fec0:0:0:ffff::1%1, fec0:0:0:ffff::2%1, fec0:0:0:ffff::3%1

      Connectivity (IPv4/IPv6):    Disconnected

                                            

                                            

      Name:    VMware Network Adapter VMnet1

      Description:    VMware Virtual Ethernet Adapter for VMnet1

      Physical address (MAC):    00:50:56:c0:00:01

      Status:    Operational

      Maximum transmission unit:    1500

      IPv4 address:    192.168.233.1/24

      IPv6 address:    fe80::10c1:b4b2:2565:82aa%10/64

      DNS servers:    fec0:0:0:ffff::1%1, fec0:0:0:ffff::2%1, fec0:0:0:ffff::3%1

      Connectivity (IPv4/IPv6):    Disconnected

                                            

                                            

      Name:    VMware Network Adapter VMnet8

      Description:    VMware Virtual Ethernet Adapter for VMnet8

      Physical address (MAC):    00:50:56:c0:00:08

      Status:    Operational

      Maximum transmission unit:    1500

      IPv4 address:    192.168.221.1/24

      IPv6 address:    fe80::111f:9a98:4416:54e2%13/64

      DNS servers:    fec0:0:0:ffff::1%1, fec0:0:0:ffff::2%1, fec0:0:0:ffff::3%1

      Connectivity (IPv4/IPv6):    Disconnected

                                            

                                            

      Name:    Ethernet 2

      Description:    TAP-Windows Adapter V9

      Physical address (MAC):    00:ff:38:ad:5d:fa

      Status:    Not operational

      Maximum transmission unit:    1500

      IPv4 address:    169.254.130.132/16

      IPv6 address:    fe80::a1aa:e2c4:eeb3:8284%6/64

      DNS servers:    209.222.18.222, 209.222.18.218

      Connectivity (IPv4/IPv6):    Disconnected

                                            

                                            

      Name:    Ethernet

      Description:    Realtek PCIe GBE Family Controller

      Physical address (MAC):    f8:32:e4:9c:d2:dc

      Status:    Not Present

      Maximum transmission unit:    0

      Connectivity (IPv4/IPv6):    Disconnected

                                            

                                            

      Name:    Ethernet 3

      Description:    Apple Mobile Device Ethernet

      Physical address (MAC):    2e:be:08:97:f2:53

      Status:    Not Present

      Maximum transmission unit:    0

      Connectivity (IPv4/IPv6):    Disconnected

        • 1. Re: fix networking
          a.p. Guru
          vExpertUser ModeratorsCommunity Warriors

          Welcome to the Community,

           

          it's not easy to give an advice without knowing the VM's current configuration.

          Anyway, waht you may check is whether the guest OS (Kali) is configured for DHCP. If so, check the VM's settings in VMware Workstation, to ensure that the network adapter is "connected" (you may also want to set "Connect at power on"). If the VM doesn't need to be available on your local network, set networking to "NAT".

          With these settings in place, see whether the guest receives a DHCP lease, and if it doesn't check the guest's log files to find out what's wrong.

           

          André