View previous topic :: View next topic |
Author |
Message |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Tue Dec 27, 2005 9:10 am Post subject: dhcpcd |
|
|
I followed the 2005.1 handbook to install and just rebooted (section 10.f). When the system is loading, two errors occur:
1.) Running dhcpcd ... [!!]
2.) ERROR: Problem starting needed services.
"netmount" was not started.
How are these errors fixed? _________________ gentoo good to be true |
|
Back to top |
|
 |
fvant Guru

Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Tue Dec 27, 2005 9:45 am Post subject: |
|
|
you probably also saw this errormessage ?
Code: | SIOCSIFADDR: No such device
eth0: unknown interface: No such device |
In that case, the kernel could find the driver for your network card. Review your 'make menuconfig' and make sure you add the correct driver to the kernel (I'd not compile it as a module). |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Tue Dec 27, 2005 9:48 am Post subject: |
|
|
I did not see this error message. _________________ gentoo good to be true |
|
Back to top |
|
 |
fvant Guru

Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Tue Dec 27, 2005 10:05 am Post subject: |
|
|
the network interface is up (check with ifconfig) ?
if not, can you start it manually ? |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Tue Dec 27, 2005 10:28 am Post subject: |
|
|
The network interface is not running. I was able to bring it up with "ifconfig eth0 up". I then tried "dhcpcd eth0" which brought eth0 back down. _________________ gentoo good to be true |
|
Back to top |
|
 |
fvant Guru

Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Tue Dec 27, 2005 2:52 pm Post subject: |
|
|
So a static IP adress you assigned with ifconfig works but dhcpcd not, is the DHCP server running ? |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Tue Dec 27, 2005 8:36 pm Post subject: |
|
|
I set /etc/conf.d/net to statically assign an IP.
config_eth0=( "192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" ) #I have also tried 192.168.1.254
This takes care of the error messages when rebooting the machine. ifconfig eth0 shows eth0 as having an inet addr: 192.168.1.13
ping -c 3 192.168.1.1 gives "network unreachable"
ping -c 3 www.yahoo.com gives "unknown host www.yahoo.com"
*I just finished a fresh install using 2005.1 universal live cd w/ 2005.1 handbook. Network configuration was a breeze (none necessary, "it just worked") and worked for entire install. _________________ gentoo good to be true |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Tue Dec 27, 2005 11:37 pm Post subject: |
|
|
config_eth0=( "192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth0=( "default via 192.168.1.1" ) #I have also tried 192.168.1.254
Using the above for /etc/conf.d/net, I am now able to ping my router but unable to ping www.yahoo.com. The router/internet connection is fine. I just hooked up a FreeBSD box and Internet is working. (That's how I am using this forum) _________________ gentoo good to be true |
|
Back to top |
|
 |
JoseJX Retired Dev

Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Wed Dec 28, 2005 7:26 am Post subject: |
|
|
yes. I emerged dhcpcd during the install. Also, when the computer is booting up, it runs dhcpcd (as I stated in my original post).
I have also tried the following command when logged on as root:
after
and I don't receive any error messages like "command not found" _________________ gentoo good to be true |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Wed Dec 28, 2005 6:33 pm Post subject: |
|
|
what are ALL of the relevant configuration files I should check to see if the computer is configured properly for use of eth0 to connect to the Internet. I know of, /etc/conf.d/hostname, /etc/conf.d/domainname, /etc/resolv.conf
how should /etc/conf.d/domainname look? should the override dhcp option be set? if not, what value should it have or should it be commented out? _________________ gentoo good to be true |
|
Back to top |
|
 |
nss Guru

Joined: 04 Oct 2004 Posts: 389
|
Posted: Wed Dec 28, 2005 9:50 pm Post subject: |
|
|
my ethernet card was only configured as a module (sun gem). After marking it with a star and recompiling, the network works and Internet. Quick question, should I run emerge with root or as a regular user? _________________ gentoo good to be true |
|
Back to top |
|
 |
fb l33t


Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Thu Dec 29, 2005 5:10 am Post subject: |
|
|
bobotoes wrote: | Quick question, should I run emerge with root or as a regular user? |
You cannot run "emerge sync" or "emerge world" as a user.
If you are in the portage group you can do "emerge -f some-package", "emerge -p --some-option"
and "emerge -s something" and that's about it. So for installation and updating you need to be root.
For running "emerge -puDv world" or checking a package for its requirements and so on, you can do
that as a normal user provided you are in the "portage" group. |
|
Back to top |
|
 |
|