I'm new to *bsd systems. Usually in linux-based I add routes like that:
# eth0 ip address
ip a add 10.100.1.2 dev eth0
# gw is accessible via eth0 interface
ip route add 10.100.2.1 dev eth0
# default route via 10.100.2.1
ip route add default via 10.100.2.1 dev eth0
I don't understand what's wrong with my command for openbsd. It's freshly installed with no custom configs at all.
# that's one's ok
ifconfig enc0 10.100.1.2
# route: enc0: bad address
route add -host 10.100.2.1 -iface enc0
I'd appreciate any help. Thanks.