Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2012 14:08:23 -0700
From:      Chris Benesch <chris.benesch@gmail.com>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        Yuri <yuri@rawbw.com>, freebsd-net@freebsd.org
Subject:   Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP
Message-ID:  <CAPKwmM0tBaHGQvHwAafpVPYxowU5CiZ6-_tBKLk5S13T2pCa5g@mail.gmail.com>
In-Reply-To: <CAOjFWZ6dCDSkdxGNGzmo%2Bu871sOF8r05b6psukoP9pDLQHHk6A@mail.gmail.com>
References:  <4FFF3683.7020107@rawbw.com> <CAPKwmM1MLm5nYX6LT480iX2R9gKAQBskUghwVj6Q8KF8oMyL=w@mail.gmail.com> <CAOjFWZ6dCDSkdxGNGzmo%2Bu871sOF8r05b6psukoP9pDLQHHk6A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I work with an old version of AIX all day, there are no shortcuts :(

On Thu, Jul 12, 2012 at 2:01 PM, Freddie Cash <fjwcash@gmail.com> wrote:

> On Thu, Jul 12, 2012 at 1:52 PM, Chris Benesch <chris.benesch@gmail.com>
> 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 <process id>
> > dhclient re0
>
> pkill dhclient
> dhclient re0
>
> Saves a few more steps.  :)
>
> There's also:
>
> service netif restart re0
>
> --
> Freddie Cash
> fjwcash@gmail.com
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPKwmM0tBaHGQvHwAafpVPYxowU5CiZ6-_tBKLk5S13T2pCa5g>