From owner-freebsd-net@FreeBSD.ORG Thu Feb 21 20:17:07 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 528EA16A401 for ; Thu, 21 Feb 2008 20:17:07 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outB.internet-mail-service.net (outB.internet-mail-service.net [216.240.47.225]) by mx1.freebsd.org (Postfix) with ESMTP id 347EE13C457 for ; Thu, 21 Feb 2008 20:17:07 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Thu, 21 Feb 2008 12:17:06 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 86B24127312; Thu, 21 Feb 2008 12:17:05 -0800 (PST) Message-ID: <47BDDC4C.60309@elischer.org> Date: Thu, 21 Feb 2008 12:17:16 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Tony Coon References: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> In-Reply-To: <45F88020-229A-479F-8B42-07666913CF2C@mac.com> 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: Thu, 21 Feb 2008 20:17:07 -0000 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. > > cheers, > Tony > > --- > Tony Coon > coont@mac.com > > "No amount of careful planning will ever replace dumb luck" > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" ifconfig {name} down delete ifconfig {name} ipaddress/width up Don't forget that you MAY need to redo any routes that used this isterface as they will have been removed. route add {dest/width} {gateway}