[SOLVED] OpenWrt will not give IP address to lan computer

OpenWrt will not issue an IP address on lan connected computer.
Below are my "network" and "dhcp" configurations.
Is there something wrong with the parameters that would prevent IP address issuance ?


From what we can see, yes, your subnet mask is wrong. It should be 255.255.255.0 (you are missing the first 2).

Also, while not directly related to your issue:

  • remove the gateway and dns lines from the lan interface.
  • remove the ifname line from the wan.

Restart and test again.

Darn! the 55.255.255.0 was a typo error when I edited the file.
Thanks for noticing. This was the error.
As for the dns and gateway, this was dictated in a video I got from YouTube.
I wonder why it was suggested.

Anyway, correcting the subnet mask did the job.
I now can utilize my PRODESK as a router.
It would have taken me two day to get there.

My next step is to copy this SSD drive onto an M.2 drive, so that my PRODESK PC runs on this PCIe drive. But that's a task for tomorrow. :slightly_smiling_face:
Thanks again for everything.
Thank you so much.

Because if WAN is DHCP then DNS is passed to the router which forwards DNS based on its table.

e.g. client needs DNS, sends DNS request to gateway/router, router passes request set by ISP.

This is the case. Then, why taking it out ?
Should these line be added to the wan side ?

It is redundant and setting it in stone could cause problems if the router has a configuration change.

If everything is DHCP then leave it alone; if you look at the connection properties in Windows DNS should be set without changing anything.

If you can surf and you do not care who resolves addresses you are done.

:spiral_notepad:oh, 10.0.0.1; @psherman has it right.

1 Like

The DNS entries in the network interface stanzas only have an effect if they are on the upstream network (i.e. wan). A downstream network (typically a lan) does not use this field.

You can change the resolvers elsewhere, if desired.

Not unless you actually have a DNS server at that address. If your router will be connected directly to your internet and your lan is on the192.168.5.0/24 network, you don't have access to a dns server at 10.0.0.1 (since that is an RFC1918 address).

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.