How do I make imx6qsabresd into a DHCP server

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

How do I make imx6qsabresd into a DHCP server

Jump to solution
1,775 Views
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

Tags (1)
0 Kudos
1 Solution
1,310 Views
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.

View solution in original post

0 Kudos
4 Replies
1,310 Views
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 Kudos
1,310 Views
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 Kudos
1,310 Views
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 Kudos
1,311 Views
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 Kudos