Subject: Re: Vlan interface nuisance

From: Patrick McHardy <[email-masked]>
Date: Mon, 02 Mar 2009 22:54:38 +0100

Stephen Hemminger wrote:
> On Mon, 02 Mar 2009 22:49:18 +0100
> Patrick McHardy <[email-masked]> wrote:
> 
>> Jarek Poplawski wrote:
>>> Lennart Sorensen wrote, On 03/02/2009 06:20 PM:
>>>
>>>> On Sun, Mar 01, 2009 at 08:47:31PM -0800, Stephen Hemminger wrote:
>>>>> Why is interface created through netlink named 'vlan0' and
>>>>> interface created through old vconfig called 'ethX.YY'.
>>>>> Seems like the interface should be consistent.
>>>> That does seem silly.
>>>>
>>>> ethX.YYYY told you which physical interface and which vlan number it was.
>>>>
>>>> vlan0 tells you nothing useful.
>>>  
>>>
>>> Even if you have only one ethX?
>> The binding is displayed when listing interfaces. This hole
>> argument is silly, if you want a particular name, just specify
>> it. The current naming schemes are entirely based on information
>> that you have to specify anyways.
> 
> I overlooked the obvious:
>  ip li add link eth1 name eth1.44 type vlan id 44
> 
> Setting the name overrides.

Finally someone realizes it :) As stated before, there is room
for improvement, but please no selectable naming schemes when
userspace is ulitimatively responsible anyways :)