Using DHCP but there is no DHCP server ?

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

Using DHCP but there is no DHCP server ?

657 次查看
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

标签 (1)
标记 (3)
0 项奖励
1 回复

458 次查看
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.