首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在debian beaglebone上将IP更改为静态

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

Stack Overflow用户
提问于 2015-03-05 00:04:50
回答 1查看 888关注 0票数 0

我目前使用的是beaglebone black,想要避开整个dhcp问题。我正在尝试更改我的IP以保持静态;但是,当我完成所有这些操作并输入我的dns (因为安装了resolvconf )后,即使我重新启动了网络和整个beaglebone,它仍然不会更改IP。似乎即使我通过更改usb的IP地址、放置fubar等来修改/ etc / network /interface中的代码,更新网络也不会影响ifconfig。我在想,网络正在从其他地方抢走这些地址,但我不确定如何找到这个地址。下面是我在/etc/network/interface中的代码

代码语言:javascript
复制
# 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

请告诉我我能做些什么。提前谢谢你!

EN

回答 1

Stack Overflow用户

发布于 2015-03-25 01:41:45

我不知道这是否能回答你的问题,但是,BBB debian发行版使用connman来管理网络。我也不能得到一个静态的IP地址来工作,但这可能会对你的研究有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28859155

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档