LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2013, 09:54 AM   #1
Dornith
Member
 
Registered: Jul 2012
Location: U.S.A
Distribution: Archlinux Multilib, Debian 7.0.0 32b
Posts: 153

Rep: Reputation: Disabled
Connecting to a network via console


I just installed CentOS and I want to learn the tools for connecting to the internet without Gnome. Right now I'm trying to connect to my home network but I can't get it to work. I turned off Network Manager and am currently working as root. I'm pretty sure we use WPA2 with dhcp and ipv4 and I checked that the driver is up to date. Here's what I've tried:
Code:
iwconfig wlan0 essid <NetworkId> key s:<Password>
    SET failed on device wlan0 ; Invalid argument

wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext
Trying to associate with 00:13:10:ec:77:ce (SSID='<NetworkId>' freq=2452 MHz)
Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED bssid=00:13:10:ec:77:ce reason=0
Associated with 00:13:10:ec:77:ce
WPA: INVALID EAPOL-key MIC when using TPTK - ignoring TPTK
WPA: Could not verify EAPOL-Key MIC - dropping packet
This is my /etc/wpa_supplicant.conf:
Code:
network={
	ssid="<NetworkId>"
	psk="<Password>"
	key_mgmt=WPA-PSK
}
 
Old 09-14-2013, 11:03 AM   #2
Dornith
Member
 
Registered: Jul 2012
Location: U.S.A
Distribution: Archlinux Multilib, Debian 7.0.0 32b
Posts: 153

Original Poster
Rep: Reputation: Disabled
I figured out the problem, a bunch of little things.

Firstly I had to convert my password with wpa_passphrase like so:
Code:
wpa_passphrase <NetworkId> > /etc/wpa_supplicant.conf
<Password>
Secondly, I had to take wlan0 down (I thought I already did but that was before I turned of Network manager so it might have turned it back on):
Code:
ifconfig wlan0 down
So in final what I had to do was this:
Code:
su
<RootPassword>
service NetworkManager stop
# chkconfig NetworkManager off #Uncomment this to make it permenant
ifconfig wlan0 down
wpa_passphrase <NetworkName> > /etc/wpa_supplicant.conf
<NetworkPassword>
wpa_supplicant -Dwext -iwlan0 -e/etc/wpa_supplicant.conf
dhclient -r
dhclient wlan0 #This one might take a moment
ifconfig wlan0 up
exit

Last edited by Dornith; 09-14-2013 at 11:15 AM.
 
  


Reply

Tags
connect, console, network, terminal, wpa2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to wi-fi with console only Beanz239 Linux - Laptop and Netbook 4 08-29-2012 10:01 PM
connecting to cisco console seaking1 Linux - Hardware 3 06-09-2009 02:29 PM
connecting to a console port dlynch912 Solaris / OpenSolaris 2 01-15-2007 03:06 PM
Connecting a console to a monitor help! Mega Man X General 2 09-29-2006 09:15 PM
Problems connecting to Cisco Catalyst switch via Console irotas Linux - Networking 1 01-03-2006 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration