On Fri, Aug 31, 2012 at 09:22:06AM +0000, Stuart Henderson wrote:
> On 2012-08-31, Remi Locherer <remi.loche...@relo.ch> wrote:
> > I rented a server from Hetzner where I installed OpenBSD 5.1. Hetzner also
> > provides IPv6 but somehow with a strange setup. I got something like the 
> > following from them:
> >
> > Gateway Address: 2001:db8:1:1110::1/64
> > Subnet I can use: 2001:db8:1:1111/64
> >
> > If I now assign for example 2001:db8:1:1111:1/64 to the interface on my
> > server it doesn't let me set the default gateway becaus it's not in the
> > same subnet:
> >
> > openbsd# ifconfig rl0 inet6 2001:db8:1:1111:/64
> > openbsd# route add -inet6 default 2001:db8:1:1110::1
> > route: writing to routing socket: Network is unreachable
> > add net default: gateway 2001:db8:1:1110::1: Network is unreachable
> >
> > For Linux they give these instructions:
> > linux# ip route add 2001:db8:1:1110::1 dev eth0
> > linux# ip route add default via 2001:db8:1:1110::1
> >
> > I tried:
> > openbsd# route add -inet6 -iface 2001:db8:1:1110::1 2001:db8:1:1111::1
> > openbsd# route add -inet6 default 2001:db8:1:1110::1
> >
> > But now it's not possible to ping6 2001:db8:1:1110::1 or any other IPv6
> > address.
> 
> No idea if it will work, but you could try something like this
> 
> route add -inet6 -mpath default -ifp rl0 2001:db8:1:1110::1
> 

Unfortunately this does not work. With this the link local address is
used:

openbsd# sysctl net.inet6.ip6.multipath=1
net.inet6.ip6.multipath: 0 -> 1
openbsd# route add -inet6 -mpath default -ifp rl0 2001:db8:1:1110::1
add net default: gateway 2001:db8:1:1110::1
openbsd#  ping6 2001:db8:1:1110::1
PING6(56=40+8+8 bytes) 2001:db8:1:1111::78 --> 2001:db8:1:1110::1
ping6: sendmsg: No route to host
ping6: wrote 2001:db8:1:1110::1 16 chars, ret=-1
^C
--- 2001:db8:1:1110::1 ping6 statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss

openbsd# route -n get -inet6 2001:db8:1:1110::1
   route to: 2001:db8:1:1110::1
destination: ::
       mask: default
    gateway: 2001:db8:1:1110::1
  interface: rl0
 if address: fe80::2e0:4cff:fec2:697c%rl0
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   priority: 8 (static)
      flags: <UP,GATEWAY,DONE,STATIC>
     use       mtu    expire
      24         0         0
root@typhoon#

Reply via email to