(I rearranged your email: provider info at the top, your actions at the bottom.)

Le 2012-08-31 03:19, Remi Locherer a écrit :
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

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 would understand this to mean:

a---[You]---b---[Them]---Internet

a = 2001:db8:1:1111::/64
b = 2001:db8:1:1110::/64

You on a = 2001:db8:1:1111::<whatever>
You on b = 2001:db8:1:1110::<whatever except 1>
Them on b = 2001:db8:1:1110::1

If you don't need a, don't configure it.

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

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.

Yeah that's all wrong. Assuming that rl0 is on network b, try:

ifconfig rl0 inet6 2001:db8:1:1110::2
route add -inet6 default 2001:db8:1:1110::1

Simon

Reply via email to