Re: DHCPv6 Rapid Commit
Nicholas Williams
Tue Feb 02 15:47:07 2016
So, something isn't right I don't //think// I'm doing something wrong, but
it sure seems like it. Or there's a bug? I put this in my configuration
file:
interface eth2
option subnet_mask
option broadcast_address
option routers
option domain_name_servers
option domain_search
option domain_name
option interface_mtu
dhcp6_option name_servers
dhcp6_option domain_search
And it had this result:
$ sudo dhcpcd eth2
unknown option: dhcp6_option
unknown option: dhcp6_option
DUID 00:01:00:01:1e:43:88:3a:08:00:27:21:d4:16
eth2: IAID 27:21:d4:16
eth2: soliciting an IPv6 router
eth2: Router Advertisement from fe80::87:17f5:6412:6666
eth2: adding address 2600:1004:b140:f81a:a00:27ff:fe21:d416/64
eth2: requesting DHCPv6 information
eth2: rebinding lease of 172.20.10.6
eth2: probing address 172.20.10.6/28
forked to background, child pid 3013
For some reason, dhcpcd doesn't recognize the dhcp6_option settings?
But I can get and use an IPv6 address through dhcpcd, so clearly it's not
somehow compiled without DHCPv6 support.
What am I doing wrong?
Thanks,
Nick
On Tue, Feb 2, 2016 at 9:18 AM, Nicholas Williams <
nicholas+vyos@xxxxxxxxxxxxxxxxxxxx> wrote:
> Ah! Much clearer now. Thanks!
>
> Nick
>
> On Tue, Feb 2, 2016 at 3:27 AM, Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
>> On 01/02/2016 00:32, Nick Williams wrote:
>> > Additionally, could you clarify this from your earlier email:
>> >
>> >> However, if you specify ANY dhcp6_ option then you need to specify ALL
>> >> dhcp6_ options you want, otherwise dhcpcd will request matching dhcp6_
>> >> option from the dhcp4 counterparts.
>> >
>> > I don’t quite follow this. Are you saying that if I specify
>> > "dhcp6_option name_servers” but don’t specify "option
>> > domain_name_servers” then DHPCD will automatically add "option
>> > domain_name_servers” to my IPv4 config? It almost reads like one of the
>> > “dhcp6_options” in your sentence shouldn’t have been “dhcp6_,” but
>> > probably I am just reading it incorrectly.
>>
>> You are reading it incorrectly.
>>
>> If you specify no dhcp6_ options (none are specified by default) then
>> dhcpcd will request matching common dhcp options that you are
>> requesting. If you specify any dhcp6_ option then dhcpcd will not do
>> this, so you need to request all the options you are interested in.
>>
>> Clearer now?
>>
>> Roy
>>
>
>
Archive administrator: postmaster@marples.name