Date: Mon, 16 Jun 2008 21:22:32 -0400 From: Steve Bertrand <steve@ibctech.ca> To: Brooks Davis <brooks@freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: if_vlan subinterfaces at boot Message-ID: <485711D8.70308@ibctech.ca> In-Reply-To: <485708D1.7060401@ibctech.ca> References: <4856FE0B.8030901@ibctech.ca> <48570503.2030608@ibctech.ca> <20080617003216.GA34683@lor.one-eyed-alien.net> <485708D1.7060401@ibctech.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Steve Bertrand wrote:
> Brooks Davis wrote:
>> 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
>>>> sub-interface (eg: em6.3) via rc.conf at boot?
> I'll post back with the results in case anyone else here has been
> interested in 'Cisco style' (as I for some reason refer to them as)
> sub-ints on FreeBSD.
# cat /etc/rc.conf (snipped for brevity)
cloned_interfaces="em6.7"
ifconfig_em6_7="inet6 2607:f118:ddc0:8000::e19"
# reboot
# ifconfig (again, snipped for brevity)
em6: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
ether 00:60:e0:42:b1:7c
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
em6.7: flags=8843<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
-----
Now, my next question is, can I have interface em6.7 operate on multiple
vlans? ie, change the default behavior of the if_vlan interface's
implicit designation to only vlan 7?
I want to have multiple prefixes (ie: subnets) within a single broadcast
domain, but each prefix on its own sub-interface on the FreeBSD box,
without designating a VLAN for each. (Please forgive the IPv6 test
above, as it probably misguides my efforts... my tests at this point are
purely to *hopefully* meet an IPv4 conceptual design goal).
Is this possible?
Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?485711D8.70308>
