Originally posted by kermit
I changed the router to 192.168.123.1 but it's still the same. The routing table was:
After that I disabled eth0 (even though the cable is unplugged) and get:
dest gateway genmask flags metric ref use iface
192.168.123.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.123.1 0.0.0.0 UG 0 0 0 wlan0
Notice that the connection to the AP looks like it's ok: The router and the AP are different devices, and the dhclient wlan0 works fine. I changed the password to try and could not get a valid DHCP ip address.
What do you get back when you run iwconfig?
Also, you might add the AP IP into your route table as a host entry:
route add 192.168.123.1 wlan0
route add default gw 192.168.123.1
This last command may give you an error about that route already existing, that's okay.
Then give your ping command another try, but use traceroute
If you run dhcpcd wlan0, this should be automatically set up. When you say you changed the password and now cannot get DHCP address are you connected?