* [iproute2] display vlan configuration
@ 2012-07-05 23:06 Fabien C.
2012-07-05 23:20 ` John Fastabend
0 siblings, 1 reply; 3+ messages in thread
From: Fabien C. @ 2012-07-05 23:06 UTC (permalink / raw)
To: netdev
Hello,
it looks like there is no way to show the vlan configuration with iproute (nor with any other tool apparently).
This can lead to trouble since :
# ip link add link eth0 name eth2.333 type vlan id 444
will create an interface that will show up like this with "ip link show" :
51: eth2.333@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
The only hint we have is the interface name, which may not be related to the vlan id we set earlier.
Is there any way to get that information?
Thanks,
Fabien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [iproute2] display vlan configuration
2012-07-05 23:06 [iproute2] display vlan configuration Fabien C.
@ 2012-07-05 23:20 ` John Fastabend
2012-07-07 16:03 ` Fabien C.
0 siblings, 1 reply; 3+ messages in thread
From: John Fastabend @ 2012-07-05 23:20 UTC (permalink / raw)
To: Fabien C.; +Cc: netdev
On 7/5/2012 4:06 PM, Fabien C. wrote:
> Hello,
>
> it looks like there is no way to show the vlan configuration with iproute (nor with any other tool apparently).
>
> This can lead to trouble since :
> # ip link add link eth0 name eth2.333 type vlan id 444
>
> will create an interface that will show up like this with "ip link show" :
> 51: eth2.333@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
>
> The only hint we have is the interface name, which may not be related to the vlan id we set earlier.
Here you need to show the details,
#ip -d link show dev eth2.333
From my current setup,
# ip -d link show dev vlan0
33: vlan0@eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 00:1b:21:55:23:59 brd ff:ff:ff:ff:ff:ff
vlan id 101 <REORDER_HDR>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [iproute2] display vlan configuration
2012-07-05 23:20 ` John Fastabend
@ 2012-07-07 16:03 ` Fabien C.
0 siblings, 0 replies; 3+ messages in thread
From: Fabien C. @ 2012-07-07 16:03 UTC (permalink / raw)
To: John Fastabend; +Cc: netdev
Le 06/07/2012 01:20, John Fastabend a écrit :
> Here you need to show the details,
> #ip -d link show dev eth2.333
Thanks for your answer!
The man page doesn't document this option (-d), but "ip help" does, so I guess I didn't search enough.
Fabien
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-07 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-05 23:06 [iproute2] display vlan configuration Fabien C.
2012-07-05 23:20 ` John Fastabend
2012-07-07 16:03 ` Fabien C.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).