From owner-freebsd-net@FreeBSD.ORG Tue Jun 17 04:46:38 2008 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 45E2C1065670; Tue, 17 Jun 2008 04:46:38 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id C632C8FC32; Tue, 17 Jun 2008 04:46:37 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.2/8.14.2) with ESMTP id m5H4l65B036292; Mon, 16 Jun 2008 23:47:06 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.2/8.14.2/Submit) id m5H4l6Xx036291; Mon, 16 Jun 2008 23:47:06 -0500 (CDT) (envelope-from brooks) Date: Mon, 16 Jun 2008 23:47:06 -0500 From: Brooks Davis To: Steve Bertrand Message-ID: <20080617044706.GA36170@lor.one-eyed-alien.net> References: <4856FE0B.8030901@ibctech.ca> <48570503.2030608@ibctech.ca> <20080617003216.GA34683@lor.one-eyed-alien.net> <485708D1.7060401@ibctech.ca> <485711D8.70308@ibctech.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <485711D8.70308@ibctech.ca> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 16 Jun 2008 23:47:07 -0500 (CDT) Cc: freebsd-net@freebsd.org, Brooks Davis Subject: Re: if_vlan subinterfaces at boot 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: Tue, 17 Jun 2008 04:46:38 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 16, 2008 at 09:22:32PM -0400, Steve Bertrand wrote: > Steve Bertrand wrote: >> Brooks Davis wrote: >=20 >>> On Mon, Jun 16, 2008 at 08:27:47PM -0400, Steve Bertrand wrote: >>>>> Is there any way to create, and assign addresses to a if_vlan=20 >>>>> sub-interface (eg: em6.3) via rc.conf at boot? >=20 >> I'll post back with the results in case anyone else here has been=20 >> interested in 'Cisco style' (as I for some reason refer to them as)=20 >> sub-ints on FreeBSD. >=20 > # cat /etc/rc.conf (snipped for brevity) >=20 > cloned_interfaces=3D"em6.7" > ifconfig_em6_7=3D"inet6 2607:f118:ddc0:8000::e19" >=20 > # reboot >=20 > # ifconfig (again, snipped for brevity) >=20 > em6: flags=3D8802 mtu 1500 > options=3Db > ether 00:60:e0:42:b1:7c > media: Ethernet autoselect (1000baseTX ) > status: active >=20 > em6.7: flags=3D8843 mtu 1500 > inet6 2607:f118:ddc0:8000::e19 prefixlen 64 > ether 00:60:e0:42:b1:7c > media: Ethernet autoselect (1000baseTX ) > status: active > vlan: 7 parent interface: em6 >=20 > ----- >=20 > Now, my next question is, can I have interface em6.7 operate on multiple= =20 > vlans? ie, change the default behavior of the if_vlan interface's implici= t=20 > designation to only vlan 7? >=20 > I want to have multiple prefixes (ie: subnets) within a single broadcast= =20 > domain, but each prefix on its own sub-interface on the FreeBSD box,=20 > without designating a VLAN for each. (Please forgive the IPv6 test above,= =20 > as it probably misguides my efforts... my tests at this point are purely = to=20 > *hopefully* meet an IPv4 conceptual design goal). >=20 > Is this possible? Currently there's no easy way to assign multiple interfaces for the same broadcast domain. In theory, if you could create some sort of virtual ethernet device you could bridge one to the real interface for each subnet. I don't think we have such a device in the tree at the moment, but I don't think they are very hard to create in principle. -- Brooks --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIV0HKXY6L6fI4GtQRAgWbAJ0S9NMg36DM8pCvVitAEy4GkbkXTgCglcPS A8511z7BLo0cI7x5Zq9n9U8= =oorI -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--