View previous topic :: View next topic |
Author |
Message |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Fri Dec 29, 2006 10:50 pm Post subject: Internet Completely Gone |
|
|
I recently upgraded to DHCPCD 3.0.8-r1 and now my internet is gone.
I've tried ifconfig to check my interfaces and they are all configured fine. I've checked using ping to google and it always gives me unknown host. I also checked the firewire ehternet module to make sure it wasn't loaded.
I'm at a loss here.
Anybody have any ideas? Do you need more information? _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Dec 29, 2006 11:03 pm Post subject: |
|
|
try to ping a known publicly accessible ip, say 66.41.120.249 (that's mine)
if you get responses, the problem is restricted to nameserver settings.
have you tried running dhcpcd on the console and seeing what it said?
do you need to etc-update ? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 12:11 am Post subject: |
|
|
Pinging the IP you posted works. So, I guess it's a problem with nameserver settings. What do I need to do to fix those? I've never encountered this before. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Dec 30, 2006 12:16 am Post subject: |
|
|
the settings are in /etc/resolv.conf
what's in that file? anything? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 12:34 am Post subject: |
|
|
It has only one line.
I never edited this file, so I don't even know if that's supposed to be there, but I'm guessing not. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Dec 30, 2006 12:46 am Post subject: |
|
|
it has to be there, baigsabeeh. if it isn't your computer won't know which ip the namserver is. mine looks like this
Code: | nameserver 192.168.1.1 |
of course, that won't work for you. do you know the source of your name resolution? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 12:47 am Post subject: I'm having the exact same problem |
|
|
I can ping/browse to anything using an IP address, but DNS doesn't work. I created /etc/resolv.conf and added a nameserver XXX.XXX.XXX.XXX line to it.
Problem is, this file gets deleted every time the interface starts! I did find a /etc/resolvconf/interfaces/ra0 file (I'm connecting via RT2500 wireless) which had a nameserver line already in it with the correct IP address, but this didn't seem to be doing the trick either. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 12:52 am Post subject: |
|
|
erik258 wrote: | it has to be there, baigsabeeh. if it isn't your computer won't know which ip the namserver is. mine looks like this
Code: | nameserver 192.168.1.1 |
of course, that won't work for you. do you know the source of your name resolution? |
Mine is 192.168.2.1. I'll add this and give it a go. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 12:57 am Post subject: |
|
|
That did it, thank you, I really appreiciate this. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 1:01 am Post subject: |
|
|
My apologies for crashing your thread, but it's likely we're having the exact same problem. Check for the presence of your resolv.conf file after you restart the interface and let me know if yours is getting deleted too.
I also found the file /etc/resolv.conf.ra0.sv which also seems to be getting deleted or re-generated every time the interface starts. It's very confusing and extremely frustrating. Any help would be greatly appreciated. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 1:13 am Post subject: |
|
|
Which DHCPCD are you using? It may have something to do with that. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 1:26 am Post subject: |
|
|
2.0.8-r3 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
baigsabeeh Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/199800717945be6b8d5e3b1.jpg)
Joined: 28 Sep 2005 Posts: 520 Location: North Brunswick, NJ
|
Posted: Sat Dec 30, 2006 1:36 am Post subject: |
|
|
I'm using 3.0.8 and I don't know if that might have something to do with it. _________________ BSD > SysV > Linux
BSD FTW! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Dec 30, 2006 1:43 am Post subject: |
|
|
the network device doesn't need to be restarted for changes to resolv.conf to take effect. in fact, dhcp will overwrite resov.conf so if you run that it will destroy your changes.
instead, run dhcp and then edit /etc/resolv.conf.[/list] _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 1:45 am Post subject: |
|
|
I'll emerge -uD'ing dhpcd and see if that helps. In the meantime, here is my /etc/conf.d/net
Code: | routes_ra0=( "default gw 192.168.11.1" )
dns_servers_ra0=( "192.168.11.1" )
|
and my /etc/conf.d/wireless
Code: | iwpriv_00160114240E=(
"set AuthMode=WPAPSK"
"set EncrypType=AES" # You may need to put AES here
"set WPAPSK=my_ascii_password"
)
key_00160114240E="s:my_ascii_password enc open"
config_00160114240E=( "dhcp" )
dhcpcd_00160114240E="-t 10"
routes_00160114240E=()
fallback_00160114240E=() |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Underdone Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 22 Oct 2006 Posts: 154 Location: Albuquerque, NM
|
Posted: Sat Dec 30, 2006 1:46 am Post subject: |
|
|
baigsabeeh wrote: | I'm using 3.0.8 and I don't know if that might have something to do with it. | It wouldn't suprise me if that was the problem.
If possible try to boot from the livecd and emerge dhcpcd, and copy the resolv.conf file while your at it. (Assuming internet works with the livecd) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Dec 30, 2006 1:52 am Post subject: |
|
|
that's not going to do any good; the nameserver line is already known. _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 1:59 am Post subject: |
|
|
erik258 wrote: | the network device doesn't need to be restarted for changes to resolv.conf to take effect. in fact, dhcp will overwrite resov.conf so if you run that it will destroy your changes.
instead, run dhcp and then edit /etc/resolv.conf.[/list] |
That works, but only until I reboot. Then dhcp re-starts and deletes my file. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
erik258 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/18778702754589d89edad52.gif)
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Sat Dec 30, 2006 2:05 am Post subject: |
|
|
i assume it used to work, so i am left with no option but to blame your new version of dhcpcd. downgrade? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 2:16 am Post subject: |
|
|
erik258 wrote: | i assume it used to work, so i am left with no option but to blame your new version of dhcpcd. downgrade? |
Actually this is a fresh install. With what apparently is an older version of dhcpd out of the box. I haven't emerge -uD'ed it yet. That's next on my list to try. I'll post the results after I do it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 2:57 am Post subject: |
|
|
Well I emerged dhcpcd and my resolv.conf file is still getting cleared out every time I reboot. It's not getting deleted anymore since I ran
Code: | rc-update del NetworkManager |
but my nameserver line is getting deleted. Based on other threads I've read, I also tried
Code: |
rm /etc/resolv.conf
touch /etc/resolv.conf
|
Just in case the file was a pre-existing symlink. No go there either. Any more ideas? I'm half-temped to just hack it and write a script that generates resolv.conf every time I log on ![Rolling Eyes :roll:](images/smiles/icon_rolleyes.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Underdone Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 22 Oct 2006 Posts: 154 Location: Albuquerque, NM
|
Posted: Sat Dec 30, 2006 5:45 am Post subject: |
|
|
Are you editing the resolv.conf file as root?
I also noticed something interesting in my resolv.conf file
Code: | # Generated by dhcpcd for interface ath0 |
If i'm understanding this correctly you shouldn't have to setup the file yourself if you're using dhcp
Also, did you update all of your config files? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 6:58 am Post subject: |
|
|
Yup, I'm actually logged in as root as I'm doing all of this. You may be right about dhcp. I'm used to DNS discovery happening automatically, so I would've
assumed that none of this would be necessary. Do you see anything in my /etc/conf.d/net or wireless files that might be overriding dhcp?
As for updating config files, which ones are you referring to? It wouldn't surprise me at all if I missed one or two. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jadfw007 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Dec 2006 Posts: 10
|
Posted: Sat Dec 30, 2006 9:57 am Post subject: |
|
|
I gave up trying to find an elegant solution.
Contents of /etc/init.d/resolv-conf-hack.sh:
Code: | chmod 644 /etc/resolv.conf
echo "nameserver 192.168.11.1" >/etc/resolv.conf |
then...
Code: | chmod +x /etc/init.d/resolv-conf-hack.sh
rc-update add resolv-conf-hack.sh default |
Now it works. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|