HOWTO: Wireless WPA2-Enterprise Connection

Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

HOWTO: Wireless WPA2-Enterprise Connection

Postby vermaden » 09 May 2013, 07:38

Below are working configs and steps to connect to a WPA2-Enterprice wireless network.

Code: Select all
[cmd=#]cat /etc/wpa_supplicant.conf[/Cmd]
network={
  ssid="NETWORK"
  scan_ssid=1
  key_mgmt=WPA-EAP
  identity="USERNAME"
  password="PASSWORD"
  eap=PEAP
  phase1="peaplabel=0"
  phase2="auth=MSCHAPV2"
}


Now connect.
Code: Select all
[cmd=#]wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf[/cmd]
Trying to associate with 00:00:00:00:00:00 (SSID='NETWORK' freq=2442 MHz)
Associated with 00:00:00:00:00:00
CTRL-EVENT-EAP-STARTED EAP authentication started
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=13 -> NAK
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=COM/O=ORGANIZATION/OU=AUTHORITY/CN=LEVEL'
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=COM/O=ORGANIZATION/OU=AUTHORITY/CN=LEVEL'
CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=COM/O=ORGANIZATION/OU=AUTHORITY/CN=LEVEL'
CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=COM/O=ORGANIZATION/OU=AUTHORITY/CN=LEVEL'
EAP-MSCHAPV2: Authentication succeeded
CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
WPA: Key negotiation completed with 00:00:00:00:00:00 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (auth) [id=7 id_str=]


Here is the associated connection.
Code: Select all
[cmd=#]ifconfig wlan0[/cmd]
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:00:00:00:00:00
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        ssid NETWORK channel 7 (2442 MHz 11g) bssid 00:00:00:00:00:00
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 15 bmiss 10 scanvalid 450
        bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
        protmode CTS wme roaming MANUAL


Lets get an IP address.
Code: Select all
[cmd=#]dhclient wlan0[/cmd]
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.1
bound to 10.0.0.101 -- renewal in 345600 seconds.


After getting an IP address.
Code: Select all
[cmd=#]ifconfig wlan0 [/cmd]
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:00:00:00:00:00
        inet 10.0.0.101 netmask 0xffffff00 broadcast 10.0.0.255
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
        status: associated
        ssid PGE_SystemySA channel 7 (2442 MHz 11g) bssid 00:00:00:00:00:00
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 15 bmiss 10 scanvalid 450
        bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
        protmode CTS wme roaming MANUAL


For obvious security reasons things like certificates and MAC addresses in command outputs have been changed.
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2317
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz

Postby torr_from_fallout2 » 10 May 2013, 22:29

Thank you! I was about to post how to do this but you answered my question before I got a chance to ask!

Thanks again!
torr_from_fallout2
Junior Member
 
Posts: 41
Joined: 14 Aug 2009, 02:16
Location: London, Ontario, Canada


Return to Howtos & FAQs (Moderated)

Who is online

Users browsing this forum: No registered users and 1 guest