Log option (18) Interface-Id in DHCPv6 failed

Darko Bezjak darko.bezjak at t-2.com
Tue Feb 24 08:13:11 UTC 2015


Thanks, now log looks like this:

Feb 24 08:30:57 MB-DHCP-T-02 dhcpd: Client 00:03:00:01:d4:ca:6d:2f:fd:7c
releases prefix 2a01:260:8043:1033::/64
Feb 24 08:30:57 MB-DHCP-T-02 dhcpd: Sending Relay-reply to
2a01:260:8043:1007::1 port 547
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Relay-forward message from
2a01:260:8043:1007::1 port 547, link address 2a01:260:8043:1007::1, peer
address fe80::d6ca:6dff:fe2f:fd7c
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Interface-ID: (missing)
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Interface-ID: (missing)
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Advertise PD: address
2a01:260:8043:1033::/64 to client with duid 00:03:00:01:d4:ca:6d:2f:fd:7c
iaid = 1 valid for 43200 seconds
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Sending Relay-reply to
2a01:260:8043:1007::1 port 547
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Relay-forward message from
2a01:260:8043:1007::1 port 547, link address 2a01:260:8043:1007::1, peer
address fe80::d6ca:6dff:fe2f:fd7c
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Interface-ID: (missing)
Feb 24 08:30:58 MB-DHCP-T-02 dhcpd: Interface-ID: (missing
.....

but if you look pcap file, it's always option 18 included (attached file).

Regards, Darko.



-----Original Message-----
From: dhcp-users-bounces at lists.isc.org
[mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Niall O'Reilly
Sent: Monday, February 23, 2015 8:08 PM
To: Users of ISC DHCP
Subject: Re: Log option (18) Interface-Id in DHCPv6 failed

At Mon, 23 Feb 2015 12:40:31 +0100,
Darko Bezjak wrote:
> 
> log(info,concat("Interface-ID: " , option dhcp6.interface-id));

  From `man dhcp-eval`:

   concat (data-expr1, ..., data-exprN)
     The expressions are evaluated, and the results of each evaluation are
     concatenated in the sequence that the subexpressions are listed.   If
     any  subexpression evaluates to null, the result of the concatenation
     is null.

  I suspect that the option is not being set as you expect, so that
  the second argument to log() becomes a null string.  The following
  code should alow you confirm.

  log(info,concat("Interface-ID: ",
                  pick-first-value((option dhcp6.interface-id),
		                   "(missing)")));

  I hope this helps.
  Niall O'Reilly
  
_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dhcpv6-relay-pd.pcap
Type: application/octet-stream
Size: 1748 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20150224/a7eb61e1/attachment.obj>


More information about the dhcp-users mailing list