Skip to content

Static IP

Setting a static IP for your RoninDojo makes it reliably reachable on your local network. This prevents your router from rotating the RoninDojo’s IP address, for example after a router power cycle.

  1. Disable the Network Manager service.

    Terminal window
    sudo systemctl disable --now NetworkManager.service
  2. Display your current IP address.

    Terminal window
    ip route get 1.1.1.1 | awk '{print$7}'
  3. Display your network interface name.

    Terminal window
    ip route get 1.1.1.1 | awk '{print$5}'
  4. Display your gateway.

    Terminal window
    ip route get 1.1.1.1 | awk '{print$3}'
  5. Create the system network directory.

    Terminal window
    sudo mkdir /etc/systemd/network
  6. Create the network configuration file.

    Terminal window
    sudo nano /etc/systemd/network/eth0.network
  7. Add the configuration below, then save (Ctrl + O) and exit.

    [Match]
    Name=eth0
    [Network]
    Address=192.168.1.21
    Gateway=192.168.1.1
    DNS=8.8.8.8
    DNS=8.8.4.4
  8. Enable the new network service.

    Terminal window
    sudo systemctl enable --now systemd-networkd.service