OS build with yocto does not preserve ip address

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

OS build with yocto does not preserve ip address

1,219 Views
rajspatel1297
Contributor I

I'm using yocto gatesgarth. 

In debian 10, when I'm switching between two network(DHCP-> static), if ip address is not allocated by the host then it uses the old ip configured by the DHCP.

In yocto, the problem i'm facing is while disconnecting from one DHCP to static network does not preserve the ip address. (there is no auto ip assign in the static network)

Labels (2)
0 Kudos
Reply
1 Reply

1,197 Views
nxf63675
NXP TechSupport
NXP TechSupport

Hi rajspatel1297,

 

If there is no auto-assign you could run DHCP client from BusyBox to get the IP like below:

udhcpc -i "interface name"

 

Regards,

Israel.

0 Kudos
Reply