OpenWrt Forum Archive

Topic: vlan interface names

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Is there an easy way to change vlan interfaces names from "eth0.X" to "vlanX" used in whiterussian?

Tried to change vconfig parameter in /etc/init.d/boot from DEV_PLUS_VID_NO_PAD to VLAN_PLUS_VID_NO_PAD + adjust ifname(s) in network config, but the Linksys does not boot properly anymore. I'm using WRT54GS.

Thanks,
Laco

nobody knows? :-/

Why don't you stay with the default setting in Kamikaze?

Use the default interface names.

MMCM: because...
- we use some internal scripts which matches the "vlanX" scheme
  (and "vlanX" form is also more common in general so it would also match with our PC servers etc.)
- we use virtual interfaces and
  - names in form eth0.1:0 are confusing for admins
  - read somewhere here at forum the virtual iface names like above are doing some mischief (?)

So if it is possible with some reasonable effort, i would rather use the old naming scheme.

I would try this:
Install "ip" package
ip link set ethX.Y down     
ip link set ethX.Y vlanZ
ip link set vlanZ

Many scripts depend on the ethX.Y scheme. Lots of work if you want this change to be permanent.

Thanks vasquez! The below...

ip link set ethX.Y down
ip link set ethX.Y name vlanZ
ip link set vlanZ up

is doing exactly what i needed and it seems everything works. (Love this magic linux workarounds smile

The discussion might have continued from here.