Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jul 2006 08:25:27 -0700
From:      Sam Leffler <sam@errno.com>
To:        Andre Oppermann <andre@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: vlans and cloning
Message-ID:  <44B27167.8090406@errno.com>
In-Reply-To: <44B21551.5050002@freebsd.org>
References:  <44B15511.206@errno.com> <44B21551.5050002@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Andre Oppermann wrote:
> Sam Leffler wrote:
>> I committed the revised netif cloning api so you can now specify
>> parameters when cloning.  I also modified the vlan code to use this
>> mechanism so doing something like:
>>
>> ifconfig vlan create vlan 1 vlandev em0
>>
>> causes a single request to clone a vlan together with the tag+parent
>> device parameters (i.e. and no subsequent SIOCSETVLAN request).
>>
>> Given the above do we still need to support setting vlan tag+device
>> separately or can we just require everything be specified when doing the
>> clone operation?  This would change the user api but otherwise I can see
>> no reason for continuing to support the old mechanism where you do:
>>
>> ifconfig vlan create
>> ifconfig vlan0 vlan 1 vlandev em0
> 
> /me wants to do:
> 
> "ifconfig em0.1 inet 192.168.2.2/24"

That can still be done and is just different syntax to ifconfig.

> 
> Even simpler.  And yes, this works already but only if if_vlan.ko
> was loaded before or compiled into the kernel.  It doesn't do auto-
> load.
> 




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