From owner-freebsd-net@FreeBSD.ORG Wed Jun 29 15:29:17 2011 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 58EB1106566B for ; Wed, 29 Jun 2011 15:29:17 +0000 (UTC) (envelope-from olwi@fb-n.l.org.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A9C368FC08 for ; Wed, 29 Jun 2011 15:29:16 +0000 (UTC) Received: from [10.99.0.10] (idea.starpoint.kiev.ua [10.99.0.10]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id SAA00483 for ; Wed, 29 Jun 2011 18:29:15 +0300 (EEST) (envelope-from olwi@fb-n.l.org.ua) Message-ID: <4E0B44CA.9060504@fb-n.l.org.ua> Date: Wed, 29 Jun 2011 18:29:14 +0300 From: Oleg Cherevko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4E0B406D.8070406@fb-n.l.org.ua> In-Reply-To: <4E0B406D.8070406@fb-n.l.org.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ifconfig alias: same subnet netmask question 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: Wed, 29 Jun 2011 15:29:17 -0000 On 29.06.2011 18:10, Oleg Cherevko wrote: > Are there any drawbacks in setting aliases like this: > ifconfig em0 inet 192.168.1.1 netmask 0xffffff00 > ifconfig em0 inet 192.168.1.2 netmask 0xffffff00 > instead of traditional: > ifconfig em0 inet 192.168.1.1 netmask 0xffffff00 > ifconfig em0 inet 192.168.1.2 netmask 0xffffffff > (again, for more or less recent FreeBSD versions)? Sorry, the above examples should read: ifconfig em0 inet 192.168.1.1 netmask 0xffffff00 ifconfig em0 inet 192.168.1.2 netmask 0xffffff00 alias and ifconfig em0 inet 192.168.1.1 netmask 0xffffff00 ifconfig em0 inet 192.168.1.2 netmask 0xffffffff alias of course. -- Olwi