From owner-freebsd-net@FreeBSD.ORG Thu Feb 21 20:50:09 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 6620316A404 for ; Thu, 21 Feb 2008 20:50:09 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 4191A13C45A for ; Thu, 21 Feb 2008 20:50:09 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id CE0BB65504 for ; Thu, 21 Feb 2008 14:19:23 -0600 (CST) Date: Thu, 21 Feb 2008 14:19:23 -0600 From: Paul Schmehl To: freebsd-net@FreeBSD.org Message-ID: In-Reply-To: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> References: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: 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: Thu, 21 Feb 2008 20:50:09 -0000 --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. > > I have tried network_ipv6, netif, ifconfig and a few odd and ends from > Google, but no joy so far. > > This is just for testing, rebooting between test cases is getting a bit > tedious. freeBSD is 6.2. > /etc/rc.d/netif restart -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/