Re: Unable to compile DHCP server on Solaris



In article <98e83dff-cc0d-4193-a5a7-7f414fc209f0@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> mike3 <mike4ty4@xxxxxxxxx> writes:
On Feb 23, 3:10 pm, Jeff Wieland <wiel...@xxxxxxxxxxxxxxxx> wrote:
In article <627d5790-c37e-40e2-beb4-4063dcbcf...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> mike3 <mike4...@xxxxxxxxx> writes:

On Feb 23, 12:17 am, Dave Uhring <daveuhr...@xxxxxxxxx> wrote:
On Fri, 22 Feb 2008 22:50:59 -0800, mike3 wrote:
Forgot to mention it: the version I was using was the latest, 4.1.0a1. I
tried
4.0.0 before that, same problem.

Try dhcp-3.0.6.

Alright, I'll try it. Why don't the newer versions work though?

We're using dhcp 3.1.0 under Solaris 8 & 10 on SPARC -- they work
well and they are supported by other tools that generate the
config files. If you don't need IPv6 support, 3.1.0 should be
fine. You probably don't want to use the "USE_SOCKETS" option.
For one thing, it limits you to one interface on Solaris. The
site.h file says:

/* Define this to use the standard BSD socket API.

On many systems, the BSD socket API does not provide the ability to
send packets to the 255.255.255.255 broadcast address, which can
prevent some clients (e.g., Win95) from seeing replies. This is
not a problem on Solaris.

In addition, the BSD socket API will not work when more than one
network interface is configured on the server.

However, the BSD socket API is about as efficient as you can get, so if
the aforementioned problems do not matter to you, or if no other
API is supported for your system, you may want to go with it. */

/* #define USE_SOCKETS */

We sure don't use it.


I use it because of what is said in the README:

---
SOLARIS

One problem which has been observed and is not fixed in this
patchlevel has to do with using DLPI on Solaris machines. The symptom
of this problem is that the DHCP server never receives any requests.
This has been observed with Solaris 2.6 and Solaris 7 on Intel x86
systems, although it may occur with other systems as well. If you
encounter this symptom, and you are running the DHCP server on a
machine with a single broadcast network interface, you may wish to
edit the includes/site.h file and uncomment the #define USE_SOCKETS
line. Then type ``make clean; make''. As an alternative workaround,
it has been reported that running 'snoop' will cause the dhcp server
to start receiving packets. So the practice reported to us is to run
snoop at dhcpd startup time, with arguments to cause it to receive one
packet and exit.

snoop -c 1 udp port 67 > /dev/null &

The DHCP client on Solaris will only work with DLPI. If you run it
and it just keeps saying it's sending DHCPREQUEST packets, but never
gets a response, you may be having DLPI trouble as described above.
If so, we have no solution to offer at this time, aside from the above
workaround which should also work here.
---

See, it says to enable USE_SOCKETS if the DHCP server
does not recieve any requests, which seems like the trouble I was
having with it. (I'm using Solaris 10 on x86-64.). When I try to use
another machine on my net to call up the DHCP server, it doesn't
give anything out, the requests all go unanswered.

I tried the "snoop" thing and that didn't work, so I figured the next
option was to try USE_SOCKETS, and BOOM, I got the compile
failure.

On your prospective DHCP server, run something like:

# snoop port bootpc or port bootps

to see if the dhcp data is getting to your server.

Make sure that ipfilter (or any other firewalls) aren't getting in the
way. Note that snoop will see the dhcp traffic even though ipfilter
might be blocking it.

The dhcp-users mailing list (you can subscribe through www.isc.org)
can be very useful -- if you are running this DHCP server I highly
recommend subscribing to this and to dhcp-announce.

For what it's worth, there were supposed to be similar problems with
running ISC DHCP on SPARC Solaris on machines with the bge interface,
but we've never seen it here. We have have dhcpd V 3.1.0 running on
Sun Fire T1000's and Sun Blade 1500's.
--
Jeff Wieland
.



Relevant Pages

  • Re: Unable to compile DHCP server on Solaris
    ... If you don't need IPv6 support, ... it limits you to one interface on Solaris. ... the BSD socket API does not provide the ability to ... of this problem is that the DHCP server never receives any requests. ...
    (comp.unix.solaris)
  • Re: Setting up a PXE Boot Server on Solaris 8
    ... 1x SUN SPARC Workstation with Solaris 8 ... Installing Windows 2000 Professional on the PC over network!!! ... CD)on my DHCP Server, but it failed. ... > | ich suche Informationsquellen zur Einrichtung von PXE Boot unter Solaris ...
    (comp.unix.admin)
  • Re: hostname with DHCP
    ... >>Windows DHCP server. ... >>The Windows administrator doesn't want to put the hostname into the DHCP ... >>server or reserve an IP address for the Solaris system. ... 2003/325 Set hostname locally when not provided by dhcp server" ...
    (comp.unix.solaris)
  • Re: Sun Rays on LAN -> DHCP Server Log Messages
    ... > running Solaris 8, to run on a LAN that already had a DHCP server. ... This is bug ID 4678758. ... it's not available in a patch. ...
    (comp.unix.solaris)
  • Re: DHCP weirdness - "Unicasting datagram to 0.0.0.0" ?
    ... What does "snoop -v", run on the DHCP server, show for these two packets? ... Scott ...
    (comp.unix.solaris)