LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2005, 09:00 PM   #1
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Rep: Reputation: 0
dhcpcd problem in Gentoo


I installed gentoo using stage-1 and everything was going well. but when I booted my system up, dhcpcd didn't work! At first, I thought it was due to my network connection, so I set my eth0 as 192.168.0.1 then started sshd. It worked really well, I could connect my gentoo system through eth0.

at boot time, the message is like this
*Bring up eth0 [Ok]
* dhcp
*dhcpcd [!!]
'netmount' blah blah~

I checked my "dmesg | eth" and there was no suspicious messages.
and "dhcpcd -d eth0" just gives me "MAC address : ~~~~~" and doesn't start.
There was no messages. That drives me really crazy

Do you have any idea about this problem? Please help me.
I'm using 3c591x driver which really works well in my Ubuntu and Gentoo Live CD system.
 
Old 07-25-2005, 10:40 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you want to use static ips, make sure /etc/conf.d/net is configured as:
Code:
iface_eth0="192.168.0.2"
or some similar IP.
 
Old 07-25-2005, 11:15 PM   #3
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Maybe my explanation is wrong. What I meant is I want to use DHCP in gentoo,

I already succeeded in static ip, but this is not what I want. I wonder there's no difference in /etc/conf.d/net between liveCD and mine but DHCP doesn't work.

I've already searched similar question, but solution for that was all about network card problem.
Is there anything do I have to do with dhcpcd except the options mentioned in manual?
 
Old 07-25-2005, 11:25 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Did you "emerge dhcpcd"?
 
Old 07-25-2005, 11:59 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
youngtaek.oh, be aware that this didn't used to be needed. If using an old copy of the handbook (say 2004.3) it won't be mentioned.
The (always) current one online does - section 9.f
 
Old 07-27-2005, 12:08 AM   #6
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you matir and syg00 but I've already "emerged dhcpcd" through the internet

(internet worked well in live CD) and consulted "The Gentoo Linux 2005.0 Handbooks".

After emerging dhcpcd, I edited /etc/conf.d/net like this

Code:
config_eth0=("dhcp")
dhcp_eth0="nodns nontp nonis"
Is there something wrong?
There was networking configuration in section 8.b and I tried iface_eth0, too.
Maybe I need to use another dhcp client rather than dhcpcd.

Last edited by youngtaek.oh; 07-27-2005 at 12:15 AM.
 
Old 07-27-2005, 12:24 AM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I'm not sure why you have the parentheses around "dhcp". Aditionally, I'm not sure what the nodns nontp and nonis options are about, I didn't see those in the handbook, but perhaps I'm wrong.

Can you make dhcpcd work from the command line?
 
Old 07-27-2005, 01:41 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Unless you need those options remove the second line.
That section of the manual is *only* if you need to specify options with DHCP.

If you don't know (or aren't sure), you don't need them. Reread the network sections of the handbook.
 
Old 07-27-2005, 08:18 AM   #9
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Well, Parentheses in dhcp was strange to me, too. but it is on the manual.

and second option which is "nodns nontp ... " I already tried with or without this option but it didn't work.

and command line dhcpcd does not give me any messages.

I installed gentoo from stage-1, so I think that is due to some kind of options like USE flag or Kernel Options.

Do you guys know what kind of options do I have to include? Gentoo is really hard to me
 
Old 07-27-2005, 08:44 AM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try this as root:
Code:
ifconfig eth0 down
dhcpcd eth0
ifconfig eth0
And see if eth0 was able to obtain an IP address.
 
Old 07-29-2005, 07:19 PM   #11
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Well, I tried but It didn't work.

As my last resort, I installed "dhclient". sometimes it worked and sometimes not.

I thinks it is due to my kernel configuration. do you know what kind of kernel options do i have to set?

I'm learning too much due to gentoo
 
Old 07-29-2005, 08:03 PM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
The steps I outlined above didn't work? Those are as basic as dhcp requests get... it almost sounds like a problem with the server. One possible work around is to use 'dhcpcd -S', which helps with problems on some (broken) servers.
 
Old 07-29-2005, 08:57 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You *DO* have a DHCP server correctly configured somewhere I hope.
Silly question I know, but you need something to provide the service. If you have your router set for static IP, and/or you don't have the correct gateway address on the Gentoo box, your client is swimming around in circles.
 
Old 07-29-2005, 09:02 PM   #14
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Quote:
Originally posted by syg00
You *DO* have a DHCP server correctly configured somewhere I hope.
Silly question I know, but you need something to provide the service. If you have your router set for static IP, and/or you don't have the correct gateway address on the Gentoo box, your client is swimming around in circles.
Actually, gateway addresses are provided by the DHCP server, but otherwise, you make an excellent point.
 
Old 07-29-2005, 09:03 PM   #15
youngtaek.oh
LQ Newbie
 
Registered: Feb 2005
Location: Seoul, Republic of Korea
Distribution: Ubuntu, Gentoo
Posts: 8

Original Poster
Rep: Reputation: 0
Oh, I'm using xDSL which has DHCP function. it worked well in my ubuntu system and I don't think I can configure that xDSL modem. I'll try some more experiment then I'll ask you guys again thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using dhcpcd on gentoo slows down application startup in KDE drowstar Linux - Networking 1 07-29-2005 12:59 PM
Gentoo dhcpcd bootime lockup mconroy Linux - Newbie 1 07-09-2005 11:49 PM
SUSE dhcpcd problem vu_t_nguyen Linux - Wireless Networking 1 03-28-2005 08:22 PM
dhcpcd in Gentoo cj10111 Linux - Networking 5 02-21-2005 11:30 PM
DHCPCD / Slackware 8.0 Problem romanivice Linux - Networking 3 02-15-2002 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration