FS#9006 - [dhcp] No way to specify interface for dhcpd (without editing init script).

Attached to Project: Arch Linux
Opened by Alex Matviychuk (alexmat) - Sunday, 23 December 2007, 03:23 GMT
Last edited by Roman Kyrylych (Romashka) - Sunday, 04 October 2009, 09:11 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Ronald van Haren (pressh)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

The man page for DHCPD states that:
"If no interface names are specified on the command line dhcpd will identify all network interfaces which are up, eliminating non-broadcast interfaces if possible, and listen for DHCP broadcasts on each interface."

However, for my setup, it seems DHCPD only works if I specify eth1 on the command line. Also, I don't particualarly want dhcpd listening to my isp broadcast traffic.

Would it be possible to add a dhcpd file to /etc/conf.d so I can pass arguments to the daemon without editing the init script?

Thanks.

-Alex
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Sunday, 04 October 2009, 09:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  in dhcp 4.1.0.p1-1
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 00:19 GMT
Umm... what? /etc/conf.d/dhcpcd has been there as long as I've been using Arch, and rc.sysinit does specify the interface.

Are you using the rc.conf based setup for networking?
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 00:19 GMT
Oh man! Ignore me. There's no 'C'... man dhcpcd and dhcpd have crappy names
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 21:36 GMT
While I have this change implemented, I am also doing a version bump, but have some issues. Do you happen to have a working 4.0 PKGBUILD, by chance?
Comment by Alex Matviychuk (alexmat) - Tuesday, 08 January 2008, 23:03 GMT
I don't, sorry. I am running the 3.1(latest I believe) Arch build.

What kind of issues are you having? Maybe I can provide some feedback on those?

I can try to build the 4.0 release myself, but it will have to wait until this weekend.
Comment by Aaron Griffin (phrakture) - Tuesday, 08 January 2008, 23:47 GMT
It was a super quick rebuild. I don't run dhcpd myself, but when I tried to run it it failed silently, and continued to do so. I shut off most of the other port-consuming daemons I could, but whatever I tried I just got some silent failure.

I need to devote more time into looking into the issue though. I was hoping I could shortcut it by asking you if you knew of any issues 8)
Comment by James Rayner (iphitus) - Wednesday, 26 March 2008, 11:10 GMT
What about /etc/dhcpd.conf?
Comment by Ronald van Haren (pressh) - Thursday, 04 December 2008, 12:02 GMT
I don't think this applies anymore to the dhcpcd4 series. You should always specify an interface with the -4 series. Besides that we have both /etc/dhcpcd.conf and /etc/conf.d/dhcpcd in the backup array where the user can specify interfaces. -> closing now
Comment by James Rayner (iphitus) - Thursday, 04 December 2008, 13:10 GMT
Re-opened.

pressh, it's dhcpd not dhcpCd. Server not client.

Though it should have /etc/dhcpd.conf... so feel free to close again.
Comment by Ronald van Haren (pressh) - Thursday, 04 December 2008, 13:29 GMT
o crap, I misread that one...

I'll look into the config file soon to see if it is possible to specify the interface in there (btw why is the manpage THAT long)
Comment by Jonathan Liu (net147) - Tuesday, 30 December 2008, 07:34 GMT
From looking through the dhcpd.conf man page, I can't find a way to specify the interfaces for dhcpd to listen on.
It would be a good idea to add a conf.d file for this as it is very easy to do so.
Comment by Tom (reztho) - Tuesday, 06 January 2009, 11:12 GMT
I want a /etc/conf.d/dhcpd file too. There is no way to specify ipv4 only and/or the possibility of binding to a specific interface in the regular config file. It's only possible with the program switches.

Another suggestion because of the last update:
https://lists.isc.org/pipermail/dhcp-hackers/2008-October/000879.html
I've found here a patch for removing the need to have the ipv6 module loaded. I've used it with the last PKGBUILD and it's working like a charm.
Comment by Jonathan Liu (net147) - Sunday, 04 October 2009, 01:32 GMT
DHCP_ARGS in /etc/conf.d/dhcp can now be used to specify arguments to dhcpd.

Loading...