• 正文
  • 相關(guān)推薦
申請入駐 產(chǎn)業(yè)圖譜

飛凌嵌入式ElfBoard ELF 1板卡 文件系統(tǒng)之配置網(wǎng)絡(luò)參數(shù)

19小時前
451
加入交流群
掃碼加入
獲取工程師必備禮包
參與熱點資訊討論

我們可以在系統(tǒng)啟動之后,通過ifconfig命令配置網(wǎng)絡(luò)參數(shù)。

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文件,永久配置網(wǎng)絡(luò)參數(shù),例如配置eth0靜態(tài)IP參數(shù):

相關(guān)推薦