Difference between revisions of "Custom IP Address"

From MOD Wiki
Jump to navigation Jump to search
(link to ssh page)
 
Line 4: Line 4:
  
 
<source lang="bash">
 
<source lang="bash">
sed -i "s|192.168.51.1|192.168.52.1|" /etc/dnsmasq.conf /etc/network/interfaces /etc/ssh/sshd_config
+
sed -i "s|192.168.51.|192.168.52.|g" /etc/dnsmasq.conf /etc/network/interfaces
# systemctl disable avahi-daemon
+
sync && mount / -o remount,ro && sync && hmi-reset && reboot
# systemctl disable avahi-dnsconfd
 
sync && mount / -o remount,ro && sync && reboot
 
 
</source>
 
</source>
  
NOTE: At this point it's not possible to have 2 MODs connected via USB, even if they use different IPs.<br>
+
A few notes:
If you need 2 MODs, consider using one MOD connected via USB and the other connected via Bluetooth.
+
* 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

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