From owner-freebsd-questions Tue Mar 14 19:42: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id E05A037B89B for ; Tue, 14 Mar 2000 19:42:04 -0800 (PST) (envelope-from Doug@gorean.org) Received: from slave (doug@slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id TAA95048; Tue, 14 Mar 2000 19:42:03 -0800 (PST) (envelope-from Doug@gorean.org) Date: Tue, 14 Mar 2000 19:42:03 -0800 (PST) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: Oscar Ricardo Silva Cc: questions@freebsd.org Subject: Re: how to test health of dhcp server on FreeBSD 3.4? In-Reply-To: <4.2.2.20000314160835.00a75b90@mail.utexas.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 14 Mar 2000, Oscar Ricardo Silva wrote: > After trying to "wade" through the dhclient-script file, I'm throwing my > hands in the air and going with the way we were doing this. Basically, in > order to test the health of a dhcp server, to see if it was serving > addresses, a dhcp request was made from the machine and then when a > response was received, the ethernet interface was reset with the static > address. One question is that our last dhcp server was running Red Hat > Linux 6.0 and the command to reset the interface back to a static was: > > /etc/rc.d/init.d/network restart > > I'm not sure how to do this in FreeBSD 3.4. Any suggestions/ideas? man ifconfig, assuming all you want to do is change the interface. If your dhcp test is doing more than that, you should cruise through /etc/rc.network and see how it's done. Good luck, Doug -- "Welcome to the desert of the real." - Laurence Fishburne as Morpheus, "The Matrix" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message