lost static eth0 after run udhcpc for wlan0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lost static eth0 after run udhcpc for wlan0

Jump to solution
1,717 Views
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 Kudos
Reply
1 Solution
1,686 Views
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

View solution in original post

2 Replies
1,687 Views
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,677 Views
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 Kudos
Reply