if_vlan subinterfaces at boot
Brooks Davis
brooks at freebsd.org
Tue Jun 17 00:31:48 UTC 2008
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?
>
> Sorry for the noise...
>
> cloned_interfaces="em6.3"
> ifconfig_em6.3="inet x.x.x.x netmask x.x.x.x"
>
> ...seems to be the job.
Almost. '.' isn't a valid character in a shell variable. We support '.' by
converting it into _ in shell variables so it should be:
cloned_interfaces="em6.3"
ifconfig_em6_3="inet x.x.x.x netmask x.x.x.x"
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20080617/301e7b55/attachment.pgp
More information about the freebsd-net
mailing list