How do I make imx6qsabresd into a DHCP server

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

How do I make imx6qsabresd into a DHCP server

跳至解决方案
2,239 次查看
tfarnham
Contributor II

I'm having difficulty getting the sabre board to be a DHCP server for my network.

Within my own layer using the Yocto framework:

I have created a dhcp_%.bbappend

I have my own dhcpd.conf

I have my own default-server file

I have validated that the created image does in fact include my versions of these files.

When I boot the image, I see the message:

Starting DHCP server: No state is present for card imxhdmisoc

I must be missing something, or have the files configured incorrectly.  I am hoping someone has the proper setup steps for configuration, or possibly knows how I might go about troubleshooting the startup issue.

Thanks,


Terry Farnham

标记 (1)
0 项奖励
回复
1 解答
1,774 次查看
tfarnham
Contributor II

Added the following to my eth0 interface:

    post-up /etc/init.d/dhcp-server start

    pre-down /etc/init.d/dhcp-server stop

which fixes the automatic start/stop of the dhcp server.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,774 次查看
b36401
NXP Employee
NXP Employee

Actually "No state is present for card" is not a error message. It is just a minor warning.

So please check if DHCP server is up and repliing the requests.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,774 次查看
tfarnham
Contributor II

I agree, the warning that appears seems to be unrelated as well.  I have been able to verify that I can successfully run the dhcpd daemon.  I do, however, have something incorrectly configured.  I'm guessing my dhcpd.conf file has something wrong.  My windows box issues the error upon dhcp renewal:

"An error occurred while renewing interface Ethernet : The parameter is incorrect."

However, the adapters are seeing the "foobar.com" DNS suffix

Here is my dhcpd.conf - maybe someone with better understanding can help me locate the problem.

---------------------

default-lease-time 600;         # 10 minutes

max-lease-time 7200;            # 2  hours

option domain-name "foobar.com";

option domain-name-servers 10.0.0.1, 10.0.0.2;

option broadcast-address 10.0.0.255;

option routers 0.0.0.254;

option subnet-mask 255.255.255.0;

subnet 10.0.0.0 netmask 255.255.255.0

{

  range 10.0.0.10 10.0.0.20;

  range 10.0.0.100 10.0.0.200;

}

0 项奖励
回复
1,774 次查看
tfarnham
Contributor II

I figured out my typo shortly after I posted:

option routers 10.0.0.254;

However, I am still having difficulty getting the dhcp-server to actually startup properly at boot time.  I always seem to have to manually start it after boot up and login.

Terry

0 项奖励
回复
1,775 次查看
tfarnham
Contributor II

Added the following to my eth0 interface:

    post-up /etc/init.d/dhcp-server start

    pre-down /etc/init.d/dhcp-server stop

which fixes the automatic start/stop of the dhcp server.

0 项奖励
回复