Score:0

debian Linux QinQ (vlan stacking)

hr flag

I am trying to create stacked VLAN interface on a debian 10 server. Here is what I have placed in the /etc/network/interfaces:

iface enp34s0.300 inet manual
        address 0.0.0.0
        netmask 0.0.0.0

auto enp34s0.300.1239
iface enp34s0.300.1239 inet static
        address X.X.X.X
        netmask X.X.X.X

The first interface is going UP without any problem:

:~# ifup enp34s0.300

But the second one is failing :

:~# ifup enp34s0.300.1239
Error: argument "enp34s0.300.1239" is wrong: "name" not a valid ifname
ifup: ignoring unknown interface enp34s0.300.1239=enp34s0.300.1239

I have the vlan packet installed:

:~# dpkg -l | grep vlan
ii  vlan                                 2.0.5                        all          ifupdown integration for vlan configuration
:~# lsmod | grep 802
8021q                  40960  0
garp                   16384  1 8021q
mrp                    20480  1 8021q

Do you have any idea what is going wrong ?

Thank you

Matthieu avatar
hr flag
We have found the solution, there is a limitation to the interface name length to 16 characters: https://bbs.archlinux.org/viewtopic.php?id=240607
A.B avatar
cl flag
A.B
You should write an answer to the question, but not just with the link but for example what you actually did to get it working.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.