ASUS WL-500gx in client mode
Hi,
I would like to connect to my ISP via WLAN with DHCP and NAT enabled. I can do it manually by issuing following commands:
brctl delif br0 eth1 (maybe its not necessary, but I read it somewhere)
wl ap 0 (no idea what I am doing)
wl scan (not necesarry)
wl scanresults (because I know the SSID, but I just want to be sure...)
wl join SSID key ispkey
udhcpc -i eth1 -s /bin/true
ifconfig eth1 A.B.C.D netmask (not from DHCP but I know myself)
route add default gw A.B.C.D (also not from DHCP, but I know myself)
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
As you can read my message, this works pretty well, but how do I have to set up my router to do this every bootup???? And why do I only get an IP-Address from udhcpc and no other stuff (gateway, dns etc...) and why do I have to set these values by myself?
Can anybody help me with this or do I have to put a Debian on a USB stick?
Regards
Helge.