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

    [SOLVED] tunnel is broken, and not sure how to fix it.

    Scheduled Pinned Locked Moved IPv6
    15 Posts 3 Posters 9.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.
    • a-a-ronA
      a-a-ron
      last edited by

      ok, windows dhcpv6 server is off. Re did all the ipv6 settings, now seeing this…

      Aug 30 23:20:49 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1
      Aug 30 23:20:49 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'' returned exit code '1', the output was 'route: writing to routing socket: No such process route: writing to routing socket: Network is unreachable change net default: gateway 2001:470:X:XXX::1: Network is unreachable'
      Aug 30 23:20:49 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1
      Aug 30 23:20:49 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
      Aug 30 23:20:49 php: : Deny router advertisements for interface opt2
      Aug 30 23:20:48 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'' returned exit code '1', the output was 'route: writing to routing socket: No such process route: writing to routing socket: Network is unreachable change net default: gateway 2001:470:X:XXX::1: Network is unreachable'
      Aug 30 23:20:48 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1
      Aug 30 23:20:48 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
      Aug 30 23:20:48 php: : ROUTING: setting default route to XXX.179.102.1
      Aug 30 23:20:48 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'' returned exit code '1', the output was 'route: writing to routing socket: No such process route: writing to routing socket: Network is unreachable change net default: gateway 2001:470:X:XXX::1: Network is unreachable'
      Aug 30 23:20:48 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1
      Aug 30 23:20:48 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'

      1 Reply Last reply Reply Quote 0
      • D
        databeestje
        last edited by

        that means your gif tunnel is down.

        1 Reply Last reply Reply Quote 0
        • a-a-ronA
          a-a-ron
          last edited by

          I think i found a bug?

          This line:

          php: /interfaces_gif_edit.php: The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'

          If I run this by hand:

          /sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen /64

          It works, and subsequent lines no longer fail. It appears the "/" on the "/64" is missing.

          I contacted, he.net and they tore down my tunnel and rebuilt it and found no fault. I looked at the "interfaces_gif_edit.php" but I don't know php well enough to find what i'm looking for.

          1 Reply Last reply Reply Quote 0
          • a-a-ronA
            a-a-ron
            last edited by

            Ok, its that line, running the command by hand the WANv6 changes:

            Before command is run
            WANV6 (opt2)    -> gif0       -> NONE/NONE     2001:470:X:XXX::2/64

            After
            WANV6 (opt2)    -> gif0       -> NONE/NONE     2001:470:X:XXX::2/126

            /sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen /64

            /sbin/route change -inet6 default '2001:470:X:XXX::1'

            change net default: gateway 2001:470:X:XXX::1

            EDIT: Missed redacting an IP.

            1 Reply Last reply Reply Quote 0
            • D
              databeestje
              last edited by

              that we can change. Thanks for investigating

              1 Reply Last reply Reply Quote 0
              • a-a-ronA
                a-a-ron
                last edited by

                Ok, I just grabbed the latest download, new errors are popping up now :(

                Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
                Sep 1 10:23:27 php: : Deny router advertisements for interface opt2
                Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
                Sep 1 10:23:27 php: : ROUTING: setting default route to XXX.179.102.1
                Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'

                1 Reply Last reply Reply Quote 0
                • T
                  tebeve
                  last edited by

                  @djroketboy:

                  Ok, I just grabbed the latest download, new errors are popping up now :(

                  Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                  Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                  Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
                  Sep 1 10:23:27 php: : Deny router advertisements for interface opt2
                  Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                  Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'
                  Sep 1 10:23:27 php: : ROUTING: setting default route to XXX.179.102.1
                  Sep 1 10:23:27 php: : The command '/sbin/route change -inet6 default '2001:470:X:XXX::1'%'gif0'' returned exit code '1', the output was '2001:470:X:XXX::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 10:23:27 php: : ROUTING: setting IPv6 default route to 2001:470:X:XXX::1%gif0
                  Sep 1 10:23:27 php: : The command '/sbin/ifconfig gif0 inet6 2001:470:X:XXX::2 2001:470:X:XXX::1 prefixlen 64 ' returned exit code '1', the output was 'ifconfig: ioctl (SIOCAIFADDR): Invalid argument'

                  Well, crap… should have checked the forum before updating... i'm now seeing this as well.

                  2.1-DEVELOPMENT (i386)
                  built on Thu Sep 1 11:03:54 EDT 2011

                  Sep 1 17:49:23 php: : The command '/sbin/route change -inet6 default '2001:470:xxxx:xxx::1'%'gif0'' returned exit code '1', the output was '2001:470:xxxx:xxx::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 17:49:23 php: : ROUTING: setting IPv6 default route to 2001:470:xxxx:xxx::1%gif0
                  Sep 1 17:49:23 php: : The command '/sbin/route change -inet6 default '2001:470:xxxx:xxx::1'%'gif0'' returned exit code '1', the output was '2001:470:xxxx:xxx::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 17:49:23 php: : ROUTING: setting IPv6 default route to 2001:470:xxxx:xxx::1%gif0
                  Sep 1 17:49:23 php: : Deny router advertisements for interface opt1
                  Sep 1 17:49:23 php: : The command '/sbin/route change -inet6 default '2001:470:xxxx:xxx::1'%'gif0'' returned exit code '1', the output was '2001:470:xxxx:xxx::1%gif0: hostname nor servname provided, or not known'
                  Sep 1 17:49:23 dhcpleases: Could not deliver signal HUP to process because its pidfile does not exist, No such file or directory.
                  Sep 1 17:49:23 php: : ROUTING: setting IPv6 default route to 2001:470:xxxx:xxx::1%gif0
                  Sep 1 17:49:23 php: : ROUTING: setting default route to xxx.xxx.98.1
                  Sep 1 17:49:23 php: : The command '/sbin/route change -inet6 default '2001:470:xxxx:xxx::1'%'gif0'' returned exit code '1', the output was '2001:470:xxxx:xxx::1%gif0: hostname nor servname provided, or not known'

                  1 Reply Last reply Reply Quote 0
                  • D
                    databeestje
                    last edited by

                    oops, ok i see what I did wrong, the interface scope should only be passed onto link local addresses.

                    Sorry!

                    1 Reply Last reply Reply Quote 0
                    • T
                      tebeve
                      last edited by

                      No worries… this is what we're here to help with after all, right. ;-)

                      Thanks for all your work, Seth!

                      1 Reply Last reply Reply Quote 0
                      • D
                        databeestje
                        last edited by

                        Both should be fixed just now.

                        1 Reply Last reply Reply Quote 0
                        • a-a-ronA
                          a-a-ron
                          last edited by

                          Thanks!!!  ;D I'm back up and running.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.