Re: Using --dumplease with DHCPv6
Nicholas Williams
Mon Feb 01 18:41:13 2016
I needed to test something else, so I downloaded 6.10.1 and compiled it.
It's improved (there is _some_ DHCPv6 information in the lease dump), but
the IPv6 address still does not appear:
$ dhcpcd --version
dhcpcd 6.10.1
Copyright (c) 2006-2016 Roy Marples
$ sudo dhcpcd --dumplease eth2
broadcast_address='172.20.10.15'
dhcp_lease_time='85536'
dhcp_message_type='5'
dhcp_server_identifier='172.20.10.1'
domain_name_servers='172.20.10.1'
ip_address='172.20.10.6'
network_number='172.20.10.0'
routers='172.20.10.1'
server_name='[censored]'
subnet_cidr='28'
subnet_mask='255.255.255.240'
dhcp6_client_id='000100011e41112b08002798dcaa'
dhcp6_name_servers='fe80::c8d:ac2c:1b71:14c3%eth2'
dhcp6_reconfigure_accept='1'
dhcp6_server_id='000100011e4261f26e72e753d864'
The interface clearly has an IPv6 address, and I can ping IPv6 addresses.
$ ifconfig eth2
eth2 Link encap:Ethernet HWaddr 08:00:27:21:d4:16
inet addr:172.20.10.6 Bcast:172.20.10.15 Mask:255.255.255.240
inet6 addr: 2600:1004:b068:ce9e:4098:3e5d:5218:3838/64
Scope:Global
inet6 addr: 2600:1004:b068:ce9e:8085:92b6:5eea:de8b/64
Scope:Global
inet6 addr: fe80::a00:27ff:fe21:d416/64 Scope:Link
inet6 addr: 2600:1004:b068:ce9e:a00:27ff:fe21:d416/64 Scope:Global
Thoughts?
Thanks,
Nick
On Mon, Feb 1, 2016 at 11:46 AM, Nicholas Williams <
nicholas+vyos@xxxxxxxxxxxxxxxxxxxx> wrote:
> If I configure an interface with IPv4 and IPv6, `dhcpcd --dumplease eth2`
> displays only IPv4 information. If I configure it with ONLY IPv6, `dhcpcd
> --dumplease eth2` says:
>
> dhcpcd[2653]: eth2: no lease to dump
>
> Going off of other patterns I've seen, I tried `--dumplease6`, but I just
> got the usage screen. I tried `-6 --dumplease` but I got the same result as
> just `--dumplease`.
>
> I see that /var/lib/dhcpcd5/dhcpcd-eth2.lease6 exists, but it's a binary
> file that I can't read, so that's not an option.
>
> I'm using version 6.0.5 (which comes with Ubuntu 14.04).
>
> Is DHCPv6 lease dumping something that has come since 6.0.5, meaning I
> just need to upgrade? Or is it still not supported?
>
> Thanks,
>
> Nick
>
Archive administrator: postmaster@marples.name