From owner-freebsd-doc@FreeBSD.ORG Wed Nov 6 00:43:46 2013 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 54925CCF for ; Wed, 6 Nov 2013 00:43:46 +0000 (UTC) (envelope-from thomas@gibfest.dk) Received: from mail.tyknet.dk (mail.tyknet.dk [176.9.9.186]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1171D22EF for ; Wed, 6 Nov 2013 00:43:45 +0000 (UTC) Received: from [10.10.1.214] (217.71.4.82.static.router4.bolignet.dk [217.71.4.82]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.tyknet.dk (Postfix) with ESMTPSA id 0FDDC1B8699 for ; Wed, 6 Nov 2013 01:43:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.8.3 mail.tyknet.dk 0FDDC1B8699 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gibfest.dk; s=default; t=1383698618; bh=BL4IIJnN0LETS+JlgZvPab+w5iyceVaHB29XMOtmmVs=; h=Date:From:To:Subject; b=VxPRyYAvyP7WR2XvbBxnYkS/p/HSKedCoVuvv6bX5Ytmu9FdFoAW9G4TkFDVq50i1 WOAiCj090aBzz+7yrj78p2EHwmsBOP3POGJUC8aWMZ6FgYRzhWoZ/k/rVlmf4oG1p3 5bkz1uuGSX2CSqobfJILA1G/QCk2vzT5Mg9oBIf8= Message-ID: <527990B7.6080100@gibfest.dk> Date: Wed, 06 Nov 2013 01:43:35 +0100 From: Thomas Steen Rasmussen User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-doc@freebsd.org Subject: ifconfig_if_aliases not documented in /etc/defaults/rc.conf or in handbook Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Nov 2013 00:43:46 -0000 Hello there, ifconfig_if_aliases can greatly simplify rc.conf for machines with many IP aliases, since renumbering of all the _aliasN entries is no longer needed. But the syntax is not documented in /etc/defaults/rc.conf or in handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-virtual-hosts.html Consider the example aliases from the handbook link above: ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255" ifconfig_fxp0_alias1="inet 10.1.1.3 netmask 255.255.255.255" ifconfig_fxp0_alias2="inet 10.1.1.4 netmask 255.255.255.255" ifconfig_fxp0_alias3="inet 10.1.1.5 netmask 255.255.255.255" ifconfig_fxp0_alias4="inet 202.0.75.17 netmask 255.255.255.240" ifconfig_fxp0_alias5="inet 202.0.75.18 netmask 255.255.255.255" ifconfig_fxp0_alias6="inet 202.0.75.19 netmask 255.255.255.255" ifconfig_fxp0_alias7="inet 202.0.75.20 netmask 255.255.255.255" Can now be written as: ifconfig_fxp0_aliases="inet 10.1.1.2-5/32 inet 202.0.75.17-20/28" This should be included both in /etc/defaults/rc.conf and in the handbook :) Thanks and best regards, /Thomas Steen Rasmussen