Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2008 23:47:06 -0500
From:      Brooks Davis <brooks@freebsd.org>
To:        Steve Bertrand <steve@ibctech.ca>
Cc:        freebsd-net@freebsd.org, Brooks Davis <brooks@freebsd.org>
Subject:   Re: if_vlan subinterfaces at boot
Message-ID:  <20080617044706.GA36170@lor.one-eyed-alien.net>
In-Reply-To: <485711D8.70308@ibctech.ca>
References:  <4856FE0B.8030901@ibctech.ca> <48570503.2030608@ibctech.ca> <20080617003216.GA34683@lor.one-eyed-alien.net> <485708D1.7060401@ibctech.ca> <485711D8.70308@ibctech.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
>         options=3Db<RXCSUM,TXCSUM,VLAN_MTU>
>         ether 00:60:e0:42:b1:7c
>         media: Ethernet autoselect (1000baseTX <full-duplex>)
>         status: active
>=20
> em6.7: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet6 2607:f118:ddc0:8000::e19 prefixlen 64
>         ether 00:60:e0:42:b1:7c
>         media: Ethernet autoselect (1000baseTX <full-duplex>)
>         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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080617044706.GA36170>