From owner-freebsd-net@FreeBSD.ORG Thu Feb 21 19:56:31 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 BD50316A401 for ; Thu, 21 Feb 2008 19:56:31 +0000 (UTC) (envelope-from coont@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.72]) by mx1.freebsd.org (Postfix) with ESMTP id 9954113C459 for ; Thu, 21 Feb 2008 19:56:31 +0000 (UTC) (envelope-from coont@mac.com) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout009/MantshX 4.0) with ESMTP id m1LJfAJu028476 for ; Thu, 21 Feb 2008 11:41:10 -0800 (PST) Received: from [192.168.1.100] (adsl-68-122-117-52.dsl.pltn13.pacbell.net [68.122.117.52]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m1LJf5o4008840 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 21 Feb 2008 11:41:08 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v753) To: freebsd-net@FreeBSD.org Message-Id: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> From: Tony Coon Date: Thu, 21 Feb 2008 11:41:05 -0800 X-Mailer: Apple Mail (2.753) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: 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 19:56:31 -0000 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. cheers, Tony --- Tony Coon coont@mac.com "No amount of careful planning will ever replace dumb luck"