From owner-freebsd-current@FreeBSD.ORG Sun Oct 7 15:16:48 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C7EC106564A for ; Sun, 7 Oct 2012 15:16:48 +0000 (UTC) (envelope-from sthaug@nethelp.no) Received: from bizet.nethelp.no (bizet.nethelp.no [195.1.209.33]) by mx1.freebsd.org (Postfix) with SMTP id 89C3F8FC0C for ; Sun, 7 Oct 2012 15:16:47 +0000 (UTC) Received: (qmail 4892 invoked from network); 7 Oct 2012 15:10:04 -0000 Received: from bizet.nethelp.no (HELO localhost) (195.1.209.33) by bizet.nethelp.no with SMTP; 7 Oct 2012 15:10:04 -0000 Date: Sun, 07 Oct 2012 17:10:04 +0200 (CEST) Message-Id: <20121007.171004.74748690.sthaug@nethelp.no> To: rizzo@iet.unipi.it From: sthaug@nethelp.no In-Reply-To: <20121007150219.GA76853@onelab2.iet.unipi.it> References: <20121007104330.GA75115@onelab2.iet.unipi.it> <20121007150219.GA76853@onelab2.iet.unipi.it> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: adrian@freebsd.org, current@freebsd.org Subject: Re: sysctl vs ifconfig vs other X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2012 15:16:48 -0000 > > Seconded; but compare to Linux which has mutiple different commands to > > do networking, as well as 'net'. :-) > > we do too -- we have arp, route, ifconfig, sysctl and possibly > more that i am not aware of. Note that at least arp, route and ifconfig have been there since very early BSD releases (they predate FreeBSD, as far as I know). sysctl is from BSD 4.4 (I think, but I'm very willing to be corrected here). What I'm trying to say here is that arp, route and ifconfig are in some sense the original BSD commands to set/change networking params. The Linux camp saw the need to introduce a new command ("ip") to do a lot of what we do with ifconfig (e.g. VLAN manipulation) while FreeBSD chose to add to the ifconfig command. I prefer the FreeBSD way - but this is a matter of personal taste. Steinar Haug, Nethelp consulting, sthaug@nethelp.no