lost static eth0 after run udhcpc for wlan0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

lost static eth0 after run udhcpc for wlan0

ソリューションへジャンプ
1,919件の閲覧回数
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,888件の閲覧回数
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,889件の閲覧回数
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,879件の閲覧回数
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 件の賞賛
返信