perhaps you ought to run the command
--- dhcpcd <interface>
Your post is somewhat lacking in details, such as what commands you're issuing, and what the output of those commands is, but on a rare occasion I can figure out what you're doing anyhow...
It sounds like, from what you've described, that you're able to authenticate with the router, but unable to get an IP.
If this is the case, I would expect your output to resemble this ---
Code:
bash-3.1# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf&
[2] 27090
bash-3.1# CTRL-EVENT-SCAN-RESULTS
Trying to associate with 15:2c:35:62:b5:8c (SSID='|+++|' freq=2437 MHz)
Associated with 15:2c:35:62:b5:8c
WPA: Key negotiation completed with 15:2c:35:62:b5:8c [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 15:2c:35:62:b5:8c completed (auth) [id=0 id_str=]
bash-3.1#
this authenticates my wireless card with the router using the key I set on the router.
However, this does NOT get me an IP address.
Code:
bash-3.1# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:12:5d:18:bc:51
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22882270 errors:0 dropped:0 overruns:0 frame:0
TX packets:16721414 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:835568050 (796.8 MiB) TX bytes:1916483190 (1.7 GiB)
To get the IP address, I run dhcpcd wlan0
Code:
bash-3.1# dhcpcd wlan0
bash-3.1# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:12:5d:18:bc:51
inet addr:192.168.1.114 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22882272 errors:0 dropped:0 overruns:0 frame:0
TX packets:16721421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:835568736 (796.8 MiB) TX bytes:1916484234 (1.7 GiB)
bash-3.1#