"Max Power" <open...@cpnetserver.net> writes:

> Hi guys,
> I need to configure my Virtual Host [OpenBSD 6.0 amd64]
> in the way [bottom: Linux example]:
>
> auto eth0
> iface eth0 inet static
>       address 5.6.77.8
>       netmask 255.255.255.255
>       broadcast 5.6.77.8
>       post-up route add 123.4.5.254 dev eth0
>       post-up route add default gw 123.4.5.254
>       post-down route del default gw 123.4.5.254
>       post-down route del 123.4.5.254 dev eth0
>
> Can someone tell me how to do?

Searching the web for this gives lots of results, but the magic route
invocation seems to have evolved in past releases.  For reference,
starting with 6.0 the hostname.if setup should be as simple as:

  inet 5.6.77.8 255.255.255.255
  !route add 123.4.5.254 -link -iface \$if

And then put 123.4.5.254 in /etc/mygate.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to