LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 11-24-2010, 02:49 PM   #1
wetweasel
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Rep: Reputation: 0
system tries to connect eth0 during init


everytime I boot up I have to wait until the dhcp request sent on eth0 times out - where is this configured, how can i tell gentoo not to try connecting via eth0 as part of init?
 
Old 11-24-2010, 04:41 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
/etc/rc.d/rc.inet1.conf hope that helps. or
Quote:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes" change to ""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

Last edited by Drakeo; 11-24-2010 at 04:43 PM.
 
1 members found this post helpful.
Old 11-24-2010, 05:22 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by Drakeo View Post
/etc/rc.d/rc.inet1.conf hope that helps. or
No, this will not work since Gentoo does not have a /etc/rc.d directory and no rc.inet1.conf file.

I've emerged ifplugd, this works for me (at least with Gentoo). I use this on my laptop since I normally use a wireless network and no cable is connected.
If you need to connect your computer in different networks, I'd recommend to look at netcfg, this allows for profiles for different networks. There are many excellent articles in the Gentoowiki.

Markus
 
1 members found this post helpful.
Old 11-25-2010, 02:11 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
The network configuration is done via /etc/conf.d/net, that's the place to look at. You will probably have a line for that interface (eth0) describing how to get an ip, which is via dhcp in this case.

You can do many things, but I'd suggest either to give it a fixed ip OR just do this and remove eth0 from all the runlevels:

Code:
rc-update del net.eth0
Which is even easier.

If you then need to start that nic you just need to do this:

Code:
/etc/init.d/net.eth0 start
And to stop it:

Code:
/etc/init.d/net.eth0 stop
Simple enough.
 
Old 11-25-2010, 02:40 AM   #5
wetweasel
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Original Poster
Rep: Reputation: 0
i92guboj:
Code:
andromeda ~ # rc-update del net.eth0
 * 'net.eth0' not found in any of the specified runlevels
markush: emerging ifplugd did indeed work, but I'm not really satisified by magical fixes, so I'd still like to know why net.eth0 was being init'ed despite not showing up under rc-update show

thanks for your time guys
 
Old 11-25-2010, 03:15 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Do you have something in your /etc/conf.d/local* script(s)?

In any case, what version of baselayout are you using?
 
Old 11-25-2010, 05:06 AM   #7
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
In addition to removing it from the default runlevel, if you are on a stable system check out /etc/conf.d/rc;
Code:
RC_PLUG_SERVICES="!net.eth0"
if you are running ~arch then check out /etc/rc.conf
Code:
rc_hotplug="!net.eth0"
 
1 members found this post helpful.
Old 11-25-2010, 03:41 PM   #8
wetweasel
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
Do you have something in your /etc/conf.d/local* script(s)?

In any case, what version of baselayout are you using?
those scripts are empty, save for a few stock comments.

baselayout version.. how can I check? the default one, baselayout-1 I guess?
 
Old 11-25-2010, 05:17 PM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by wetweasel View Post
those scripts are empty, save for a few stock comments.

baselayout version.. how can I check? the default one, baselayout-1 I guess?
If you have emerged gentoolkit, then here is how you check the version of a package
Code:
andrew@asus ~ $ equery list baselayout
 * Searching for baselayout ...
[IP-] [  ] sys-apps/baselayout-2.0.1-r1:0
Furthermore,
Code:
rc-update show
will show you what services start at what runlevels

Last edited by andrewthomas; 11-25-2010 at 05:35 PM. Reason: added rc-update show info
 
1 members found this post helpful.
Old 11-26-2010, 08:56 AM   #10
wetweasel
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Original Poster
Rep: Reputation: 0
equery list baselayout
Code:
[ Searching for package 'baselayout' in all categories among: ]
 * installed packages
[I--] [  ] sys-apps/baselayout-1.12.13 (0)
i am marking this as solved, as the problem has indeed been solved - the rest is just curiosity
 
  


Reply



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
Redhat linux9.0:System hangs,if gives init 3 or init 4 Sailaja Reddy Linux - Newbie 4 09-16-2004 03:19 AM
Redhat 9 halts at init eth0 stephanp2002 Red Hat 2 06-28-2004 05:27 PM
Problem withInternet, DHCP, connect with eth0 down work, connect with eth0 up not zowey Linux - Networking 1 03-12-2004 10:05 AM
eth0 output on init radix Slackware 3 03-11-2003 03:19 PM
init eth0 popcorn5714 Linux - Networking 1 02-06-2002 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 04:26 AM.

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