Results 1 to 1 of 1

Thread: Wireless (WPA2 PSK) Configuration

Threaded View

  1. #1
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    1

    Default Wireless (WPA2 PSK) Configuration

    In this tutorial, I am going to explain how to configure and run wpa_supplicant with pre-shared key (PSK) authentication, and make necessary changes to /etc/network/interfaces file in order to obtain connectivity while booting up.

    Let's start


    1) type wpa_passphrase "your wireless network name" "password" > /etc/wpa_supplicant.conf
    Don't forget to remove the commented line including your password in ascii.


    2) type iwconfig to learn your wireless interface.
    let's say it is wlan0 then you have to add these lines to /etc/network/interfaces file.
    STATIC IP ASSIGNMENT (preferred):
    Code:
    auto wlan0
    iface wlan0 inet static
            pre-up wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf # you might change these bold parameters to suit your wireless card and interface.
            address 192.168.1.2 # change this if this does not suit your gateway's netmask.
            gateway 192.168.1.1 # change this if your router is on a different ip
            netmask 255.255.255.0
            post-down killall -q wpa_supplicant
    or
    ALLOCATE IP via dhcp (TAKES TIME at boot-up)
    Code:
    auto wlan0
    iface wlan0 inet dhcp
            pre-up wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf # you might change these bold parameters to suit your wireless card and interface.
            post-down killall -q wpa_supplicant
    3) Add a nameserver entry to your /etc/resolv.conf file if you haven't created one:
    echo "nameserver 208.67.222.222" > /etc/resolv.conf

    4) and by default, bt4 starts up in "stealthy" mode and you need to add networking system startup entry by issuing: update-rc.d networking defaults.

    5) I suggest that you remove unnecessary interfaces from interfaces file and then type /etc/init.d/networking restart.
    Finally, type iwconfig "your wlan interface" to determine whether or not you're associated.

    That's all
    Last edited by hepgul; 02-12-2010 at 12:48 PM. Reason: config dns and startup entries

Similar Threads

  1. Wireless configuration for BT VM
    By WrstCseScenario in forum Beginners Forum
    Replies: 2
    Last Post: 02-04-2010, 11:23 PM
  2. backtrack 4 kernel configuration
    By huhwha in forum Beginners Forum
    Replies: 0
    Last Post: 02-03-2010, 12:47 AM
  3. John the ripper configuration problem
    By Dante in forum Beginners Forum
    Replies: 2
    Last Post: 01-30-2010, 01:18 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •