View previous topic :: View next topic |
Author |
Message |
prismbreak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/106996891540106c9f83f8b.jpg)
Joined: 23 Jan 2004 Posts: 23 Location: Waterloo, ON, Canada
|
Posted: Tue Feb 10, 2004 9:38 pm Post subject: How to make dhcpd run automatically? |
|
|
Hello,
I don't really know whats going on here... but my machine can't resolve any names until I run dhcpd manually as root:
Whats up with that?
before I run dhcpd, I can still ssh into the machine from another machine on my local network, so the network card is partially up, but it just doesn't resolve names.
How can I fix this so I don't have to run it manually every time?
Thanks,
John |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Vanquirius Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7348818914335f4b5010ec.jpg)
Joined: 14 Jun 2002 Posts: 1297 Location: Ethereal plains
|
Posted: Tue Feb 10, 2004 9:46 pm Post subject: |
|
|
Hello,
this is odd.
Make sure that /etc/conf.d/net is correctly set-up and net.eth0, net.ethX are in your runlevels.
A cheap workaround if connection is present but your DNS servers don't get added to /etc/resolv.conf until you run dhcpcd manually is to make a back-up of a working /etc/resolv.conf and have it be restored automatically everytime you boot up. (This is a workaround because 'automatic' and 'manual' network detection should be exactly the same)
For example, DNS is working properly and you have your DNS servers listed in /etc/resolv.conf. Copy it to /etc/resolv.conf.working. Add a line to /etc/conf.d/local.start: cp /etc/resolv.conf.working /etc/resolv.conf.
I don't think this really solves your problem, but it should spare the annoyance of dhcpcd'ing by hand everytime you boot. _________________ Hello. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Feb 10, 2004 9:48 pm Post subject: |
|
|
check your /etc/resolv.conf for the correct name servers.
seems to as if you have wrong ones in there which are replaced by calling dhcpcd - but otoh they should stay resistant after a reboot... ![Shocked 8O](images/smiles/icon_eek.gif) _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
prismbreak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/106996891540106c9f83f8b.jpg)
Joined: 23 Jan 2004 Posts: 23 Location: Waterloo, ON, Canada
|
Posted: Tue Feb 10, 2004 10:08 pm Post subject: |
|
|
Hey guys,
Thanks for the help. Checking resolv.conf was my first idea. I compare that file with another (working) machine and the files were identical. This is _before_ I ran dhcpd.
What do you mean about run-levels? I don't know how to check whatever that is.
Thanks,
John |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
prismbreak n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/106996891540106c9f83f8b.jpg)
Joined: 23 Jan 2004 Posts: 23 Location: Waterloo, ON, Canada
|
Posted: Tue Feb 10, 2004 10:27 pm Post subject: |
|
|
Hi,
Found the problem. I think my /etc/conf.d/net file was overwritten on my last emerge.
I just had to change it back to "iface_eth0="dhcp".
Thanks for your help.
John |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|