xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 108 forks source link

Interface name is too long #112

Open marcioelias opened 4 years ago

marcioelias commented 4 years ago

Anyone trying to run 802.1ad (QinQ) interfaces and getting this error?

pppoe: vlan-mon: eth5.501.116: interface name is too long

Here is the accel-ppp.conf about the configuration of the interfaces.

vlan-mon=eth5.501,2-4095
vlan-timeout=900
vlan-name=%I.%P.%N
interface=re:eth5.*.*

If I comment vlan-mon parameters and set up the C-VLAN manually, all works fine, but when I let the vlan-mon driver create the C-VLAN, I receive this message on the debug log.

Anyone that has this scenario working and that can help me with this?

lbjw commented 4 years ago

This works for me:

vlan-mon=re:eth1.[0-9]+,1000-2000 interface=re:eth1.[0-9]+ vlan-name=%I.%N

lbjw commented 4 years ago

I also had this happen with enp1s0fX named interfaces recently which was resolved by renaming them to ethX in the operating system.

DmitriyEshenko commented 4 years ago

Interface names in linux might contain maximum 15 characters. Best practice in this case use following example

vlan-mon=re:enp1s0fX\.\d+,2-4095
vlan-name=e0.%N.%P
interface=re:^e0\.\d+\.\d+$

As result you can see interfaces with name e0.S-VLAN.C-VLAN (e0.501.4095)