* [gentoo-user] DHClient Woes - No Modules Loaded?
@ 2006-10-01 18:44 Lord Sauron
2006-10-01 20:48 ` Jan-Hendrik Zab
0 siblings, 1 reply; 10+ messages in thread
From: Lord Sauron @ 2006-10-01 18:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2367 bytes --]
Proof:
lsauron@the-dark-tower:~$ grep -nr "dhclient" ./archival
lsauron@the-dark-tower:~$
I have been getting annoyed at dhcpcd, which will take 180 seconds to
ping even if there isn't a networking cable in my NIC. I use a laptop,
so you can easily speculate how I got so annoyed.
I know that Kubuntu had the ability to detect whether there was a cable
in my laptop and ping accordingly. I looked at my Kubuntu workstation
and found that it's using dhclient. I installed dhcpd on my laptop and
tried my best to make it work. I got the following:
localhost lsauron # rc-update -s
855resolution |
acpid | battery default
apache2 |
apmd|
apmiser|
aumix |
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | boot
consolefont | boot
crypto-loop |
cupsd | battery default
cvsd |
dbus|
dhcpd| <-- I understand this runs a DHCP server, not a client.
dhcrelay |
distccd|
domainname | battery boot default
esound |
famd|
gkrellmd|
gpm|
hald| default
hdapsd|boot default
hdparm|
hostname|boot
hotplug|
inetd|
keymaps| boot
laptop_mode|battery boot default
lisa|
local|battery default nonetwork
localmount|boot
modules|boot
mysql|
net.eth0|battery default
net.lo | boot
netmount |battery default
nscd|
numlock|
portmap|
pwcheck|
reslisa|
rmologin|boot
rsyncd|
samba|battery default
saslauthd|
spamd|
splash|
sshd|
syslog-ng| battery default
urandom| boot
vixie-cron|battery default
xdm | battery default
If there's anything wrong there, I'd love to know : )
Also, just as proof that I'm not a total and complete idiot:
localhost lsauron # cat /etc/conf.d/net
iface_eth0="dhclient"
iface_eth1="dhclient"
iface_eth2="dhclient"
iface_eth3="dhclient"
iface_eth4="dhclient"
dhclient_eth0=""
Once again, if I'm doing anything wrong... please tell me.
I did check the gentoo-wiki, and found a most excellent how-to for
running dhcpd to make my own dhcp server, however, comcast hates it
when people do stuff like that because it compromises their network
speed (what's left of it, anyways).
I've done my job, and tried my best. I now look to the more wise and
experienced to help. Thanks in advance for any insights!
(PS: whoever made rc-update, you're a genius! Wish I had it on
Kubuntu!)
--
http://lordsauronthegreat.googlepages.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-01 18:44 [gentoo-user] DHClient Woes - No Modules Loaded? Lord Sauron
@ 2006-10-01 20:48 ` Jan-Hendrik Zab
2006-10-02 4:45 ` Lord Sauron
0 siblings, 1 reply; 10+ messages in thread
From: Jan-Hendrik Zab @ 2006-10-01 20:48 UTC (permalink / raw
To: gentoo-user
On Sun, 1 Oct 2006 11:44:42 -0700
Lord Sauron <lordsauronthegreat@gmail.com> wrote:
> Proof:
> lsauron@the-dark-tower:~$ grep -nr "dhclient" ./archival
> lsauron@the-dark-tower:~$
>
> I have been getting annoyed at dhcpcd, which will take 180 seconds to
> ping even if there isn't a networking cable in my NIC. I use a laptop,
> so you can easily speculate how I got so annoyed.
>
> I know that Kubuntu had the ability to detect whether there was a cable
> in my laptop and ping accordingly. I looked at my Kubuntu workstation
> and found that it's using dhclient. I installed dhcpd on my laptop and
> tried my best to make it work. I got the following:
[snip]
Well, maybe I just misunderstood you, anyway... You could try pump
(the fastest/best dhcp client I know of :-) and ifplug, the latter
starts the wired ethernet interfaces when they get a link.
PPS.
The iface_eth interface is completely out of date, take a _very_ good
look at `/etc/conf.d/net.example'.
Greets,
Jan-Hendrik Zab
--
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-01 20:48 ` Jan-Hendrik Zab
@ 2006-10-02 4:45 ` Lord Sauron
2006-10-02 4:56 ` Ryan Tandy
2006-10-02 8:27 ` Neil Bothwick
0 siblings, 2 replies; 10+ messages in thread
From: Lord Sauron @ 2006-10-02 4:45 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]
On Sunday 01 October 2006 13:48, Jan-Hendrik Zab wrote:
> On Sun, 1 Oct 2006 11:44:42 -0700
>
> Lord Sauron <lordsauronthegreat@gmail.com> wrote:
> > Proof:
> > lsauron@the-dark-tower:~$ grep -nr "dhclient" ./archival
> > lsauron@the-dark-tower:~$
> >
> > I have been getting annoyed at dhcpcd, which will take 180 seconds
> > to ping even if there isn't a networking cable in my NIC. I use a
> > laptop, so you can easily speculate how I got so annoyed.
> >
> > I know that Kubuntu had the ability to detect whether there was a
> > cable in my laptop and ping accordingly. I looked at my Kubuntu
> > workstation and found that it's using dhclient. I installed dhcpd
> > on my laptop and tried my best to make it work. I got the
> > following:
>
> [snip]
>
> Well, maybe I just misunderstood you, anyway... You could try pump
> (the fastest/best dhcp client I know of :-) and ifplug, the latter
> starts the wired ethernet interfaces when they get a link.
Back with DHCPCD, but I haven't unmerged dhclient yet ; )
I'm going to take your word and try ifplug, however, I installed it and
it doesn't work. Still pings up /dev/null for all it's doing. I even
went to rc-update and had it start at boot, though that didn't work.
My guess is that it's trying to use net.lo (the loopback device) and
thinks that that's plugged in therefore it tries to ping on everything
else.
Any suggestions?
> PPS.
> The iface_eth interface is completely out of date, take a _very_ good
> look at `/etc/conf.d/net.example'.
I did, I updated it as best I could.
--
http://lordsauronthegreat.googlepages.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 4:45 ` Lord Sauron
@ 2006-10-02 4:56 ` Ryan Tandy
2006-10-02 5:02 ` Lord Sauron
2006-10-02 8:27 ` Neil Bothwick
1 sibling, 1 reply; 10+ messages in thread
From: Ryan Tandy @ 2006-10-02 4:56 UTC (permalink / raw
To: gentoo-user
Lord Sauron wrote:
> On Sunday 01 October 2006 13:48, Jan-Hendrik Zab wrote:
>> PPS.
>> The iface_eth interface is completely out of date, take a _very_ good
>> look at `/etc/conf.d/net.example'.
>
> I did, I updated it as best I could.
>
Well, could we take a look at it?
$ grep -v '^#' /etc/conf.d/net
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 4:56 ` Ryan Tandy
@ 2006-10-02 5:02 ` Lord Sauron
2006-10-02 6:53 ` Mick
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Lord Sauron @ 2006-10-02 5:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
On Sunday 01 October 2006 21:56, Ryan Tandy wrote:
> Lord Sauron wrote:
> > On Sunday 01 October 2006 13:48, Jan-Hendrik Zab wrote:
> >> PPS.
> >> The iface_eth interface is completely out of date, take a _very_
> >> good look at `/etc/conf.d/net.example'.
> >
> > I did, I updated it as best I could.
>
> Well, could we take a look at it?
>
> $ grep -v '^#' /etc/conf.d/net
modules_eth0=( "dhcpcd" )
iface_eth0=( "dhcpcd" )
config_eth0=( "dhcp" )
Not exactly sure if it's totally right, however, it doesn't give me an
error message, though I suspect I'm really close to getting one ; )
Hazarding a guess as to what would get ifplugd to work:
modules_eth0=( "dhcpcd", "ifplug" ) # or ifplugd, I don't really know
# which
Thanks for your time!
--
http://lordsauronthegreat.googlepages.com/
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 5:02 ` Lord Sauron
@ 2006-10-02 6:53 ` Mick
2006-10-02 8:27 ` Neil Bothwick
2006-10-04 22:41 ` Richard Fish
2 siblings, 0 replies; 10+ messages in thread
From: Mick @ 2006-10-02 6:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]
On Monday 02 October 2006 06:02, Lord Sauron wrote:
> modules_eth0=( "dhcpcd" )
> iface_eth0=( "dhcpcd" )
> config_eth0=( "dhcp" )
>
> Not exactly sure if it's totally right, however, it doesn't give me an
> error message, though I suspect I'm really close to getting one ; )
>
> Hazarding a guess as to what would get ifplugd to work:
>
> modules_eth0=( "dhcpcd", "ifplug" ) # or ifplugd, I don't really know
> # which
>
> Thanks for your time!
All I have on my laptop is config_eth0=( "dhcp" ) in /etc/conf.d/net and
ifplugd worked straight out of the box. I thought I would need to configure
it, but it ran fine first time with default settings. It even worked with
*no* entries in /etc/conf.d/net, although a message kept coming up saying
that eth0 defaults to dhcpcd. Therefore, if my experience is something to go
by, I'd suggest that you remove all your entries first to see if you can get
your eth0 connected and work backwards from there.
--
Regards,
Mick
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 4:45 ` Lord Sauron
2006-10-02 4:56 ` Ryan Tandy
@ 2006-10-02 8:27 ` Neil Bothwick
1 sibling, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-10-02 8:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
On Sun, 1 Oct 2006 21:45:49 -0700, Lord Sauron wrote:
> I'm going to take your word and try ifplug, however, I installed it and
> it doesn't work. Still pings up /dev/null for all it's doing. I even
> went to rc-update and had it start at boot, though that didn't work.
You don't start it at all, let the network scripts deal with it.
> My guess is that it's trying to use net.lo (the loopback device) and
> thinks that that's plugged in therefore it tries to ping on everything
> else.
Nope, it defaults to eth0, but the network scripts use it on whichever
interface they are trying to control (but not lo because there is no
concept of a network cable or link beat for lo). You really should read
net.example.
--
Neil Bothwick
Mr. bullfrog says: "time's fun when you're having flies."
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 5:02 ` Lord Sauron
2006-10-02 6:53 ` Mick
@ 2006-10-02 8:27 ` Neil Bothwick
2006-10-04 22:41 ` Richard Fish
2 siblings, 0 replies; 10+ messages in thread
From: Neil Bothwick @ 2006-10-02 8:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
On Sun, 1 Oct 2006 22:02:12 -0700, Lord Sauron wrote:
> Hazarding a guess as to what would get ifplugd to work:
Stop guessing and read the docs.
--
Neil Bothwick
Loose bits sink chips.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-02 5:02 ` Lord Sauron
2006-10-02 6:53 ` Mick
2006-10-02 8:27 ` Neil Bothwick
@ 2006-10-04 22:41 ` Richard Fish
2006-10-05 2:24 ` Boyd Stephen Smith Jr.
2 siblings, 1 reply; 10+ messages in thread
From: Richard Fish @ 2006-10-04 22:41 UTC (permalink / raw
To: gentoo-user
On 10/1/06, Lord Sauron <lordsauronthegreat@gmail.com> wrote:
> modules_eth0=( "dhcpcd" )
This is the problem. By specifying the modules explicitly, you have
told Gentoo *not* to use ifplugd. Either comment it out like the
.example file recommends, or use
modules_eth0=( "ifplugd" "dhcpcd" )
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] DHClient Woes - No Modules Loaded?
2006-10-04 22:41 ` Richard Fish
@ 2006-10-05 2:24 ` Boyd Stephen Smith Jr.
0 siblings, 0 replies; 10+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-10-05 2:24 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1453 bytes --]
On Wednesday 04 October 2006 17:41, "Richard Fish" <bigfish@asmallpond.org>
wrote about 'Re: [gentoo-user] DHClient Woes - No Modules Loaded?':
> On 10/1/06, Lord Sauron <lordsauronthegreat@gmail.com> wrote:
> > modules_eth0=( "dhcpcd" )
>
> This is the problem. By specifying the modules explicitly, you have
> told Gentoo *not* to use ifplugd.
That's not the way the modules line works. The modules line supplements
the built in defaults. For example, I use pump and ifplugd and my modules
line is simply:
modules_eth0=( "pump" )
The modules you've specified will be used for their service (in this case,
dhcp) and the defaults, if available, will be used for other services.
Were this not the case, I'd have to specify:
modules_eth0=( "ifconfig" "ifplugd" "pump" )
or similar, listing a module for each service. That are at least 3 net
services I know of:
configuration: either ifconfig or iproute2
link-detection: none, ifplugd, or netplug
DHCP: none, dhclient, dhcpcd, or pump (and possibly others)
and there are probably more services.
If you want to use dhcp via pump and turn off link-detection entirely,
you'd have to use a modules line of:
modules_$iface=( "pump" "!plug" )
--
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-10-05 2:34 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 18:44 [gentoo-user] DHClient Woes - No Modules Loaded? Lord Sauron
2006-10-01 20:48 ` Jan-Hendrik Zab
2006-10-02 4:45 ` Lord Sauron
2006-10-02 4:56 ` Ryan Tandy
2006-10-02 5:02 ` Lord Sauron
2006-10-02 6:53 ` Mick
2006-10-02 8:27 ` Neil Bothwick
2006-10-04 22:41 ` Richard Fish
2006-10-05 2:24 ` Boyd Stephen Smith Jr.
2006-10-02 8:27 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox