Dhcp stop working.


#1

I dont know why but after some changes my dhcp didnt survive a restart:

ay 27 18:09:06 vyosmanowar dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R8 May 27 18:09:06 vyosmanowar dhcpd: Copyright 2004-2013 Internet Systems Consortium. May 27 18:09:06 vyosmanowar dhcpd: All rights reserved. May 27 18:09:06 vyosmanowar dhcpd: For info, please visit https://www.isc.org/software/dhcp/ May 27 18:09:08 vyosmanowar dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R8 May 27 18:09:08 vyosmanowar dhcpd: Copyright 2004-2013 Internet Systems Consortium. May 27 18:09:08 vyosmanowar dhcpd: All rights reserved. May 27 18:09:08 vyosmanowar dhcpd: For info, please visit https://www.isc.org/software/dhcp/ May 27 18:09:08 vyosmanowar dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R8 May 27 18:09:08 vyosmanowar dhcpd: Copyright 2004-2013 Internet Systems Consortium. May 27 18:09:08 vyosmanowar dhcpd: All rights reserved. May 27 18:09:08 vyosmanowar dhcpd: For info, please visit https://www.isc.org/software/dhcp/ May 27 18:09:08 vyosmanowar dhcpd: Wrote 0 leases to leases file. May 27 18:09:08 vyosmanowar dhcpd: May 27 18:09:08 vyosmanowar dhcpd: No subnet declaration for eth1 (192.168.139.1). May 27 18:09:08 vyosmanowar dhcpd: ** Ignoring requests on eth1. If this is not what May 27 18:09:08 vyosmanowar dhcpd: you want, please write a subnet declaration May 27 18:09:08 vyosmanowar dhcpd: in your dhcpd.conf file for the network segment May 27 18:09:08 vyosmanowar dhcpd: to which interface eth1 is attached. ** May 27 18:09:08 vyosmanowar dhcpd: May 27 18:09:08 vyosmanowar dhcpd: May 27 18:09:08 vyosmanowar dhcpd: No subnet declaration for eth0 (X.X.X.X). May 27 18:09:08 vyosmanowar dhcpd: ** Ignoring requests on eth0. If this is not what May 27 18:09:08 vyosmanowar dhcpd: you want, please write a subnet declaration May 27 18:09:08 vyosmanowar dhcpd: in your dhcpd.conf file for the network segment May 27 18:09:08 vyosmanowar dhcpd: to which interface eth0 is attached. ** May 27 18:09:08 vyosmanowar dhcpd: May 27 18:09:08 vyosmanowar dhcpd: May 27 18:09:08 vyosmanowar dhcpd: Not configured to listen on any interfaces!
I fixed it doing a symlink from /opt/vyatta/etc/dhcpd.conf to /etc/dhcp3/dhcpd.conf
This happened on 3 vyos installations

May 27 18:10:08 vyosmanowar dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
May 27 18:10:10 vyosmanowar dhcpd: last message repeated 2 times
May 27 18:10:10 vyosmanowar dhcpd:
May 27 18:10:10 vyosmanowar dhcpd: No subnet declaration for eth0 (x.x.x.x).
May 27 18:10:10 vyosmanowar dhcpd: ** Ignoring requests on eth0.  If this is not what
May 27 18:10:10 vyosmanowar dhcpd:    you want, please write a subnet declaration
May 27 18:10:10 vyosmanowar dhcpd:    in your dhcpd.conf file for the network segment
May 27 18:10:10 vyosmanowar dhcpd:    to which interface eth0 is attached. **
May 27 18:10:10 vyosmanowar dhcpd:

#2

Every time I change a static map there is a chance that stop the dhcp server