我目前使用的是beaglebone black,想要避开整个dhcp问题。我正在尝试更改我的IP以保持静态;但是,当我完成所有这些操作并输入我的dns (因为安装了resolvconf )后,即使我重新启动了网络和整个beaglebone,它仍然不会更改IP。似乎即使我通过更改usb的IP地址、放置fubar等来修改/ etc / network /interface中的代码,更新网络也不会影响ifconfig。我在想,网络正在从其他地方抢走这些地址,但我不确定如何找到这个地址。下面是我在/etc/network/interface中的代码
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE
# The secondary network interface
#allow-hotplug eth1
#iface eth1 inet dhcp
# WiFi Example
#auto wlan0
#iface wlan0 inet static
# wpa-ssid "essid"
# wpa-psk "TMS"
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.31.49.168
netmask 255.255.252.0
gateway 10.31.49.253
dns-domain tms.local
dns-nameserver 10.31.49.6
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
dns-nameservers 10.31.49.6
dns-search lan请告诉我我能做些什么。提前谢谢你!
发布于 2015-03-25 01:41:45
我不知道这是否能回答你的问题,但是,BBB debian发行版使用connman来管理网络。我也不能得到一个静态的IP地址来工作,但这可能会对你的研究有所帮助。
https://stackoverflow.com/questions/28859155
复制相似问题