[Ewrt-devel] client mode/dhcp

Don Park
Mon Aug 30 14:24:37 PDT 2004


dou! this was in my draft folder when I thought i had already mailed it
last night.

Im trying to use my 54G (with ewrt firmware) to connect to an AP with
essid of "NETGEAR" and get a DHCP address.

The first step is to set wireless "client mode". I have to use the HTML
interface for this as I havent found the right command to the 'wl'
command. Does someone know how to do this?

Once that is done, the commands are as follows:
# wl scan
# wl scanresults
SSID: "NETGEAR"
Mode: Managed   RSSI: -89 dBm   noise: -89 dBm  Channel: 11
BSSID: 00:09:5B:72:84:20        Capability: ESS Pollable
Supported Rates: [ 1(b) 2(b) 5.5 11 ]


# wl status
eth1: Invalid argument
Not associated. Last associated with SSID: ""
# wl join NETGEAR
# wl status
SSID: "NETGEAR"
Mode: Managed   RSSI: -91 dBm   noise: -91 dBm  Channel: 11
BSSID: 00:09:5B:72:84:20        Capability: ESS Pollable
Supported Rates: [ 1(b) 2(b) 5.5 11 ]


# udhcpc -i eth1
info, udhcp client (v0.9.8) started
error, script /usr/share/udhcpc/default.script failed: No such file or
directory
info, Sending discover... (75)
info, Sending discover... (77)

at this point, udhcpc just tries forever to get an address.

(update) the problem is eth1. because its part of a bridge  i dont need to
request DHCP. it does actually work to say udhcpc -i br0 but its not that
useful. I have yet to see if a PC with a wired connection to the WRT can
actually get a DHCP address through this bridged connection to the foreign
AP.


More information about the Ewrt-devel mailing list