跳至内容
remarkable云
跳至内容
Search
搜索
工具
显示页面
修订记录
反向链接
最近更改
媒体管理
网站地图
注册
登录
>
start
使用技巧
修改usb模式下的ip地址
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
CKG 可视编辑器
====== Changing the USB Network IP ====== By default, both rM1 and rM2 expose [[tech:usb_network|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 [[tech:ssh|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: <code ini /usr/lib/systemd/network/rndis.network> Address=10.11.88.1/29 </code> Then, open the DHCP server configuration located ''/etc/udhcpd.usb0.conf''. Look for the following lines and update them: <code conf /etc/udhcpd.usb0.conf> start 10.11.88.2 end 10.11.88.6 option broadcast 10.11.88.7 </code> Restart both the DHCP server and the network service to apply the configuration changes. <code> $ systemctl restart busybox-udhcpd@usb0.service systemd-networkd </code> Finally, unplug the USB cable and plug it back again to renew your computer’s DHCP lease.
Page Tools
站点工具
最近更改
媒体管理
网站地图
Site Tools
页面工具
显示页面
修订记录
反向链接
回到顶部
User Tools
用户工具
注册
登录