From owner-freebsd-net@FreeBSD.ORG Thu Jul 12 21:01:53 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C95E1065722 for ; Thu, 12 Jul 2012 21:01:53 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id BE6AD8FC16 for ; Thu, 12 Jul 2012 21:01:52 +0000 (UTC) Received: by lbon10 with SMTP id n10so4674586lbo.13 for ; Thu, 12 Jul 2012 14:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=56M+gULvHOt/X0rlaMMkStr6bwpXV1JLoxSw+0N3sqg=; b=rbtkWfLsB69xIMRoVpRt500/mgsKPwUgXU1HdDEJ+MuGWGARQvGJ4kkCDGYcjk0Y3m nfXwC8hARgjb8Zl50kUGDFXtH1Gup7ZwRDaDCb7OEcn3X+FxTOH7jP49vKaRjGOsS/BR MprK41XfM2Ok+veECVzTnujO6Fgs8M2W2h5qqyi/8XjUO1Ci6H47dsLPqcWfkArzShDy SNZ+LOmrxQVg27plup/at0bdik7vTNz9m4vPm5ol12eSmAOJrWsrG218ARjTvOyXgMDc KWZjEesZOhxzAE/WV7XMbOO3EG+3Sai76hen/JQFox/Yxs9H5dPu687yVaUXbGL1HBS6 fm8w== MIME-Version: 1.0 Received: by 10.112.42.41 with SMTP id k9mr1852516lbl.90.1342126911563; Thu, 12 Jul 2012 14:01:51 -0700 (PDT) Received: by 10.114.37.74 with HTTP; Thu, 12 Jul 2012 14:01:51 -0700 (PDT) In-Reply-To: References: <4FFF3683.7020107@rawbw.com> Date: Thu, 12 Jul 2012 14:01:51 -0700 Message-ID: From: Freddie Cash To: Chris Benesch Content-Type: text/plain; charset=UTF-8 Cc: Yuri , freebsd-net@freebsd.org Subject: Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2012 21:01:53 -0000 On Thu, Jul 12, 2012 at 1:52 PM, Chris Benesch wrote: > Thats pretty standard for BSD and most Unixes. DHCP hands out leases for a > specified period of time, so unless there is a reason to reset it, it > wont. Windows does that, but it is designed more as a client / user facing > OS whereas BSD is designed to run in the background silently serving you > content and directing traffic. > > I can save you some steps though, > > ps -ax | grep dhclient > > You will get a list, on the one that is dhclient or /sbin/dhclient, take > the number at the far left, thats the process ID > > kill > dhclient re0 pkill dhclient dhclient re0 Saves a few more steps. :) There's also: service netif restart re0 -- Freddie Cash fjwcash@gmail.com