From owner-freebsd-net@FreeBSD.ORG Tue May 5 22:32:17 2009 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 D065B106567C for ; Tue, 5 May 2009 22:32:17 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mail.giulioferro.it (mail.giulioferro.it [85.18.102.52]) by mx1.freebsd.org (Postfix) with ESMTP id 8DFEE8FC15 for ; Tue, 5 May 2009 22:32:17 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from localhost (localhost [127.0.0.1]) by mail.giulioferro.it (Postfix) with ESMTP id 2DE3233CB6 for ; Wed, 6 May 2009 00:34:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at giulioferro.it Received: from mail.giulioferro.it ([127.0.0.1]) by localhost (aurynwork1sv1.giulioferro.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MJBX+eMD333g for ; Wed, 6 May 2009 00:34:22 +0200 (CEST) Received: from [192.168.229.16] (localhost [127.0.0.1]) (Authenticated sender: gferro@giulioferro.it) by mail.giulioferro.it (Postfix) with ESMTP id 7DC8733CB3 for ; Wed, 6 May 2009 00:34:22 +0200 (CEST) Message-ID: <4A00BE6C.5030800@zirakzigil.org> Date: Wed, 06 May 2009 00:32:12 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Configure networking outside rc.conf 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: Tue, 05 May 2009 22:32:18 -0000 I was wondering if there was a way to cleanly configure networking without using rc.conf but only ifconfig and other utilities This is what I mean: let's suppose that I have a complex network configuration to launch on my machine, for example: - many physical nics (with different speed, mtu, duplex...) - many aliases on them - many vlans - many carped interfaces - ng_fec - ... What I ask is: can I, set up networking in a way that is equivalent to creating the configuration in /etc/rc.conf and then using "/etc/rc.d/netif restart" ? I know how to set up the example configuration above, what I don't know is if I can do that cleanly, that is, cleaning the state of all interfaces, truncating vlans, etc., and then creating them again with ifconfig, ngctl, etc. Thanks in advance.