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
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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;
}
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