The system wide start up script is not an effective solution. If the the network gets restarted for any reason, the fix in the start up script does not get made.
- Code: Select all
rm /etc/local.d/01network.start
I disabled interface management by NetworkManager and tried to manage the interfaces manually.
- Code: Select all
sed -i -e 's/managed=true/managed=false/' /etc/NetworkManager/nm-system-settings.conf
I failed at that probably because I did not know how to do it correctly. I decided to use wpa_supplicant alone.
- Code: Select all
/etc/init.d/NetworkManager stop
/etc/init.d/net.wlan0 restart
rc-update delete NetworkManager
rc-update add net.wlan0 default
It did not work right away because the configuration files were not correct. Kept getting the following warning/error:
WARNING: net.wlan0 has started, but is inactive
Finally got it to work using the following configuration files.
# Create /etc/conf.d/net
- Code: Select all
echo 'dns_servers="208.67.220.220 208.67.222.222"
routes_bingo="default via 192.168.0.5"
config_bingo="192.168.0.20/24"
# Needed for RTL8187 based adapter to be stable.
iwconfig_wlan0="rate 11M fixed"
# Select wpa_supplicant
modules="wpa_supplicant"
# Tell wpa_supplicant what driver to use (generic for rtl8187)
wpa_supplicant_wlan0="-Dwext"' > /etc/conf.d/net
# Create /etc/wpa_supplicant/wpa_supplicant.conf
- Code: Select all
echo '# This line enables the use of wpa_cli
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# Plaintext connection (no WPA, no IEEE 802.1X).
network={
ssid="bingo"
key_mgmt=NONE
priority=0
}' > /etc/wpa_supplicant/wpa_supplicant.conf
I still get the warning but the network works fine. For configuration, you just have to remember that for wpa_supplicant, you have to configure networks globally and not by interface.
NetworkManager is under rapid development, it probably won't be too long before we will be able to do complete network configuration using their configuration editor.