wide-dhcpv6 is failing to start because its using an interface that does not exist












0















I and trying to restart wide-dhcpv6 and I get this in the journalctl



Feb 03 12:09:49 router sudo[1285]: ciaran : TTY=pts/0 ; PWD=/home/ciaran ; USER=root ; COMMAND=/bin/systemctl restart wide-dhcpv6-client
Feb 03 12:09:49 router sudo[1285]: pam_unix(sudo:session): session opened for user root by ciaran(uid=0)
Feb 03 12:09:49 router systemd[1]: Stopped LSB: Start/Stop WIDE DHCPv6 client.
-- Subject: Unit wide-dhcpv6-client.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit wide-dhcpv6-client.service has finished shutting down.
Feb 03 12:09:49 router systemd[1]: Starting LSB: Start/Stop WIDE DHCPv6 client...
-- Subject: Unit wide-dhcpv6-client.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit wide-dhcpv6-client.service has begun starting up.
Feb 03 12:09:49 router wide-dhcpv6-client[1288]: * Starting WIDE DHCPv6 client dhcp6c
Feb 03 12:09:49 router dhcp6c[1293]: ifreset: invalid interface(enp0s31f6): No such device
Feb 03 12:09:49 router dhcp6c[1293]: main: failed to initialize enp0s31f6
Feb 03 12:09:51 router wide-dhcpv6-client[1288]: ...fail!
Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Control process exited, code=exited status=1
Feb 03 12:09:51 router systemd[1]: Failed to start LSB: Start/Stop WIDE DHCPv6 client.
-- Subject: Unit wide-dhcpv6-client.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit wide-dhcpv6-client.service has failed.
--
-- The result is failed.
Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Unit entered failed state.
Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Failed with result 'exit-code'.


its trying to use an interface that was in my config file but I renamed it and replaced the name in my config



ciaran@router:/etc/wide-dhcpv6$ cat dhcp6c.conf
##
## This is/etc/wide-dhcpv6/dhcp6c.conf
##
## Replace the existing configuration with this one.

# Send a PD request on the external facing interface
# send ia-pd says ask for a prefix
# the script is run when the prefix is acquired
interface wan0 {
send ia-pd 2;
script "/etc/wide-dhcpv6/dhcp6c-script";
};

# Upon receiving a prefix use the
# information to set the internal facing interface
id-assoc pd 2 {
prefix-interface wlan0 {
ifid 1;
sla-id 1;
sla-len 0;
};
};

## End of config.


any idea why its attempting to use the wrong interface?










