DHCPv6 insert options into lease file

Jan.Lampikari at haminanenergia.fi Jan.Lampikari at haminanenergia.fi
Fri Jan 24 14:00:01 UTC 2014


Hi all,

We are looking for a solution to record option 18 (Interface-ID) and option 37 (Remote-ID) into the lease file dhcpd6.leases. We would like to see where the prefixes are assigned exactly (To which DSLAM port for example). The desired outcome would be to have similar functionality as option 82 provides in IPv4.

The current setup is as follows:
DHCPv6 server <-> DHCPv6 relay <-> DHCPv6 client <-> Host machine

With Wireshark we can see the relay inserts both options in the relay-forw message but when the prefix has been assigned they are not saved along with the prefix information into the lease file.

The current lease entry contains the following lines:

ia-pd " ....... " {
cltt 4 2014/01/23 09:19:20;
iaprefix 2a00:xxxx:xxxx:xxxx::/64 {
preferred-life 375;
max-life 600;
ends 4 2014/01/23 09:29:20;
}
}

DHCPv6 server is configured as below:

default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet6 2a00:xxxx:xxxx:/48 {
prefix6 2a00:xxxx:xxxx:xxxx:: 2a00:xxxx:xxxx:xxxx:: /64;
}

Currently with IPv4 the same has been done as follows and we would like to achieve something similar with IPv6 disregarding the lease limit.

if exists agent.circuit-id {
log (info, concat("Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to CPE ", option agent.remote-id, " at BST ", option agent.circuit-id));
}

class "CPE" {
        spawn with option agent.remote-id;
        lease limit 5;
}

subnet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx {
        option routers xxx.xxx.xxx.xxx;
        option domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;
        option broadcast-address xxx.xxx.xxx.xxx;
        default-lease-time 86400;

pool{

        allow members of "CPE";
                             range xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx;

}
}

Any advice is greatly appreciated.

- Jan
________________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender immediately by e-mail. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This message has been scanned for viruses and dangerous content by F-Secure Anti-Virus for Microsoft Exchange
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140124/ceeeb3de/attachment.html>


More information about the dhcp-users mailing list