'rdomain' must be the first line in the file. Changing the rdomain assignment will flush all IPs on the interface, so it will be blank. Re-running netstart "works", because you aren't actually changing the interface agaain.
On 2014 May 19 (Mon) at 11:06:08 +0200 (+0200), Kjell Skogsrud wrote: :Hi : :I am using OpenBSD 5.5 as a router with rdomains. :Here is a list of my interfaces and relevant hostname files. : : - em1 the egress interface. : - em0 the trunk interface : - vlan42 http://slexy.org/view/s2naF3AZBS : - vlan43 http://slexy.org/view/s20VB137SM : :I use PF to point various IPs to internal hosts on different rdomains. :It all works great except for the !route part in the hostname files. : :At boot time I see these messages: :-------------------------------------------------------------- :starting network :route: writing to routeing socket: Network is unreachable :add net default: gateway 172.16.4.254: Network is unreachable :-------------------------------------------------------------- :But using: # sh /etc/netstart afterwards works just fine. :I have made a workaround by adding sh /etc/netstart to rc.local :but would like to know if there is a better/more correct way, and also :why it does not work like normal. : :Best regards :@kjellskogsrud : -- Machine-Independent, adj.: Does not run on any existing machine.

