Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-29-2013, 04:16 PM   #1
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, 05:24 PM   #2
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!


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

All times are GMT -5. The time now is 01:09 PM.

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