Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Dec 27, 2005 9:10 am    Post subject: dhcpcd Reply with quote

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


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Tue Dec 27, 2005 9:45 am    Post subject: Reply with quote

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


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Dec 27, 2005 9:48 am    Post subject: Reply with quote

I did not see this error message.
_________________
gentoo good to be true
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Tue Dec 27, 2005 10:05 am    Post subject: Reply with quote

the network interface is up (check with ifconfig) ?

if not, can you start it manually ?
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Dec 27, 2005 10:28 am    Post subject: Reply with quote

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


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Tue Dec 27, 2005 2:52 pm    Post subject: Reply with quote

So a static IP adress you assigned with ifconfig works but dhcpcd not, is the DHCP server running ?
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Dec 27, 2005 8:36 pm    Post subject: Reply with quote

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


Joined: 04 Oct 2004
Posts: 389

PostPosted: Tue Dec 27, 2005 11:37 pm    Post subject: Reply with quote

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


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 28, 2005 1:37 am    Post subject: Reply with quote

Are you sure that you've emerged dhcpcd? The dhcp client isn't installed by default.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Dec 28, 2005 7:26 am    Post subject: Reply with quote

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:
Code:
dhcpcd eth0

after
Code:
ifconfig eth0 up


and I don't receive any error messages like "command not found"
_________________
gentoo good to be true
Back to top
View user's profile Send private message
nss
Guru
Guru


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Dec 28, 2005 6:33 pm    Post subject: Reply with quote

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


Joined: 04 Oct 2004
Posts: 389

PostPosted: Wed Dec 28, 2005 9:50 pm    Post subject: Reply with quote

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


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Dec 29, 2005 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
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