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

You have to add the gateway first, an example can be found in the route(8) manpage: https://man.openbsd.org/route#EXAMPLES :

"Add a static inet6(4) route to a host which is on the vio0 interface that is outside your prefix, and use that host as a default gateway, as used by some hosting providers:

# route add -inet6 2001:db8:efef::1 -cloning -link -iface vio0
# route add -inet6 default 2001:db8:efef::1"


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

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?


Reply via email to