Difference between revisions of "Custom IP Address"

From MOD Wiki
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ssh into the mod, then mount the FS as read-write:
+
[[Access_MOD_using_SSH|ssh into the mod]], then mount the filesystem in read-write mode.
 +
 
 +
Then run:
  
 
<source lang="bash">
 
<source lang="bash">
mount / -o remount,rw
+
sed -i "s|192.168.51.|192.168.52.|g" /etc/dnsmasq.conf /etc/network/interfaces
 +
sync && mount / -o remount,ro && sync && hmi-reset && reboot
 
</source>
 
</source>
  
then run:
+
A few notes:
 
+
* At least 1.10.4 is required to do this.
<source lang="bash">
+
* Reinstalling or updating the MOD OS will revert the changes, back to using the default 192.168.51.1 IP
sed -i "s|192.168.51.1|192.168.51.2|" /etc/network/interfaces /etc/ssh/sshd_config
 
sed -i "s|modduo|modduo2|" /etc/hostname /etc/hosts
 
sync && mount / -o remount,ro && reboot
 
</source>
 

Latest revision as of 18:03, 13 May 2022

ssh into the mod, then mount the filesystem in read-write mode.

Then run:

sed -i "s|192.168.51.|192.168.52.|g" /etc/dnsmasq.conf /etc/network/interfaces
sync && mount / -o remount,ro && sync && hmi-reset && reboot

A few notes:

  • At least 1.10.4 is required to do this.
  • Reinstalling or updating the MOD OS will revert the changes, back to using the default 192.168.51.1 IP