The user fyi on the OpenWRT forum suggested that using WEP is a bad idea for bridges and that using WDS instead could fix this. Did you try that?
In reviewing your configs and comaring them to the tutorial you linked, it looks like you might be missing a whole section. In /etc/config/wireless
you need two sections titled config 'wifi-iface'
. Both of them are for the same device but one will have option 'mode' 'ap'
and the other option 'mode' 'sta'
. It looks like you only have the 'sta' one on your configs. Can you post a full config file dump from both units?
Option 1
Just edit /etc/network/interfaces
and write:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid {ssid}
wpa-psk {password}
After that write and close file and use command:
sudo dhclient wlan0
Replace {ssid} and {password} with your respective WiFi SSID and password.
Option 2
Provided you replace your Wireless network card, Wi-Fi Network name, and Wi-FI Password this should also work.
I am using:
- Wireless network card is wlan0
- Wireless network is "Wifi2Home"
- Wireless network key is ASCII code ABCDE12345
First, get your WiFi card up and running:
sudo ifconfig wlan0 up
Now scan for a list of WiFi networks in range:
sudo iwlist wlan0 scan
This will show you a list of wireless networks, pick yours from the list:
sudo iwconfig wlan0 essid Wifi2Home key s:ABCDE12345
To obtain the IP address, now request it with the Dynamic Host Client:
sudo dhclient wlan0
You should then be connected to the WiFi network. The first option is better, because it will be able to run as a cron
job to start up the wifi whenever you need it going. If you need to turn off your WiFi for whatever reason, just type:
sudo ifconfig wlan0 down
FYI
I have also seen people using alternative commands. I use Debian, Solaris and OSX, so I'm not 100% sure if they are the same on Ubuntu. But here they are:
sudo ifup wlan0
is the same as sudo ifconfig wlan0 up
sudo ifdown wlan0
is the same as sudo ifconfig wlan down
Best Answer
1. correct form of the command
Try changing your iwconfig line to this:
2. wpa_supplicant
If the above command is correct and you're still receiving an error message, make sure that you have the wpa_supplicant package installed.
3. NetworkManager
I'd use NetworkManager over iwconfig when dealing with wireless devices. To connect via command line using NetworkManager in runlevel 3 you can use the following command:
References