在debian beaglebone上无法将IP更改为静态

时间:2015-03-04 16:04:50

标签: linux ip debian beagleboneblack static-ip-address

我目前正在使用beaglebone black并且想避开整个dhcp问题。我正在尝试更改我的IP以保持静态;然而,在我完成所有这些并输入我的dns(因为安装了resolvconf)之后,即使我重新启动网络和整个beaglebone,它仍然不会改变IP。即使我通过更改usb的IP,放置fubar等来处理/ etc / network / interfaces中的代码也似乎也是如此 - 更新网络不会影响ifconfig。我认为网络正在从其他地方抓住这些地址,我不知道如何找到它。下面是我在/ etc / network / interfaces

中的代码
# 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

请让我知道我能做些什么。提前谢谢!

1 个答案:

答案 0 :(得分:0)

我不知道这是否会回答你的问题,但是,BBB debian发行版使用connman来管理网络。 我也无法获得静态IP地址,但这可能有助于您的研究。