This may be symantics, but dhclient does not connect you to your access point. That is what iwconfig is for. dhclient merely requests an IP lease from your dhcp server. This will not work unless you have successfully authenticated and associated with your network first.
As for your "route add" problem, the correct syntax is:
(not "gate way" as 2 seperate words). The man page would have cleared that up.Code:route add default gw 192.168.1.1
I would open up wireshark and see if your dhcp request packet is going out and if you receive a dhcp ack from the server, then proceed accordingly.




