From owner-freebsd-net@FreeBSD.ORG Fri Feb 22 02:22:54 2008 Return-Path: Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B39D116A406 for ; Fri, 22 Feb 2008 02:22:54 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8B73213C46B for ; Fri, 22 Feb 2008 02:22:54 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id E36AC94549; Thu, 21 Feb 2008 21:22:53 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Thu, 21 Feb 2008 21:22:53 -0500 X-Sasl-enc: qSNFEAgMQizLgdrXaTkHKdtoJyaL9Ax0F3tXNPzPBlvY 1203646972 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 38E5E3054C; Thu, 21 Feb 2008 21:22:52 -0500 (EST) Message-ID: <47BE31FB.1000504@FreeBSD.org> Date: Fri, 22 Feb 2008 02:22:51 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 2.0.0.9 (X11/20080207) MIME-Version: 1.0 To: Paul Schmehl References: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org Subject: Re: How to reinitialize an interface 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: Fri, 22 Feb 2008 02:22:54 -0000 Paul Schmehl wrote: > --On Thursday, February 21, 2008 11:41:05 -0800 Tony Coon > wrote: > >> >> I am looking for a way to flush IP addresses, particularly IPv6, from an >> interface and have it repeat the initialization process that the >> interface >> goes through on boot, including IPv6 autoconfig. The "service network >> restart" in Linux seems to do this. > > /etc/rc.d/netif restart ...none of which will completely blow away the IPv6 stack state, which seems to be what the querent wants. Some refactoring is needed in the kernel to support this. IPv4 has the same problem, there's no way to administratively blow away certain structures and reinitialize them. later BMS