Static IP Runit/OpenRC

1. Temporary

Change values as needed:

ip link set dev eth0 up
ip addr add 192.168.1.110/24 brd + dev eth0

Default gateway:

ip route add default via 192.168.1.1

2. Permanent (runit/openrc)

  • ip (command)
  • runit/openrc

Edit /etc/rc.local and add the config like this:

ip link set dev eth0 up
ip addr add 192.168.1.110/24 brd + dev eth0
ip route add default via 192.168.1.1