dhcpcd-discuss

Re: problem with expired prefix (dhcpv6)

Neal P. Murphy

Thu Jun 01 19:59:34 2017

On Thu, 1 Jun 2017 20:13:16 +0200
Harald Dunkel <harri@xxxxxxxxx> wrote:

> Hi Roy,
> 
> On 05/29/17 23:16, Roy Marples wrote:
> > 
> > Here's your config:
> > interface pppoe0
> >     ipv6rs
> >     # static static domain_name_servers=<nameserver IPs>
> >     ia_pd re1/0
> > 
> > This is wrong, you set SLA not IAID.
> > It's ia_pd iaid interface/sla. Like this:
> > 
> > interface pppoe0
> >     ipv6rs
> >     ia_pd 1 re1
> > 
> > There are more options there, but you may not need those.
> > 
> 
> How can I specify the default iaid, derived from the Mac address,
> on the ia_pd line? According to the man page the argument between
> "ia_pd" and "re1" is optional. I had expected that dhcpcd uses
> the default iaid in this case.
> 
> ???
> 
> >>
> >> Here is the log file after a reboot:
> >>
> >> May 29 20:06:29 [23351]: dhcpcd-7.0.0-beta3 starting
> >>
> > 
> > We've made lots of improvements to Prefix Delegation in 7.0.0-rc1.
> > Please try that, which these changes as well which also help with PD:
> > https://dev.marples.name/D112
> > https://dev.marples.name/rDHC3cf33877235502a3998fae72d4a1ac657ceb815e
> > 
> > Let me know!
> > 
> 
> I will try, but AFAIR D112 is already included in my version.
> 
> 
> Regards
> Harri
> 
> 
> 

For version 6.10.3, this is the .conf I came up with. It seems to work OK on my Smoothwall Express firewall. I used the last four bytes of each MAC for each IAID, respectively. DHCPCD gets a /60 from Comcrash and assigns a different /64 from it to each interface.

----------------
duid

persistent

option rapid_commit

option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers

require dhcp_server_identifier

slaac private

nohook lookup-hostname, hostname, resolv.conf, ntp.conf, timezone, wpa_supplicant

script /etc/rc.d/rc.update6red

allowinterfaces eth0 eth1 eth2 eth3
denyinterfaces lo ipsec0 ipsec1
debug
ipv6only
ipv6ra_own
ipv6ra_own_default
leasetime 31622400
nodhcp
nodhcp6
noipv6rs

interface eth0
iaid 4b:17:f2:7a

interface eth1
iaid 4b:17:f2:7b

interface eth2
iaid 4b:17:f2:7c

interface eth3
dhcp6
ipv6rs
iaid 4b:17:f2:7d
ia_na 4b:17:f2:7d
ia_pd 4b:17:f2:7a/::/60 eth0/1/64 eth1/2/64 eth2/3/64
----------------

Took a while to figure out the correct syntax, but it gives each IF a /64. I haven't tied it to dhcpd yet to give internal hosts their dynamic or assigned IP addresses. (Nor have I twerked the web UI to to anything with IPv6.)

References:
problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Re: problem with expired prefix (dhcpv6)Roy Marples
Re: problem with expired prefix (dhcpv6)Harald Dunkel
Archive administrator: postmaster@marples.name