Using DHCP but there is no DHCP server ?

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

Using DHCP but there is no DHCP server ?

645 Views
UnisvrTim
Contributor III

My platform is i.MX535 running Linux which is generated by LTIB from Freescale.

The platform boots with DHCP setting in U-boot.

If there is a DHCP server, then everything is fine.

My question is:

If there is no DHCP server, how to automatically revert to static IP?

Is there any setting or configuration available in u-boot, or Linux to achieve that, or I have to write a program to detect that and do the IP setting on my own?

best regards,

Tim

Labels (1)
Tags (3)
0 Kudos
1 Reply

446 Views
VladanJovanovic
NXP Employee
NXP Employee

Probably best to put ip=none as kernel parameter, and then in startup script run dhcp client and if it fails set up ip address statically.