lost static eth0 after run udhcpc for wlan0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

lost static eth0 after run udhcpc for wlan0

跳至解决方案
1,096 次查看
luan_duy
Contributor II

I am running i.MX8M Quad - kernel 5.10.72 with CYW54591 moduleand  i had a problem.

I am setting static IP for eth0 by following config:

root@imx8mqevk:~/Script/CYW# cat /etc/systemd/network/70-static.network
[Match]
Name=eth0

[Network]
Address=192.168.52.88/24
Gateway=192.168.52.1
DNS=8.8.8.8

I can see address of eth0 when I start platform as following picture:

キャプチャ.PNG

But after I connect to AP and run DHCP, static IP of eth0 was lost.

キャプチャ2.PNG

It was not appear on kernel 4.14, only on kernel 5.10.

Can you show me how to solve it?

0 项奖励
1 解答
1,065 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @luan_duy 

I hope you are doing well.

Please assign static IP address of eth0 with below mentioned command.

dhcpcd -S ip_address=<IP Address> -S rounters=<GW Address> -S subnet_mask=<Subnet address> eth0

After above command try to execute command "udhcpc -i wlan0" an check the static IP of eth0.

Thanks & Regards

Sanket Parekh

在原帖中查看解决方案

2 回复数
1,066 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @luan_duy 

I hope you are doing well.

Please assign static IP address of eth0 with below mentioned command.

dhcpcd -S ip_address=<IP Address> -S rounters=<GW Address> -S subnet_mask=<Subnet address> eth0

After above command try to execute command "udhcpc -i wlan0" an check the static IP of eth0.

Thanks & Regards

Sanket Parekh

1,056 次查看
luan_duy
Contributor II

Thank you very much.

I could resolve this problem through config "connman" service, and it is working well.

But I will try by your way.

 

Thanks and  Regards.

Luan

0 项奖励