So I bought an ER-X about a month ago. This router has been a challenge for me to understand, in particular anything to do with the CLI. I did manage a Unix (HP-UX) network over 20 years ago, but very little of that remains in my head. The following is my setup.
Eth0= WAN port via PPPoE
Eth1 = LAN2 For My PC's, NAS, and portable devices. (192.168.200.0/24)
Eth2, Eth3, Eth4, = switch0 = For my many IOT devices. (192.168.100.0/24)
I have also created 2 dhcp servers for my 2 LANS.
Everything has worked as expected for the last few weeks, although I have not yet setup firewall rules to isolate the 2 LANS .
The other day we had a power failure, and when the ER-X rebooted, none of my devices could obtain a dhcp address from the ER-X despite me having set up reserved static IPs.
I eventually found that the DHCPD was not running (ps -e | grep dhcp). I issued "cat /var/log/messages | grep dhcp" and found absolutely nothing in the log after a reboot.
I restarted dhcpd with the command "sudo service dhcpd start", and all my devices connected immediately. After issuing the command, the message log had the message:
Rick@ubnt:/var/log$ cat /var/log/messages | grep dhcp
Oct 16 16:41:05 ubnt dhcpd: WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Can anyone tell me where dhcpd is normally started from, so that I can backtrack and see why it is failing to start and not creating a log entry?. Am I looking in the wrong log file?
Thanks