From owner-freebsd-questions@FreeBSD.ORG Wed Mar 7 15:01:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6CB21065675 for ; Wed, 7 Mar 2012 15:01:46 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 4F5FD8FC08 for ; Wed, 7 Mar 2012 15:01:46 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q27F1gr6032522 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 7 Mar 2012 15:01:42 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.0 smtp.infracaninophile.co.uk q27F1gr6032522 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1331132502; bh=7UTQYzNs+H4GqDb0CW3jF7f95Mf1n3hS1slb+mTijbY=; h=Date:From:To:Subject:References:In-Reply-To:Cc:Content-Type: Message-ID:Mime-Version; b=bIhsIfQfVQhKB+WCkfS1u/9I2pzmDqrdF6CBiiqqgMi/kLHqlYUgIlmbhJODvnUmw WmJz3Jm695ixfUgTlq8DGvs6IHh8QDpNUT47uINHgv1YZTVAvTkBE9w3QueS9u81x7 ENkeXtF8UzxHkIVdMhNiw9p9ZDJFvaUyHDDx1FTU= Message-ID: <4F57784E.9050602@infracaninophile.co.uk> Date: Wed, 07 Mar 2012 15:01:34 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F577312.7070500@gmail.com> In-Reply-To: <4F577312.7070500@gmail.com> X-Enigmail-Version: 1.3.5 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0C83A867FE3CC6907A9B5930" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_ADSP_ALL,DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Subject: Re: Network interface aliasing? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2012 15:01:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0C83A867FE3CC6907A9B5930 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/03/2012 14:39, Brent Clark wrote: > I would like to ask. >=20 > Is it possible to, do network interface aliasing. Im not talking about > ip aliasing. >=20 > I basically want to bind one process to network interface vr0:0 and > another process to vr0:1. Yes, you can have alias addresses very easily: ifconfig em0 inet 192.0.2.2/24 alias or in /etc/rc.conf: ipv4_addrs_em0=3D"192.0.2.1/24 192.0.2.2/24" (But I think this is what you mean by IP aliasing?) Since this is BSD, we don't have the SysV-ish idea of separate devices just for aliases. In fact, in *BSD once you've added the alias, it's just one of the addresses on the interface, co-equal with all the others. You could go on to remove the original address, which makes it easy to renumber a host without downtime. You usually don't need a separate device in any case: just configuring a daemon to listen using a specific IP is all that is needed for almost all purposes. What exactly is it you are trying to achieve and why isn't it suitable to use aliases as above? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig0C83A867FE3CC6907A9B5930 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9XeFUACgkQ8Mjk52CukIxSVACfRuee7W6X4pavg9Xumg8iietU h2UAn2EEAXWEA2+l1GanChVcTwCzI3XI =A3rC -----END PGP SIGNATURE----- --------------enig0C83A867FE3CC6907A9B5930--