I've been told that this is in the archives, but I couldn't find it, so I
re-invented it and am presenting it here for anyone else who may find
themselves in a similarly frustrating situation.
The problem is that 1and1 hosting choses to have any root servers
setup with `ip subnet zero'. That's a fancy way of stating that they
expect systems to setup IP's with netmasks of 255.255.255.255 and then
route to 10.255.255.1 `magically'.
On a linux system dhcp is able to setup this routing table:
$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
10.255.255.1 0.0.0.0 255.255.255.255 UH 0 0 0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.255.255.1 0.0.0.0 UG 0 0 0
To manually implement this when their dhcpd is down (whee!) one would do this:
Unfortunately, it doesn't work at `home' on OpenBSD. While the obvious thing
that came to my mind first was to set an inet alias for 10.255.255.2 and set a
default route to 10.255.255.1, this would then send all packets out vr0 with a
src IP of 10.255.255.2, not good.
So to get a similar functionality I implemented this gross `hack #1'
Unfortunately this has two drawbacks, namely, the mac address is hardcoded
and there are now three IP's unreachable: 126.96.36.199, 188.8.131.52, 184.108.40.206.
Henning pointed me to the '-llinfo' and '-iface' flags of the route(8)
which permits the following `hack #2'. Note that both drawbacks of `hack #1'
have been addressed. This is the best way I've found to deal with
1and1 hosting's odd choice of routing setup:
Yes, I changed the IP and mac of the colo I'm taking care of at 1and1; I left
the IP and mac of 1and1's subnet zero mess intact to provide maximal help to
anyone experiencing this same hosting provider.
No, 1and1 does not `support' OpenBSD as an os. To install OpenBSD, I
yaifo and realized that one can pepare a disk image with no fdisk label but
simply a disklabel. This image can be made bootable, and it can be dd'ed
directly to any disk. This is similar but destructively different than dd'ing
the filesystem image to the swap partition on sparc. Since I had special
routing issues and 1and1 does provide serial console, I didn't really need
yaifo's custom sshd setup.
(keeping cross-post of original poster because I
don't have a better idea)
Todd T. Fries dixit:
>The problem is that 1and1 hosting choses to have any root servers
>setup with `ip subnet zero'. That's a fancy way of stating that they
>expect systems to setup IP's with netmasks of 255.255.255.255 and then
>route to 10.255.255.1 `magically'.
Ah, they're doing it the same as Strato then.
Thanks to Matthias Kilian for discovering the following fix:
It does suck somehow, though. There are arp messages in dmesg.
> emacs als auch vi zum Kotzen finde (joe rules) und pine f|r den einzig
> bedienbaren textmode-mailclient halte (und ich hab sie alle ausprobiert). ;)
Hallooooo, ich bin der Holger ("Hallo Holger!"), und ich bin ebenfalls
... pine-User, und das auch noch gewohnheitsmd_ig ("Oooooooohhh"). [aus dasr]