Filip Lax wrote on 06.06.2026 23:26:
Hi I have a VPS with provider that give static IP6 without DHCP. I don't understand how should set it up, nothing I try work, The provider show this info:IP address: 2a03:118e:202:55:: Subnet: 2a03:118e:202::/64 Gateway: 2a03:118e:202::1 (I alter some numbers +/- just for anonmity but format is still correct) I don't know how to set this Gateway because OpenBSD say "Network is unreachable": # ifconfig vio0 inet6 2a03:118e:202:55:: prefixlen 64 # route add -inet6 default 2a03:118e:202::1 add net default: gateway 2a03:118e:202::1: Network is unreachable I test also autoconf6 and see slaacd get RA, And it put fe80:etc:etc%vio0 route as default. I have disabled PF to be sure, and also tried with single rule: "pass all". Still no IP6 traffic in or out. So I install Linux to the VPS to test IP6 there - it's normal and works good. It has static setup with "netplan". Here is "ip -6 a" and "ip -6 route show" from Linux: inet6 2a03:118e:202:55::/64 scope global valid_lft forever preferred_lft forever inet6 fe80::6e21:94ff:fe7a:c358/64 scope link proto kernel_ll valid_lft forever preferred_lft forever
To make it survive a reboot, you configure /etc/hostname.vio0 with the IPv6/subnet and add the gateway to /etc/mygate, see mygate(5) https://man.openbsd.org/mygate.5
2a03:118e:202:55::/64 dev eth0 proto kernel metric 256 pref medium fe80::/64 dev eth0 proto kernel metric 256 pref medium default via 2a03:118e:202::1: dev eth0 proto static metric 1024 onlink pref medium default nhid 1211265837 via fe80::5:73ff:fea0:72 dev eth0 proto ra metric 1024 expires 1685sec pref medium Sorry for linux copy/paste. How can I replicate this for OpenBSD so my IP6 will work?

