[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200903022123.16032.denys@visp.net.lb>
Date: Mon, 2 Mar 2009 21:23:15 +0200
From: Denys Fedoryschenko <denys@...p.net.lb>
To: Jarek Poplawski <jarkao2@...il.com>
Cc: Ben Greear <greearb@...delatech.com>,
Lennart Sorensen <lsorense@...lub.uwaterloo.ca>,
Stephen Hemminger <shemminger@...tta.com>,
Patrick McHardy <kaber@...sh.net>, netdev@...r.kernel.org
Subject: Re: Vlan interface nuisance
On Monday 02 March 2009 21:06:26 Jarek Poplawski wrote:
> > Yes...the old way would tell you the vlan-id regardless of how
> > many NICs you have, which is useful information for anyone
> > actually trying to configure two boxes to talk to each other,
> > or (god forbid), debug someone else's config.
> >
> > It's true you can specify the vlan-name on creation using 'ip',
> > which is what I do, so I'm not going to argue Stephen's change
> > either way..but I do like device names that give more info...
>
> To make it clear: I don't say vlan0 is better; but IMHO it doesn't
> have to be silly or nothing useful either.
>
> Jarek P.
I guess for Linux it should be ethN.Y.
vlanN is Cisco and other switches behaviour, since they establish vlanN
interfaces and bridge all vlan with numbers there. In best case they do
remapping on receive.
So on linux similar alternative of cisco interface vlan100 will be:
ip link add link eth0 type vlan id 100
ip link add link eth1 type vlan id 100
brctl addbr vlan100
brctl addif vlan100 eth0.100
brctl addif vlan100 eth1.100
But on first two steps it creates for me vlan0 and vlan1, which is not very
informative. I guess interface names should be intuitive, and should help to
admin to find out for who vlan0 belongs without digging tons of files.
But another point... ip -d link output is enough useful. I can find out
easily who is who.
141063: vlan0@...0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 00:0a:cd:16:82:74 brd ff:ff:ff:ff:ff:ff
vlan id 100 <REORDER_HDR>
141070: vlan1@...1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 00:0a:cd:16:82:69 brd ff:ff:ff:ff:ff:ff
vlan id 100 <REORDER_HDR>
But IMHO ethN.Y more intuitive understandable.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists