使用DE10-Standard console image该如何设置静态IP
From Terasic Wiki
(Difference between revisions)
(Created page with "1.连上网络 2.使用以下命令,更新connman: '''opkg update''' '''opkg install connman connman-angstrom-settings connman-client connman-tests connman-tools''' 3.使...") |
|||
Line 38: | Line 38: | ||
- | [[DE10 | + | [[DE10 Standard Reference FAQ|Back]] |
Latest revision as of 10:23, 18 May 2018
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.重新开机
备注:DE10-Nano console imgae的静态IP 也使用这种方法设置