Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Internet Completely Gone
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Fri Dec 29, 2006 10:50 pm    Post subject: Internet Completely Gone Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Fri Dec 29, 2006 11:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Dec 30, 2006 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 12:34 am    Post subject: Reply with quote

It has only one line.

Code:
domain home


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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Dec 30, 2006 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 12:47 am    Post subject: I'm having the exact same problem Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 12:57 am    Post subject: Reply with quote

That did it, thank you, I really appreiciate this.
_________________
BSD > SysV > Linux
BSD FTW!
Back to top
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 1:01 am    Post subject: Reply with quote

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
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 1:13 am    Post subject: Reply with quote

Which DHCPCD are you using? It may have something to do with that.
_________________
BSD > SysV > Linux
BSD FTW!
Back to top
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 1:26 am    Post subject: Reply with quote

2.0.8-r3
Back to top
View user's profile Send private message
baigsabeeh
Guru
Guru


Joined: 28 Sep 2005
Posts: 520
Location: North Brunswick, NJ

PostPosted: Sat Dec 30, 2006 1:36 am    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Dec 30, 2006 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Underdone
Apprentice
Apprentice


Joined: 22 Oct 2006
Posts: 154
Location: Albuquerque, NM

PostPosted: Sat Dec 30, 2006 1:46 am    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Dec 30, 2006 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 1:59 am    Post subject: Reply with quote

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
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Sat Dec 30, 2006 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 2:57 am    Post subject: Reply with quote

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 :roll:
Back to top
View user's profile Send private message
Underdone
Apprentice
Apprentice


Joined: 22 Oct 2006
Posts: 154
Location: Albuquerque, NM

PostPosted: Sat Dec 30, 2006 5:45 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
jadfw007
n00b
n00b


Joined: 30 Dec 2006
Posts: 10

PostPosted: Sat Dec 30, 2006 9:57 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Dec 30, 2006 10:53 am    Post subject: Reply with quote

baigsabeeh wrote:
It has only one line.
Code:
domain home

I never edited this file, so I don't even know if that's supposed to be there, but I'm guessing not.


dhcpcd (and baselayout for that matter) always put a header in that file to indicate what created it.
So I'm guessing that dhcpcd is not the issue here.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum