kendryte / k510_buildroot

Kendryte K510 SDK
BSD 2-Clause "Simplified" License
118 stars 57 forks source link

[Bug]:dhcp change to static ip ,dns lost #434

Closed wangjianxin-canaan closed 10 months ago

wangjianxin-canaan commented 1 year ago

What happened

dhcp change to static ip, dns lost.

Reproduction steps

  1. 启动后,修改/etc/network/interfaces为如下内容

auto lo iface lo inet loopback

eth0 static ipv4 config example

auto eth0 iface eth0 inet static address 10.99.229.210 netmask 255.255.255.0 gateway 10.99.229.254

  1. 修改/etc/resolv.conf为如下内容

nameserver 10.253.0.1

  1. sync 然后reboot 4启动后查看ip和/etc/resolv.conf 静态IP设置生效,但是/etc/resolv.conf文件内容丢失,变成空文件

Hardware board

k510 crb kit

Software version

No response

Bug frequency

1/1

Anything else

No response

chenhb3 commented 10 months ago

问题已修复,由于长时间未反馈结果,因此,问题先关闭;后续若有问题,请再创建,谢谢!