Subject: Re: bridge and IPs
To: Marcin Jessa <lists@yazzy.org>
From: Daniel Carosone <dan@geek.com.au>
List: current-users
Date: 09/22/2005 09:20:31
--abYdCjSRCBwcb+dP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 21, 2005 at 11:13:48PM +0000, Marcin Jessa wrote:
> Is anyone working on possibility to assign IP addresses to bridgeX ineter=
faces the way it's possible on FreeBSD?
> Or am I doing something wrong?
> # ifconfig bridge0 inet 192.168.20.1
> ifconfig: SIOCAIFADDR: Inappropriate ioctl for device
>=20
> I know one can assign IP to a bridge member but to be honest I was frankl=
y suprised to discover I can assign IP to a tap dev but not bridge.
> I am on 3.99.9

It's not presently possible.  It's something I've wished for in the
past, too, in particular for cases where the set of interfaces in a
bridge is subject to change.

As you've figured out, the best thing to do is create a tap interface,
give it the upper-layer addresses you want, and add it to the bridge.
The main thing this brings is a unique MAC address to bind to the IP
address in ARP replies.

--
Dan.
--abYdCjSRCBwcb+dP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFDMeq/EAVxvV4N66cRAmwhAJ9ej0KSh67f9mkiwVFjxyBKwOrhJQCgxqPJ
+3Rm6LpMZQUAKgVYGLWZBl4=
=s2UF
-----END PGP SIGNATURE-----

--abYdCjSRCBwcb+dP--