<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 5, 2017 at 9:50 PM, Jose Jr. Catubigan <span dir="ltr"><<a href="mailto:jlcatubiganjr@gmail.com" target="_blank">jlcatubiganjr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>We want to match option dhcp6.remote-id to CLASS. Below are our not working configuration.</div><div>CPE gets the ip from fallback pool.</div><div><br></div><div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------<br></div><div><div>authoritative;</div><div>log-facility local6;</div></div><div><br></div><div>log (info, concat("CPE Normal Lease: ", binary-to-ascii(16,16,":",<wbr>substring(option dhcp6.ia-na, 16, 16))));<br></div><div><br></div><div><div># IPv6 CPE Class</div><div>class "CPE.v6" {match option dhcp6.remote-id;}</div></div><div><br></div><div>subclass "CPE.v6" 08:80:39:AC:C9:C0;<br></div><div><br></div><div><div>shared-network lab-cpe {</div><div>        subnet6 2001:d800:4010::/48 {</div><div>                deny unknown-clients;</div><div>                option dhcp6.name-servers 2001:d800:1000:1::2;</div><div>                default-lease-time 3600;</div><div>                max-lease-time 3600;</div><div>                        # CPE.v6</div><div>                        pool6 {</div><div>                                range6 2001:d800:4010::2 2001:d800:4010::10;</div><div>                                allow members of "CPE.v6";</div><div>                        }</div><div><br></div><div>                        # Fallback pool</div><div>                        pool6 {</div><div>                                range6 2001:d800:4010::11 2404:3c00:4010::20;</div><div>                        }</div></div><div>------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------</div><div><br></div><div>Thanks in advance,</div><div>--joecat--</div></div></blockquote><div><br></div><div>I am pretty sure that once the client gets an IP from the 'fallback' pool, both the server and client will continue to use that IP even if the CPE pool matches.  I think you need to add to the second pool:</div><div>      deny members of " CPE.v6";</div><div>You could instead try to remove (or block with a DHCP reserved) any IP the client got previously, but that probably won't be enough.</div><div><br></div><div>That breaks the "failover" idea, but DHCP really does not have that concept.  It considers all pools "equally", although it usually fills the first before starting the next.</div><div><br></div><div>-- </div><div>Bob Harold</div><div><br></div></div></div></div>