• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

dhcp6c config not working?

Scheduled Pinned Locked Moved IPv6
7 Posts 4 Posters 3.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    misch
    last edited by Aug 30, 2018, 11:38 AM

    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?

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Sep 1, 2018, 7:13 PM

      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.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • M
        misch
        last edited by Sep 3, 2018, 9:11 AM

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

        G 1 Reply Last reply Sep 3, 2018, 9:24 AM Reply Quote 0
        • G
          Gertjan @misch
          last edited by Sep 3, 2018, 9:24 AM

          @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.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          1 Reply Last reply Reply Quote 0
          • M
            misch
            last edited by Sep 17, 2018, 9:33 AM

            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

            1 Reply Last reply Reply Quote 0
            • M
              misch
              last edited by Sep 17, 2018, 9:43 AM

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

              1 Reply Last reply Reply Quote 0
              • J
                jasonArloUser
                last edited by Dec 22, 2019, 9:46 PM

                Hi

                The reason this is happening is because you have id-assoc na but not id-assoc pd. This is because the config is not complete just from the WAN interface. You have to also set a LAN interface to track the WAN interface. This is where the rest of the configuration is set and it defines id-assoc pd with the values you set there.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received