Did you try rerunning?Code:netconfig
I'm running slack 9.1 and have a network connection setup by DHCP. The problem is that when I boot up, DHCP gives me my IP happily, and I can ping IP's, but DNS isn't set up at all. Resolv.conf is empty. The really odd thing is that if I run
dhcpcd eth0
then it all works fine. The nameservers are added to resolv.conf and i'm away. So I'm not too sure what to do.
Any ideas?
Cheers
Chris
Did you try rerunning?Code:netconfig
Yup, I've run it a couple of times.
Everything looks fine. rc.inet1.conf is all setup properly, it says to use DHCP for eth0, and has no other settings in there. I haven't altered any of the start up scripts at all, so I really have no idea why its doing this.
This has only happened since I ran netconfig to force eth0 to use a static IP. I don't need a static IP anymore so switched it back to DHCP, and now its broken.
Cheers
CP
Crappy Fix time!
add dhcpcd eth0
to rc.local
Dhcpcd isn't running on that device if it lets you do that, it should say already running or something like that...
Thats what I was thinking... But then I was trying to work out how the hell its getting the IP. I can't see the IP addy written in any config files at all, I've greped for it in /etc and all other subdirs of /etc. This is really confusing the hell out of me. I'd like to fix it properly I thought about the rc.local file, but was really just wondering what could cause htis.
Cheers
CP
/etc/dhcpc/dhcpcd-eth0.info
Yeah it is in there, and thats all.
Now this is odd. I haven't done anything to my config, I haven't re-run netconfig, and its working. I have no idea how or why, but I'm not one to argue
Cheers
CP
I love that when it happens.
Bookmarks