嵌入式爱好者

5718双网口ip配置

2019-3-12 13:48| 发布者: zzinlinx| 查看: 1734| 评论: 0

类目: 知识库  >  AM5718系列产品     文档编号: 264

eh0默认为动态IP

cd /etc/systemd/network/

默认有3个文件

cat 10-eth0.network

eth0 默认为dhcp模式。

[Match]
Name=eth0
KernelCommandLine=!root=/dev/nfs

[Network]
DHCP=yes

eth1配置静态IP

cp 10-eth.network 11-eth1.network

修改配置如下:

[Match]
Name=eth1

[Network]
DHCP=none
Address=192.168.1.123/24
Gateway=192.168.1.1
DNS=8.8.8.8

保存退出, 重启。

重启后,eth0为动态获取, eth1为静态IP地址。


已解决

未解决

只是看看
下一篇:i2c-tools

最新评论

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-26 13:49

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部