DHCPv6 interface issues
Marcus Goller
mgoller at gmail.com
Fri Aug 3 12:26:47 UTC 2007
Shane,
Thank you for the patch. Running the dhcpd with the changes, I get the
following message:
#./dhcpd -cf test-a.conf -lf /tmp/test.leases -6 -d bge1
Error getting interface flags for 'bge0'; No such device or address
Error getting interface information.
I have an existing bge0 and bge0:1, both with public IPv4 addresses
configured. bge1 is unchanged from the last paste of my previous mail.
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