LinuxQuestions.org
Help answer threads with 0 replies.
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 04-29-2013, 05:16 PM   #1
rabidgnome
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
iwconfig works, but ifup does not


I have minimal debian wheezy installation on my laptop, and I am trying to get wifi working via the command line. I have wifi working at home where I use WPA2 with the entry

iface wifi_home inet dhcp
wpa-ssid "Home Network"
wpa-psk "Home Password"

in /etc/netowrk/interfaces. I use the command 'sudo ifup wlan0=wifi_home'. However, my university wifi does not use secure wifi. So I tried the entry

iface wifi_school inet dhcp
wireless-essid "School Network"

but 'sudo ifup wlan0=wifi_school' fails to get a dhcp lease. The odd thing is that at school the commands

sudo ip link set wlan0 up
sudo iwconfig wlan0 essid "School Network"
dhclient wlan0

work perfectly. Any idea where I have gone wrong? I assume my entry for wifi_school is incorrect, but it matches the guides I have found on the web. Any help is appreciated. I think I just need to RTFM, but I can not seem to find the right FM. So a link would be most appreciated.
 
Old 04-29-2013, 06:24 PM   #2
rabidgnome
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok I think I figured it out. Even though quotes around the network id works with wpa-ssid, the quotes around the id break wireless-essid. This was found via trial and error. If someone could confirm this is correct, I would appreciate it. Thanks!
 
  


Reply


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
IPv6 only works as configured when ifdown/ifup eth0 - not on reboot maxrate Linux - Networking 3 11-02-2009 06:42 PM
iwlist scan works but ifup wlan0 fails InciWinciSpider Linux - Wireless Networking 4 02-17-2008 04:12 PM
Ubuntu wifi works through ifup/down, not knetworkmanager, wlassistant moonburn Linux - Wireless Networking 0 11-30-2006 10:47 PM
ISA modem works except with ifup or rh-config-network Simon Bridge Linux - Networking 3 05-25-2005 10:27 PM
ifup eth1 gives error but successfully ups and works why? cranium2004 Linux - Networking 2 04-06-2005 07:49 AM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration