Cant Acsess Internet On Kali Linux

Discussion in 'Installation/Configuration' started by GalZNagar, Mar 11, 2016.

  1. GalZNagar

    GalZNagar New Member

    Hello Yesterday I installed kali linux on my computer and i cant acsess the internet
    I checked my connection to the wifi and it looked fine.
    If anybody can help me it will be nice.
    Thanks for all.
  2. Well-Known Member HowtoForge Supporter

    Check your network
    Any links up? wlan0 showing?
    If not, try
    ifconfig wlan0 up
    any issue with the following command?
    btw. Why on ISPConfig2 sub board?
    Are you running kali in a virtual environment?
  3. GalZNagar

    GalZNagar New Member

    wlan0 is showing
    and im running kali linux and windows on the same pc not on vm
    ping says "connect:Network is unreachable"
    ping says : "ping: unknown host"
  4. Well-Known Member HowtoForge Supporter

    I think I found something interesting to configure your wifi from command line.
    However, using your network manager should also work. What's ifconfig showing exactly?
    It should show something like
    inet addr:
  5. GalZNagar

    GalZNagar New Member

    i cant copy what ifconfig showing exactly because its from another computer but its not showing something like inet addr:
  6. Well-Known Member HowtoForge Supporter

    then kali is either not requesting or receiving automated network configuration via DHCP.
    I assume you have DHCP server in your network.
    On the other hand, you're giving not much feedback on this.

    Have you set up your wifi according to your network settings? WPA2 setup correctly?
    No Networkmanager? Did you enable DHCP discovery? Did you try static IP setup?
    Does it work if you connect via LAN?

    Figure what network setup you have.
    For example you have a Router connecting you to your internet which has IP:
    If you can connect to your wifi but don't get an IP you could try:
    ifup wlan0
    ifconfig wlan0
    ifconfig wlan0 netmask
    ifconfig wlan0 broadcast
    route add default gw wlan0
    echo "nameserver\n nameserver" >> /etc/resolv.conf
    as root user from your command line if you don't have any network manager available.

    However, if this doesn't work either, your wifi seems not beeing connected to your network using WPA correctly,

    Put your SSID and password into /etc/wpa_supplicant.conf
    As root do:

    wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant.conf -Dwext
    dhclient wlan0
    "wext" is a driver and that will be specific for each card; refer to wpa_supplicant -h. Examples:
    hostap (default) Host AP driver (Intersil Prism2/2.5/3). (this can also be used with Linuxant DriverLoader).
    hermes Agere Systems Inc. driver (Hermes-I/Hermes-II).
    madwifi MADWIFI 802.11 support (Atheros, etc.).
    atmel ATMEL AT76C5XXx (USB, PCMCIA).
    wext Linux wireless extensions (generic).
    ndiswrapper Linux ndiswrapper.
    broadcom Broadcom wl.o driver.
    ipw Intel ipw2100/2200 driver.
    wired wpa_supplicant wired Ethernet driver
    roboswitch wpa_supplicant Broadcom switch driver
    bsd BSD 802.11 support (Atheros, etc.).
    ndis Windows NDIS driver.
  7. GalZNagar

    GalZNagar New Member

    I do have dhcp server on my network
    and im connected correctly to my internet but it still doesnt work :\
  8. Well-Known Member HowtoForge Supporter

    Did you try reaching your local Router using its internal IP?
    Either way if this does work or not, I'm not quite sure what you're doing. Maybe ask on Kali Linux forums.
    You could also try another Linux distribution, Kali is just a flavour with certain preinstalled packages / themes of Debian.

Share This Page