DHCPv6 interface issues

Marcus Goller mgoller at gmail.com
Fri Aug 3 12:44:35 UTC 2007


I just added an IPv6 interface on bge0, which seems to get me a bit further:
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for bge1 (fe80::203:baff:fea0:253a).
** Ignoring requests on bge1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface bge1 is attached. **

Changing my config from

subnet6 fe80::203:baff:fea0:0/128 {
        range6 fe80::203:baff:fea0:0/112;
}

- which is probably pretty useless looking at it now -, to

subnet6 fe80::203:baff:fea0:253a/128 {
}

gets rid of the interface messages, but gives my a core dump.

./dhcpd -cf test-a.conf -lf /tmp/test.leases -6 -d bge1
Internet Systems Consortium DHCP Server 4.0.0a2
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Segmentation Fault (core dumped)

The debugger gives me the following:

program terminated by signal SEGV (no mapping at the fault address)
Current function is discover_interfaces
 1163                                   memcpy (subnet ->
interface_address.iabuf,
(dbx)

Regards,

Marcus



On 8/3/07, Shane Kerr <Shane_Kerr at isc.org> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Marcus,
>
> Marcus Goller wrote:
> >
> > Now I am wondering why an IPv4 interface is necessary for DHCPd to find
> the
> > interface at all, I thought using the "-6" switch causes it to use only
> > IPv6
>
> It shouldn't be necessary. It might be because of the way we're using the
> Solaris extended interface scanning stuff. Can you try the following patch
> and
> let me know if it helps?
>
> - --
> Shane
>
> - --- common/discover.c.old       2007-07-13 08:43:40.000000000 +0200
> +++ common/discover.c   2007-08-03 12:29:14.000000000 +0200
> @@ -233,7 +233,7 @@
>         int lifnum;
> #endif
>
> - -       ifaces->sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
> +       ifaces->sock = socket(local_family, SOCK_DGRAM, IPPROTO_UDP);
>         if (ifaces->sock < 0) {
>                 log_error("Error creating socket to list interfaces; %m");
>                 return 0;
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGswPsMsfZxBO4kbQRAm1WAJ9FcgF7MVWnZbl+t7o/BaeZyz6hIQCfYttR
> wwo5o1IdRWJ35wDwooCCOQs=
> =ybf6
> -----END PGP SIGNATURE-----
>
>




More information about the dhcp-users mailing list