Static IP
Setting a Static IP Address
Section titled “Setting a Static IP Address”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.
-
Disable the Network Manager service.
Terminal window sudo systemctl disable --now NetworkManager.service -
Display your current IP address.
Terminal window ip route get 1.1.1.1 | awk '{print$7}' -
Display your network interface name.
Terminal window ip route get 1.1.1.1 | awk '{print$5}' -
Display your gateway.
Terminal window ip route get 1.1.1.1 | awk '{print$3}' -
Create the system network directory.
Terminal window sudo mkdir /etc/systemd/network -
Create the network configuration file.
Terminal window sudo nano /etc/systemd/network/eth0.network -
Add the configuration below, then save (
Ctrl + O) and exit.[Match]Name=eth0[Network]Address=192.168.1.21Gateway=192.168.1.1DNS=8.8.8.8DNS=8.8.4.4 -
Enable the new network service.
Terminal window sudo systemctl enable --now systemd-networkd.service