Setting Static IP Address
Page Contents
Last edited by
Editor
08/06/2025

Setting Static IP address

Below we will go over how to set a static IP for your RoninDojo for accessing it on your local network. This will prevent your modem from rotating you RoninDojo's IP in the event of a modem power reset.

  1. Disable Network Manager service
sudo systemctl disable --now NetworkManager.service
  1. Display current IP address
ip route get 1.1.1.1 | awk '{print$7}'
  1. Display network interface name
ip route get 1.1.1.1 | awk '{print$5}'
  1. Display your gateway
ip route get 1.1.1.1 | awk '{print$3}'
  1. Create system network directory
sudo mkdir /etc/systemd/network
  1. Create network configuration file
sudo nano /etc/systemd/network/eth0.network

Replace eth0 with output from step 3

[Match]
Name=eth0

[Network]
Address=192.168.1.21
Gateway=192.168.1.1
DNS=8.8.8.8
DNS=8.8.4.4

Replace values in Name, Address & Gateway variables above with output from steps 2, 3 & 4.

  • Save file(CTRL+O) then exit
  1. Enable new network service
sudo systemctl enable --now systemd-networkd.service

Additional Info

Check out the Troubleshooting page for more info.

Need help? Try out our Support Service.

Join the RoninDojo Chatroom and engage the community.