DHCP client state if rebooted when local DHCPD server is offline?

terrygalant.lists at fastest.cc terrygalant.lists at fastest.cc
Thu Aug 14 20:00:50 UTC 2014


Hi

On Thu, Aug 14, 2014, at 12:43 PM, Steven Carr wrote:
> Not sure if that will work if you have both fixed-address IPs in a
> shared network, it might not be able to determine which IP to give
> back to the client.
> 
> What does syslog show?

At the server, on

	systemctl restart dhcpd

tail -f /var/log/dhcp.log
	2014-08-14T12:46:03.820177-07:00 edgerouter dhcpd[13127]: Shutting down ISC DHCPv4 4.x Server ..done
	2014-08-14T12:46:04.325185-07:00 edgerouter dhcpd: Internet Systems Consortium DHCP Server 4.2.5-P1
	2014-08-14T12:46:04.326389-07:00 edgerouter dhcpd: Copyright 2004-2013 Internet Systems Consortium.
	2014-08-14T12:46:04.327427-07:00 edgerouter dhcpd: All rights reserved.
	2014-08-14T12:46:04.328311-07:00 edgerouter dhcpd: For info, please visit https://www.isc.org/software/dhcp/
	2014-08-14T12:46:04.345258-07:00 edgerouter dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
	2014-08-14T12:46:04.368366-07:00 edgerouter dhcpd: Internet Systems Consortium DHCP Server 4.2.5-P1
	2014-08-14T12:46:04.369521-07:00 edgerouter dhcpd: Copyright 2004-2013 Internet Systems Consortium.
	2014-08-14T12:46:04.370537-07:00 edgerouter dhcpd: All rights reserved.
	2014-08-14T12:46:04.371501-07:00 edgerouter dhcpd: For info, please visit https://www.isc.org/software/dhcp/
	2014-08-14T12:46:04.377301-07:00 edgerouter dhcpd: Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
	2014-08-14T12:46:04.378922-07:00 edgerouter dhcpd: Wrote 0 deleted host decls to leases file.
	2014-08-14T12:46:04.387116-07:00 edgerouter dhcpd: Wrote 0 new dynamic host decls to leases file.
	2014-08-14T12:46:04.388256-07:00 edgerouter dhcpd: Wrote 6 leases to leases file.
	2014-08-14T12:46:04.422452-07:00 edgerouter dhcpd: Listening on LPF/eth1/YY:YY:YY:YY:YY:YY/home
	2014-08-14T12:46:04.424346-07:00 edgerouter dhcpd: Sending on   LPF/eth1/YY:YY:YY:YY:YY:YY/home
	2014-08-14T12:46:04.425646-07:00 edgerouter dhcpd: Sending on   Socket/fallback/fallback-net
	2014-08-14T12:46:04.429356-07:00 edgerouter dhcpd[13137]: Starting ISC DHCPv4 4.x Server [chroot]..done

and when I enable DHCP & cycle the client

	ifdown eth0 && ifup eth0

at the server

	tail -f /var/log/dhcp.log
		(nothing)

Finally, at client

	dhcping -h XX:XX:XX:XX:XX:XX -s 10.16.10.1 -c 10.16.10.16
		Got answer from: 10.16.10.1

at the server

	tail -f /var/log/dhcp.log

		2014-08-14T12:54:04.046742-07:00 edgerouter dhcpd: DHCPREQUEST for 10.16.10.16 from XX:XX:XX:XX:XX:XX via eth1
		2014-08-14T12:54:04.048384-07:00 edgerouter dhcpd: DHCPACK on 10.16.10.16 to XX:XX:XX:XX:XX:XX via eth1
		2014-08-14T12:54:04.049516-07:00 edgerouter dhcpd: DHCPRELEASE of 10.16.10.16 from XX:XX:XX:XX:XX:XX via eth1 (not found)

Terry


More information about the dhcp-users mailing list