dhcp6c config not working?



  • Hi,

    I upgraded to pfsense 2.4.3-RELEASE-p1 and IPv6 does not work any more. It seems that the /var/etc/dhcp6c_wan.conf is not written correctly.

    1. When I use SLAAC on the WAN interface, my pfsense gets a global IPv6 address on that interface. dhcp6c config is:
      interface igb0 {
      information-only;
      request domain-name-servers;
      request domain-name;
      script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
      };

    dhcp6c daemon is running. Everything looks good up to this point.

    1. when I set the WAN config to DHCP6 I get the config
      interface igb0 {
      send ia-na 0; # request stateful address
      send ia-pd 0; # request prefix delegation
      request domain-name-servers;
      request domain-name;
      script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
      };
      id-assoc na 0 { };

    but no process dhcp6c is running any more.

    Where are the logs? Especially, where is the debug log?


  • Netgate

    Check enable debug in the WAN interface config down in the DHCPv6 section.

    Look at the DHCP log in Status > System Logs and filter on process dhcp6c.



  • ok. I read the logs. But if the dhcp6c is not starting, why should there be anything the the logs?



  • @misch said in dhcp6c config not working?:

    ok. I read the logs. But if the dhcp6c is not starting, why should there be anything the the logs?

    For example : dhcp6c starts, but :

    @misch said in dhcp6c config not working?:

    It seems that the /var/etc/dhcp6c_wan.conf is not written correctly.

    ... the log would show dhcp6c starting, and stopping with probably a reason.



  • Hi,

    further investigation shows me the following.

    When I configur SLAAC on my WAN interface, dhcp6c_wan.conf looks like:
    interface igb0 {
    information-only;
    request domain-name-servers;
    request domain-name;
    script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
    };

    But when I just change the config to DHCP6 then pfsense write the config file:
    interface igb0 {
    send ia-na 0; # request stateful address
    send ia-pd 0; # request prefix delegation
    request domain-name-servers;
    request domain-name;
    script "/var/etc/dhcp6c_wan_script.sh"; # we'd like some nameservers please
    };
    id-assoc na 0 { };

    the dhcp6c daemon of course cannot parse this config file since the definition of ia-pd is missing. The error in the log tells me about that:
    Sep 17 11:30:56 muc dhcp6c[30401]: /var/etc/dhcp6c_wan.conf:3 IA_PD (0) is not defined
    Sep 17 11:30:56 muc dhcp6c[30401]: failed to parse configuration file

    Haw can I fix this? My version is 2.4.3-p1



  • Changing the config again deletes the dhcp6_wan.conf entirely, so no dhcp6c is started at all.


 

© Copyright 2002 - 2018 Rubicon Communications, LLC | Privacy Policy