Results 1 to 2 of 2
Hi friends,
i get a wifi dhcp connection but cannot resolve names.
Look some steps:
Code:
me% iwconfig ath0 essid nnnnnnnnnnnn key xxxxxxxxxxxxxx
me% iwpriv ath0 authmode 1
me% iwconfig ...
- 02-03-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 35
DHCP connects but i cannot resolve names
Hi friends,
i get a wifi dhcp connection but cannot resolve names.
Look some steps:
Code:me% iwconfig ath0 essid nnnnnnnnnnnn key xxxxxxxxxxxxxx me% iwpriv ath0 authmode 1 me% iwconfig ath0 ap <hardware address> me% dhclient ath0 There is already a pid file /var/run/dhclient.pid with pid 5104 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.0.4 Copyright 2004-2006 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ wifi0: unknown hardware address type 801 wifi0: unknown hardware address type 801 Listening on LPF/ath0/<hardware address> Sending on LPF/ath0/<hardware address> Sending on Socket/fallback DHCPREQUEST on ath0 to 255.255.255.255 port 67 DHCPACK from 192.168.2.1 bound to 192.168.2.36 -- renewal in 164964 seconds. me% ping 64.233.187.99 PING 64.233.187.99 (64.233.187.99) 56(84) bytes of data. 64 bytes from 64.233.187.99: icmp_seq=3 ttl=240 time=194 ms 64 bytes from 64.233.187.99: icmp_seq=4 ttl=240 time=189 ms 64 bytes from 64.233.187.99: icmp_seq=7 ttl=240 time=186 ms ... ... ... me% ifconfig ath0 ath0 Link encap:Ethernet HWaddr <hardware address> inet addr:192.168.2.36 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::bla bla bla/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:572 errors:0 dropped:0 overruns:0 frame:0 TX packets:493 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:186953 (182.5 KiB) TX bytes:102942 (100.5 KiB) me% route add default gw 192.168.2.36 me% nslookup www.yahoo.com ;; connection timed out; no servers could be reached me% echo "its a debian etch, madwifi driver, atheros r5.... card :-) \ thanks in advance for any help ..."
- 02-04-2008 #2Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 658
I'd be suspicious of that line. First of all, dhcp should provide you with a default gateway, meaning this line is unrequired.Code:me% route add default gw 192.168.2.36
Also, you are setting your default gateway to be the machine you are working on. The IP used here should be the address of the device that actually had Internet access. (looks like 192.168.2.1).
Try not issuing the route command and see how you get on. After that you can try issuing it with the IP of the Internet gateway.
If you still run into problems; reset everything and try this:
Then post the output here and we might be able to help you out.Code:dhclient ath0 ifconfig ath0 route -n cat /etc/resolv.conf ping www.yahoo.com
Let us know how you get on.
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.


Reply With Quote
