Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142236 - net-misc/udhcp server daemon multi-interface support
Summary: net-misc/udhcp server daemon multi-interface support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-30 16:28 UTC by Walter
Modified: 2008-12-23 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
new init script - /etc/init.d/udhcpd (udhcpd,1.02 KB, text/plain)
2006-07-30 16:32 UTC, Walter
Details
new /etc/udhcpd/sample.conf (sample.conf,1.21 KB, text/plain)
2006-07-30 16:36 UTC, Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter 2006-07-30 16:28:05 UTC
had a problem as a user: i needed to run dhcp pools on two different interfaces.

apparently ISC dhcpd doesn't support this.

so i downloaded udhcp, the only other dhcp daemon apparently in portage.

however, the default gentoo config made it a real pain to add support for my configuration.

therefore i rewrote the init script to be more flexible - it autoloads configuration files from /etc/udhcpd, and handles multiple udhcpd instances gracefully.

afaik this is the first multi-interface dhcp daemon support in portage.
Comment 1 Walter 2006-07-30 16:32:24 UTC
Created attachment 93094 [details]
new init script - /etc/init.d/udhcpd

Tested and working, however as I am far from a shell scripting expert it may require cleanup to meet some sort of init script standards...
Comment 2 Walter 2006-07-30 16:36:02 UTC
Created attachment 93096 [details]
new /etc/udhcpd/sample.conf

Attached is a suggested sample configuration file.  The init script already automatically ignores config files in /etc/udhcpd that include 'sample' in their name.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-07-30 16:36:57 UTC
Please, don't restrict bugs without any reason. Leave those checkboxes alone.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-08-01 03:49:53 UTC
Why not multiplex the script (net.lo -> net.eth0, net.wlan) - see the openvpn init script for details on how todo this.

That way you can start/stop each dhcp server instance.

BTW, you can run isc's dhcpd on mulitple interfaces provided they both use different subnets.
Comment 5 Walter 2006-08-01 18:53:39 UTC
Will do - I'll download the OpenVPN script and aim to upload a new, multiplexed udhcpd init script in the near future.
Comment 6 Ryan M Ong 2007-05-29 18:09:14 UTC
[32;01m*[0m Adding group 'dhcp' to your system ...
 [32;01m*[0m  - Groupid: next available
 [32;01m*[0m Adding user 'dhcp' to your system ...
 [32;01m*[0m  - Userid: 103
 [32;01m*[0m  - Shell: /sbin/nologin
 [32;01m*[0m  - Home: /var/lib/dhcp
 [32;01m*[0m  - Groups: dhcp
 [32;01m*[0m  - Creating /var/lib/dhcp in /
>>> Unpacking source...
>>> Unpacking udhcp-0.9.9_pre20041216.tar.bz2 to /var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/work
 [32;01m*[0m Applying udhcp-0.9.9_pre20041216-env.patch ...
[A[72C  [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/work/udhcp ...
i686-pc-linux-gnu-gcc -c -O2 -march=pentium2 -pipe -DCOMBINED_BINARY -DUDHCP_SYSLOG -W -Wall -Wstrict-prototypes -D_GNU_SOURCE -Os -fomit-frame-pointer dhcpd.c
make: i686-pc-linux-gnu-gcc: Command not found
make: *** [dhcpd.o] Error 127

!!! ERROR: net-misc/udhcp-0.9.9_pre20041216-r4 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  udhcp-0.9.9_pre20041216-r4.ebuild, line 41:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-misc/udhcp-0.9.9_pre20041216-r4/temp/build.log'.
Comment 7 Walter 2008-08-19 04:16:58 UTC
No longer interested in this feature, so don't wait for my input.  Feel free to close the bug if you like. 
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-23 19:42:41 UTC
This is getting out of portage.