LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iwconfig works, but ifup does not (https://www.linuxquestions.org/questions/linux-networking-3/iwconfig-works-but-ifup-does-not-4175460066/)

rabidgnome 04-29-2013 04:16 PM

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.

rabidgnome 04-29-2013 05:24 PM

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!


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