You are not logged in.

#1 2011-10-14 14:17:24

Liet
Member
Registered: 2011-10-14
Posts: 3

iproute2 and vlans

hi all.
i've got trouble with newly installed arch.
when i try to create vlan with command:

/usr/sbin/ip link add link eth3 name qinq32 type vlan id 32

or

/usr/sbin/ip link add link eth3 name eth3.32 type vlan id 32

in result i get interface named something like rename8.

in `ip monitor all` i see something like this:

[LINK]8: eth3.32@eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 00:04:23:d0:95:73 brd ff:ff:ff:ff:ff:ff
[LINK]8: rename8@eth3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 00:04:23:d0:95:73 brd ff:ff:ff:ff:ff:ff

so ip utility renames created interface to name which differs from given by me.

uname -a:

Linux hellheim 3.0-ARCH #1 SMP PREEMPT Tue Oct 4 15:38:22 CEST 2011 x86_64 AMD Opteron(tm) Processor 848 AuthenticAMD GNU/Linux

ip -V:

ip utility, iproute2-ss110629

one variant of resolve trouble is renaming interface after creation. but that's not good way because creation of interfaces occures from bash script. it's not good way to catch newly crerated interface name.

which variant of resolving trouble propose community?

P.S.
at neighbour system with such kernel and iproute2 utility version all works fine.

Offline

#2 2011-10-16 05:38:17

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: iproute2 and vlans

I don't have a solution, but FWIW I tested those commands on my Arch machine and it works as expected:

morpheus ~ # ip link add link eth0 name qinq32 type vlan id 32
morpheus ~ # ip a s qinq32
195: qinq32@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 6c:f0:49:e8:64:28 brd ff:ff:ff:ff:ff:ff
morpheus ~ # uname -a
Linux morpheus.fukawi2.pvt 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz GenuineIntel GNU/Linux
morpheus ~ # ip -V 
ip utility, iproute2-ss110629
morpheus ~ # 

Offline

#3 2011-10-17 10:19:57

Liet
Member
Registered: 2011-10-14
Posts: 3

Re: iproute2 and vlans

fukawi2 wrote:

I don't have a solution, but FWIW I tested those commands on my Arch machine and it works as expected:

morpheus ~ # ip link add link eth0 name qinq32 type vlan id 32
morpheus ~ # ip a s qinq32
195: qinq32@eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN 
    link/ether 6c:f0:49:e8:64:28 brd ff:ff:ff:ff:ff:ff
morpheus ~ # uname -a
Linux morpheus.fukawi2.pvt 3.0-ARCH #1 SMP PREEMPT Wed Aug 17 21:55:57 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz GenuineIntel GNU/Linux
morpheus ~ # ip -V 
ip utility, iproute2-ss110629
morpheus ~ # 

eahh... i've the same picture in another machine. seems like this is feature in only one of them. and i don't understand the way to fix it...

Offline

#4 2011-10-17 14:51:08

Liet
Member
Registered: 2011-10-14
Posts: 3

Re: iproute2 and vlans

thanks all. resolution of trouble was founded.
cause of trouble was udevd, which renamed interfaces.

fix was founded in this topic:
https://bugs.archlinux.org/task/25189

Offline

Board footer

Powered by FluxBB