ARM技术论坛
直播中

嵌入式小能手

2年用户 1511经验值
擅长:嵌入式技术
私信 关注
[经验]

飞凌嵌入式ElfBoard ELF 1板卡-文件系统之配置网络参数

我们可以在系统启动之后,通过ifconfig命令配置网络参数。
root@ELF1:~# ifconfig eth0 192.168.0.232
root@ELF1:~# ifconfig eth0 netmask 255.255.255.0
root@ELF1:~# route add default gw 192.168.0.1
root@ELF1:~# ifconfig eth0 hw ether aa:bb:cc:dd:ee:ff
也可以通过修改/etc/network/interfaces文件,永久配置网络参数,例如配置eth0静态IP参数:

更多回帖

发帖
×
20
完善资料,
赚取积分