0

我目前正在使用 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

请让我知道我能做什么。先感谢您!

4

1 回答 1

0

我不知道这是否会回答你的问题,但是,BBB debian 发行版使用 connman 来管理网络。我也无法让静态 IP 地址正常工作,但也许这会对您的研究有所帮助。

于 2015-03-24T17:41:44.557 回答