A Linksys WRT54GL was loaded with OpenWRT firmware and configured as a router for the home network. The WRT54GL has WiFi 802.11g wireless and it was configured to integrate into the house wireless network which includes Apple AirPort Extreme and Expresses and a 2Wire DSL gateway. After much research on the OpenWRT Wiki and forums and some testing with old and new wireless cards, the configuration was completed.
WPA2 was chosen for encryption because it uses the AES algorithm. WPA2 means WPA with TKIP using the AES-CCMP algorithm. This is not compatible with older WiFi cards. As seen below, the configuration value in OpenWRT kamikazi distribution for WPA2 is "psk2". If both WPA and WPA2 are required for older cards, the configuration value is "psk+psk2". If you use a value containing "wpa", it will configure OpenWRT wireless requiring a RADIUS server.
/etc/config/wireless
config wifi-device wl0
option type broadcom
option channel 5
config wifi-iface
option device wl0
option network lan
option mode ap
option ssid OpenWrt
# option psk2 for only wpa2
# option psk+psk2 for wpa and wpa2
# required for older wifi cards
option encryption psk
option key "openwart"
To see all the config options and understand the meanings, study the shell script at /lib/wifi/broadcom.sh in OpenWRT on the WRT54GL.
To use the WRT as a simple access point and not a router, configure the /etc/config/network file as shown.
config 'interface' 'lan'
option 'type' 'bridge'
option 'ifname' 'eth0.0'
# option 'proto' 'static'
option 'proto' 'dhcp'
# option 'ipaddr' '192.168.1.1'
# option 'netmask' '255.255.255.0'
No comments:
Post a Comment