Penned by Claudio Jeker on 20120831 9:27.50, we have: | On Fri, Aug 31, 2012 at 09:22:06AM +0000, Stuart Henderson wrote: | > On 2012-08-31, Remi Locherer <[email protected]> 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 | > | | Bad adivece. Hetzner gave the wrong gateway or the wrong network. It is | funny that the Linux example they give is using proper network numbers. | | In short, the gateway MUST be part of a connected route (network | configured on the interface) because ND or ARP for INET is needed to | figure out the MAC address to talk to that host on the L2 network. | | The only excpetion are point to point interfaces but those have a | destination IP on the interface and don't need a L2 address resolution | protocol. | -- | :wq Claudio
I hate exceptions. 1and1.com, I'm looking at you. This abomination has survived too many years: hostname.if: !route add -llinfo -iface -net 10.255.0.0/16 10.255.255.1 -ifp nfe0 inet 1.2.3.4 255.255.255.255 inet 1.2.4.3 255.255.255.255 ... mygate: 10.255.255.1 This forces the subnet to be on the interface so one can reach a router without having any IP's on the local system corresponding to the remote router IP. Thanks, -- Todd Fries .. [email protected] _____________________________________________ | \ 1.636.410.0632 (voice) | Free Daemon Consulting, LLC \ 1.405.227.9094 (voice) | http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX) | 2525 NW Expy #525, Oklahoma City, OK 73112 \ sip:[email protected] | "..in support of free software solutions." \ sip:[email protected] \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A http://todd.fries.net/pgp.txt

