Run:
ifconfigThis lists all network interfaces (e.g., em0, re0, wlan0).
Example for interface em0 with static IP:
doas ifconfig em0 inet 103.104.206.129 netmask 255.255.255.254 up
doas route add default 103.104.206.128103.104.206.129โ public IP255.255.255.254โ subnet mask103.104.206.128โ gateway
Check with:
ifconfig em0
netstat -rnEdit /etc/resolv.conf if needed:
nameserver 103.104.204.246
nameserver 103.104.204.247
Test ping to Google DNS / Cloudflare:
ping 8.8.8.8
ping 1.1.1.1