On Sat, Apr 09, 2016 at 10:16:51AM +0200, Jeremie Le Hen wrote:
> Hi,
>
> My interface has a /32 IP address and the gateway is .254.  Obviously I
> need to do something special with the routing table because the router
> is not accessible.
>
> Until 5.7 I used to add a direct route to the router and then add a
> default route as usual:
>
> # ifconfig em0 inet a.b.c.d/32
> # route add -llinfo -iface -host a.b.c.254 a.b.c.254 -ifp em0
> # route add dfault a.b.c.254
>
>
> Then it broke on 5.8 and I had to switch to:
>
> # ifconfig em0 inet a.b.c.d/32
> # route add -llinfo -iface -net default a.b.c.254 -ifp em0
>
>
> But on 5.9, boths setups don't work:
>
> # ping a.b.c.254
> PING a.b.c.254 (a.b.c.254): 56 data bytes
> ping: sendto: Invalid argument
> ping: wrote a.b.c.254 64 chars, ret=-1
>
>
> Can anyone advise the proper way to do this please?

This is broken in 5.9 indeed. You can either switch to -current or
apply this patch to 5.9 sources:
http://marc.inf½?l=openbsd-tech&m=145701234317330&w=2

--
Matthieu Herrb

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]

Reply via email to