改变Beagle Bone Black USB0的静态IP [英] Changing the static IP of Beagle Bone Black USB0
问题描述
我的目标是更改 USB0
的IP地址。
Beagle Bone黑色奔跑Debian。
我尝试更改 / etc / network / interfaces
,使默认地址为 192.168 .7.3
而不是 192.168.7.2
如下:
iface usb0 inet static
地址192.168.7.3
netmask 255.255.255.0
网络192.168.7.0
网关192.168.7.1
运行
/ etc / init。 d / networking restart
它仍然在 192.168.7.2
。
我尝试重新签署,但是无济于事。
我尝试更改 / boot / uboot / scripts中的IP地址/setup-ubuntu-armhf-3.8.13-bone30.sh
,但基本上这个文件会覆盖 / etc / network / interfaces
。
重新启动后仍然IP仍然是 192.168.7.2
。
编辑: strong>
还尝试更改IP:
/ media / Angstrom / usr / bin / g-ether -load.sh
/media/Angstrom/etc/udev/rules.d/udhcpd.rules
哪些不起作用。
尝试更改:
/opt/scripts/boot/am335x_evm.sh
现在网络无法访问:
ssh:连接到主机192.168.7.3端口22:网络无法访问
/ pre>
解决方案经过多次搜索和尝试,我得出结论,这不能以任何简单的方式完成。
My goal is to change the IP address of
USB0
. The Beagle Bone Black run Debian.I tryed to change
/etc/network/interfaces
such that default address is192.168.7.3
instead of192.168.7.2
as this:iface usb0 inet static address 192.168.7.3 netmask 255.255.255.0 network 192.168.7.0 gateway 192.168.7.1
After running
/etc/init.d/networking restart
It was still on
192.168.7.2
. I tryed rebotting, and yet is to no avail.I tryed to change the IP address in
/boot/uboot/scripts/setup-ubuntu-armhf-3.8.13-bone30.sh
, but basicly this file overwrites/etc/network/interfaces
. Still after reboot the IP is still192.168.7.2
.Edit: Also tryed to change the IP in:
/media/Angstrom/usr/bin/g-ether-load.sh /media/Angstrom/etc/udev/rules.d/udhcpd.rules
Which didn't work.
Tryed to change it in:
/opt/scripts/boot/am335x_evm.sh
And now the network is unreachable:
ssh: connect to host 192.168.7.3 port 22: Network is unreachable
解决方案After much search and trying i conclude that this cannot be done in any simple way.
这篇关于改变Beagle Bone Black USB0的静态IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!