From owner-freebsd-net@FreeBSD.ORG Fri Feb 13 12:58:22 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B51D16A4CE for ; Fri, 13 Feb 2004 12:58:22 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA32B43D1D for ; Fri, 13 Feb 2004 12:58:21 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i1DKwH2h004875; Fri, 13 Feb 2004 12:58:17 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i1DKwGNM004874; Fri, 13 Feb 2004 12:58:16 -0800 Date: Fri, 13 Feb 2004 12:58:16 -0800 From: Brooks Davis To: Bjorn Eikeland Message-ID: <20040213205813.GA1570@Odin.AC.HMC.Edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: "freebsd-net@freebsd.org" Subject: Re: vlan with its own ether / mac address? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 20:58:22 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 13, 2004 at 09:30:31PM +0100, Bjorn Eikeland wrote: > is it possible to set up a vlan device with its own ether address? > I've tried the following: >=20 > ifconfig vlan0 create > ifconfig vlan0 vlan 1 vlandev fxp0 up > ifconfig vlan0 inet 10.0.0.10 netmask 255.255.255.0 \ > ether 00:a0:c9:f1:4e:6e > ifconfig: ether: bad value >=20 > but changing the ether value after the device is up 'works', > but caused me to only have access to the vlan ip. >=20 > my existing fxp0 device > fxp0: flags=3D8843 mtu 1500 > inet 10.0.0.2 netmask 0xff000000 broadcast 10.255.255.255 > ether 00:a0:c9:f1:4e:6d > media: Ethernet autoselect (100baseTX ) > status: active >=20 > the faked vlan0 device: > vlan0: flags=3D8843 mtu 1500 > inet 10.0.0.10 netmask 0xffffff00 broadcast 10.0.0.255 > ether 00:a0:c9:f1:4e:6e > media: Ethernet autoselect (100baseTX ) > status: active > vlan: 1 parent interface: fxp0 You might try putting the interface in promisc mode. I'm not sure that will be sufficent, but it might be. I suspect the problem is likely to be that the recieve filter on many NICs only supports two modes promisc and self+broadcast. You want a mode where you get self1+self2+broadcast. Some multicast filters probably do support this. > basically I'm trying to set up dhcp to configure unknown hosts > in a seperate network to allow them to register their mac address > and then be allocated a ip in the "real" network. And need a way > to test with several clients, but I've only got one nic in my box. You might be able to create virtual ethernet interfaces via tap(4) and then bridge them. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFALTpjXY6L6fI4GtQRApvqAJ9u/+7awYaJM6uJlpmMVjdvwCsONACggtmf gv3EESmDOlkUhq0b+Jp8fKk= =3nNT -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--