Hello
I would like to have DHCP-Server on my Omnia Router.
This server should also provide some Private IP for a DNS Server and for the NTP Server.
Where could this be defined so every DHCP Requester get this information too?
The Omnia router already has a DHCP-Server installed by default. It is Dnsmasq. You can configure it in the /etc/config/dhcp file to send information to DHCP Requesters with the list dhcp_option '...' directive.
Here, the line list dhcp_option '6,192.168.1.1' indicates that Dnsmasq will send 192.168.1.1 to DHCP Requesters on the LAN as the IP address of the DNS server (code 6) they should use.
You can get the list of codes for DHCP options with the following command:
You can see that code 42 can be used to give the IP address of the NTP server to DHCP Requesters. For that, add this line to the config dhcp 'lan' section:
list dhcp_option '42,aaa.bbb.ccc.ddd'
aaa.bbb.ccc.ddd being the IP address of the NTP server.
The syntax looks good to me. I’ve read some times ago that some DHCP requesters do not support code 119. I never used this code myself, so I let you give it a try!
Feel free to come back and tell us if that works for you. It could be useful for other users interested by this topic.
how to open ssh access over WAN?
or
would it also bee posible to access it via LAN connection in the same network?
i can’t find a point in the GUI to switch it on or off