目录

Beaglebone Black Debian配置静态IP

系列 - 从零开始的嵌入式Linux-1周目
目录

Beaglebone Black上的Debian系统使用ifupdown管理网络。为了便于在局域网中使用SSH调试,现将开发板设置为静态IP.

  1. 以太网口是eth0网络设备,修改之前先拔掉网线或者down掉。
$ ifconfig eth0 down
  1. 编辑/etc/network/interfaces, 在其中编辑/增加eth0部分:
auto eth0
iface eth0 inet static
address 10.168.1.180
netmask 255.255.255.0
gateway 10.168.1.1
  1. 重启网络服务
service networking restart