Changing the USB Network IP
By default, both rM1 and rM2 expose USB Ethernet networks using the 10.11.99.1/29
network block. The devices both listen on 10.11.99.1
and assign IPs to clients in the range from 10.11.99.2
to 10.11.99.6
. You might want to change this network configuration, for example if you own both a rM1 and a rM2 and you want to plug them both to the same computer.
Warning: Be careful when changing the USB network configuration in a SSH through USB session—you could easily lock yourself out if you make a mistake! You should leave a terminal emulator like Fingerterm running on the device so that you can easily restore the network configuration to its previous state in case something goes wrong.
As an example, we’ll change the configuration to use the 10.11.88.1/29
block. First, open the network definition file located in /usr/lib/systemd/network/rndis.network
. You’ll need to change the following line:
- /usr/lib/systemd/network/rndis.network
Address=10.11.88.1/29
Then, open the DHCP server configuration located /etc/udhcpd.usb0.conf
. Look for the following lines and update them:
- /etc/udhcpd.usb0.conf
start 10.11.88.2 end 10.11.88.6 option broadcast 10.11.88.7
Restart both the DHCP server and the network service to apply the configuration changes.
$ systemctl restart busybox-udhcpd@usb0.service systemd-networkd
Finally, unplug the USB cable and plug it back again to renew your computer’s DHCP lease.