################# 静态IP配置 #################
vi /etc/network/interfaces
在文件末尾添加以下内容:
auto eth0
iface eth0 inet static
address 192.168.199.129
netmask 255.255.255.0
gateway 192.168.199.1
即可实现主机和开发板之间的网络连接。
################# 动态IP配置 #################
# 查看网卡
ifconfig -a
# 开启eth0
ifconfig eth0 up
# 配置动态IP
udhcpc -i eth0