MyFPGA Forum

 找回密码
 注册
搜索
查看: 1384|回复: 0

【FAQ】使用DE10-Nano console image时设置静态IP

[复制链接]
发表于 2020-6-17 16:18:41 | 显示全部楼层 |阅读模式
本帖最后由 wyzhou 于 2020-6-17 17:30 编辑

Q: 使用DE10-Nano console image时,该如何设置静态IP?
A: 按照如下步骤操作:

1.连上网络

2.使用以下命令,更新connman:
opkg update
opkg install connman connman-angstrom-settings connman-client connman-tests connman-tools

3.使用以下命令创建并编辑设定档:

mkdir /var/lib/connman/ethernet_000000000000_cable
vim /var/lib/connman/ethernet_000000000000_cable/settings
[ethernet_000000000000_cable]
Name=Wired
AutoConnect=true
IPv4.method=manual
IPv4.local_address=192.168.21.2
IPv4.netmask_prefixlen=24
IPv4.gateway=192.168.21.1
IPv6.method=auto
IPv6.privacy=disabled


4.重新开机
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|MyFPGA

GMT+8, 2024-4-19 07:48 , Processed in 0.035083 second(s), 20 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表