share|improve this question



























    0















    I and trying to restart wide-dhcpv6 and I get this in the journalctl



    Feb 03 12:09:49 router sudo[1285]: ciaran : TTY=pts/0 ; PWD=/home/ciaran ; USER=root ; COMMAND=/bin/systemctl restart wide-dhcpv6-client
    Feb 03 12:09:49 router sudo[1285]: pam_unix(sudo:session): session opened for user root by ciaran(uid=0)
    Feb 03 12:09:49 router systemd[1]: Stopped LSB: Start/Stop WIDE DHCPv6 client.
    -- Subject: Unit wide-dhcpv6-client.service has finished shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit wide-dhcpv6-client.service has finished shutting down.
    Feb 03 12:09:49 router systemd[1]: Starting LSB: Start/Stop WIDE DHCPv6 client...
    -- Subject: Unit wide-dhcpv6-client.service has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit wide-dhcpv6-client.service has begun starting up.
    Feb 03 12:09:49 router wide-dhcpv6-client[1288]: * Starting WIDE DHCPv6 client dhcp6c
    Feb 03 12:09:49 router dhcp6c[1293]: ifreset: invalid interface(enp0s31f6): No such device
    Feb 03 12:09:49 router dhcp6c[1293]: main: failed to initialize enp0s31f6
    Feb 03 12:09:51 router wide-dhcpv6-client[1288]: ...fail!
    Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Control process exited, code=exited status=1
    Feb 03 12:09:51 router systemd[1]: Failed to start LSB: Start/Stop WIDE DHCPv6 client.
    -- Subject: Unit wide-dhcpv6-client.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit wide-dhcpv6-client.service has failed.
    --
    -- The result is failed.
    Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Unit entered failed state.
    Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Failed with result 'exit-code'.


    its trying to use an interface that was in my config file but I renamed it and replaced the name in my config



    ciaran@router:/etc/wide-dhcpv6$ cat dhcp6c.conf
    ##
    ## This is/etc/wide-dhcpv6/dhcp6c.conf
    ##
    ## Replace the existing configuration with this one.

    # Send a PD request on the external facing interface
    # send ia-pd says ask for a prefix
    # the script is run when the prefix is acquired
    interface wan0 {
    send ia-pd 2;
    script "/etc/wide-dhcpv6/dhcp6c-script";
    };

    # Upon receiving a prefix use the
    # information to set the internal facing interface
    id-assoc pd 2 {
    prefix-interface wlan0 {
    ifid 1;
    sla-id 1;
    sla-len 0;
    };
    };

    ## End of config.


    any idea why its attempting to use the wrong interface?










    share|improve this question

























      0












      0








      0








      I and trying to restart wide-dhcpv6 and I get this in the journalctl



      Feb 03 12:09:49 router sudo[1285]: ciaran : TTY=pts/0 ; PWD=/home/ciaran ; USER=root ; COMMAND=/bin/systemctl restart wide-dhcpv6-client
      Feb 03 12:09:49 router sudo[1285]: pam_unix(sudo:session): session opened for user root by ciaran(uid=0)
      Feb 03 12:09:49 router systemd[1]: Stopped LSB: Start/Stop WIDE DHCPv6 client.
      -- Subject: Unit wide-dhcpv6-client.service has finished shutting down
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has finished shutting down.
      Feb 03 12:09:49 router systemd[1]: Starting LSB: Start/Stop WIDE DHCPv6 client...
      -- Subject: Unit wide-dhcpv6-client.service has begun start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has begun starting up.
      Feb 03 12:09:49 router wide-dhcpv6-client[1288]: * Starting WIDE DHCPv6 client dhcp6c
      Feb 03 12:09:49 router dhcp6c[1293]: ifreset: invalid interface(enp0s31f6): No such device
      Feb 03 12:09:49 router dhcp6c[1293]: main: failed to initialize enp0s31f6
      Feb 03 12:09:51 router wide-dhcpv6-client[1288]: ...fail!
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Control process exited, code=exited status=1
      Feb 03 12:09:51 router systemd[1]: Failed to start LSB: Start/Stop WIDE DHCPv6 client.
      -- Subject: Unit wide-dhcpv6-client.service has failed
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has failed.
      --
      -- The result is failed.
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Unit entered failed state.
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Failed with result 'exit-code'.


      its trying to use an interface that was in my config file but I renamed it and replaced the name in my config



      ciaran@router:/etc/wide-dhcpv6$ cat dhcp6c.conf
      ##
      ## This is/etc/wide-dhcpv6/dhcp6c.conf
      ##
      ## Replace the existing configuration with this one.

      # Send a PD request on the external facing interface
      # send ia-pd says ask for a prefix
      # the script is run when the prefix is acquired
      interface wan0 {
      send ia-pd 2;
      script "/etc/wide-dhcpv6/dhcp6c-script";
      };

      # Upon receiving a prefix use the
      # information to set the internal facing interface
      id-assoc pd 2 {
      prefix-interface wlan0 {
      ifid 1;
      sla-id 1;
      sla-len 0;
      };
      };

      ## End of config.


      any idea why its attempting to use the wrong interface?










      share|improve this question














      I and trying to restart wide-dhcpv6 and I get this in the journalctl



      Feb 03 12:09:49 router sudo[1285]: ciaran : TTY=pts/0 ; PWD=/home/ciaran ; USER=root ; COMMAND=/bin/systemctl restart wide-dhcpv6-client
      Feb 03 12:09:49 router sudo[1285]: pam_unix(sudo:session): session opened for user root by ciaran(uid=0)
      Feb 03 12:09:49 router systemd[1]: Stopped LSB: Start/Stop WIDE DHCPv6 client.
      -- Subject: Unit wide-dhcpv6-client.service has finished shutting down
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has finished shutting down.
      Feb 03 12:09:49 router systemd[1]: Starting LSB: Start/Stop WIDE DHCPv6 client...
      -- Subject: Unit wide-dhcpv6-client.service has begun start-up
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has begun starting up.
      Feb 03 12:09:49 router wide-dhcpv6-client[1288]: * Starting WIDE DHCPv6 client dhcp6c
      Feb 03 12:09:49 router dhcp6c[1293]: ifreset: invalid interface(enp0s31f6): No such device
      Feb 03 12:09:49 router dhcp6c[1293]: main: failed to initialize enp0s31f6
      Feb 03 12:09:51 router wide-dhcpv6-client[1288]: ...fail!
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Control process exited, code=exited status=1
      Feb 03 12:09:51 router systemd[1]: Failed to start LSB: Start/Stop WIDE DHCPv6 client.
      -- Subject: Unit wide-dhcpv6-client.service has failed
      -- Defined-By: systemd
      -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
      --
      -- Unit wide-dhcpv6-client.service has failed.
      --
      -- The result is failed.
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Unit entered failed state.
      Feb 03 12:09:51 router systemd[1]: wide-dhcpv6-client.service: Failed with result 'exit-code'.


      its trying to use an interface that was in my config file but I renamed it and replaced the name in my config



      ciaran@router:/etc/wide-dhcpv6$ cat dhcp6c.conf
      ##
      ## This is/etc/wide-dhcpv6/dhcp6c.conf
      ##
      ## Replace the existing configuration with this one.

      # Send a PD request on the external facing interface
      # send ia-pd says ask for a prefix
      # the script is run when the prefix is acquired
      interface wan0 {
      send ia-pd 2;
      script "/etc/wide-dhcpv6/dhcp6c-script";
      };

      # Upon receiving a prefix use the
      # information to set the internal facing interface
      id-assoc pd 2 {
      prefix-interface wlan0 {
      ifid 1;
      sla-id 1;
      sla-len 0;
      };
      };

      ## End of config.


      any idea why its attempting to use the wrong interface?







      16.04 networking dhcpv6






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 3 at 20:24









      cTurtle98cTurtle98

      84




      84






















          1 Answer
          1






          active

          oldest

          votes


















          0














          there was a file in /etc/defauls setting the address to ask for a prefix on



          ciaran@router:/etc/default$ cat wide-dhcpv6-client
          # Defaults for dhcpv6 client initscript
          # Used by /etc/init.d/wide-dhcpv6-client

          # Interfaces on which the client should send DHCPv6 requests and listen to
          # answers. If empty, the client is deactivated.
          INTERFACES="enp0s31f6"

          # Verbose level for syslog. Default is 0 (0: minimal; 1: info; 2: debug)
          #VERBOSE=0


          after I changed that to wan0 it worked






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115348%2fwide-dhcpv6-is-failing-to-start-because-its-using-an-interface-that-does-not-exi%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            there was a file in /etc/defauls setting the address to ask for a prefix on



            ciaran@router:/etc/default$ cat wide-dhcpv6-client
            # Defaults for dhcpv6 client initscript
            # Used by /etc/init.d/wide-dhcpv6-client

            # Interfaces on which the client should send DHCPv6 requests and listen to
            # answers. If empty, the client is deactivated.
            INTERFACES="enp0s31f6"

            # Verbose level for syslog. Default is 0 (0: minimal; 1: info; 2: debug)
            #VERBOSE=0


            after I changed that to wan0 it worked






            share|improve this answer




























              0














              there was a file in /etc/defauls setting the address to ask for a prefix on



              ciaran@router:/etc/default$ cat wide-dhcpv6-client
              # Defaults for dhcpv6 client initscript
              # Used by /etc/init.d/wide-dhcpv6-client

              # Interfaces on which the client should send DHCPv6 requests and listen to
              # answers. If empty, the client is deactivated.
              INTERFACES="enp0s31f6"

              # Verbose level for syslog. Default is 0 (0: minimal; 1: info; 2: debug)
              #VERBOSE=0


              after I changed that to wan0 it worked






              share|improve this answer


























                0












                0








                0







                there was a file in /etc/defauls setting the address to ask for a prefix on



                ciaran@router:/etc/default$ cat wide-dhcpv6-client
                # Defaults for dhcpv6 client initscript
                # Used by /etc/init.d/wide-dhcpv6-client

                # Interfaces on which the client should send DHCPv6 requests and listen to
                # answers. If empty, the client is deactivated.
                INTERFACES="enp0s31f6"

                # Verbose level for syslog. Default is 0 (0: minimal; 1: info; 2: debug)
                #VERBOSE=0


                after I changed that to wan0 it worked






                share|improve this answer













                there was a file in /etc/defauls setting the address to ask for a prefix on



                ciaran@router:/etc/default$ cat wide-dhcpv6-client
                # Defaults for dhcpv6 client initscript
                # Used by /etc/init.d/wide-dhcpv6-client

                # Interfaces on which the client should send DHCPv6 requests and listen to
                # answers. If empty, the client is deactivated.
                INTERFACES="enp0s31f6"

                # Verbose level for syslog. Default is 0 (0: minimal; 1: info; 2: debug)
                #VERBOSE=0


                after I changed that to wan0 it worked







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 3 at 21:17









                cTurtle98cTurtle98

                84




                84






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115348%2fwide-dhcpv6-is-failing-to-start-because-its-using-an-interface-that-does-not-exi%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    第一次世界大戦

                    Touch on Surface Book