Vconfig for vlan priority ? how to set: EGRESS priority mappings?

hello,
i need to use this command :slight_smile:

vconfig set_egress_map ptm0.832 1 0

but it says that vconfig is not found...was it something to compile with busybox ??
does anyone know how to perform the same thing with another command ? what is it replacing vconfig ?

Thank you for your help.

wouldn't it be swconfig ???

This forum is dead or what ?
3 questions in 2 weeks, 0 answers.

I think vlan is set by ip
you can find vconfig in busybox if you make a manual build

regards

Thank you for your help !

but unfortunately :

root@LEDE:~# ip link set link ptm0 name ptm0.832 type vlan id 832 egress 0:0
ip: either "dev" is duplicate, or "ptm0" is garbage

What's wrong ? a syntax error ?

Here is my ip link show

root@LEDE:~# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether e2:2e:94:47:d3:36 brd ff:ff:ff:ff:ff:ff
5: ptm0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP qlen 1000
link/ether b0:b2:8f:f7:3e:30 brd ff:ff:ff:ff:ff:ff
6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b0:b2:8f:f7:3e:3c brd ff:ff:ff:ff:ff:ff
7: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether b0:b2:8f:f7:3e:3c brd ff:ff:ff:ff:ff:ff
8: ptm0.838@ptm0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b0:b2:8f:f7:3e:30 brd ff:ff:ff:ff:ff:ff
9: ptm0.840@ptm0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b0:b2:8f:f7:3e:30 brd ff:ff:ff:ff:ff:ff
10: ptm0.832@ptm0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether b0:b2:8f:f7:3e:30 brd ff:ff:ff:ff:ff:ff
11: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP qlen 1000
link/ether 34:8a:ae:77:4a:3f brd ff:ff:ff:ff:ff:ff
12: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
link/ether 34:8a:ae:77:4a:3e brd ff:ff:ff:ff:ff:ff

and cat /proc/ptm0.832

root@LEDE:~# cat /proc/ptm0.832
ptm0.832 VID: 832 REORDER_HDR: 1 dev->priv_flags: 1
total frames received 17528456
total bytes received 23313198078
Broadcast/Multicast Rcvd 14777926
total frames transmitted 2007311
total bytes transmitted 345677143
Device: ptm0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESS priority mappings:

hello,
according to what i see here :
https://community.mellanox.com/docs/DOC-2311
the correct syntaxe should be :

root@LEDE:~# ip link set ptm0.832 vlan type egress 0:0
ip: either "dev" is duplicate, or "vlan" is garbage

But once again it doesn't WORK !!!!! :rage: :rage: :rage:

Why the hell did they remove vconfig ?? and there is nothing that can replace it !!!! :rage::rage::rage:

According to @lucize -- you can build your own busybox with vconfig included. Have you tried that?

PS. People may be reluctant to provide further advice seeing that you didn't follow up on the advice already given.

1 Like

Try installing the full ip package.

i bought my device pre installed with LEDE (BT HOME HUB 5 A aka HH5A) because this building part is not my cup of tea. too hard for me. i don't want to brick the router and have to pass hours soldering cables and try to flash...etc...

By the way how to build my own busybox ? can i do it on my PC and just replace the file with winscp ?

The proper command would be

ip link set ptm0.832 type vlan egress 0:0

@jow
i tried it already:

root@LEDE:~# ip link set ptm0.832 type vlan egress 0:0
ip: either "dev" is duplicate, or "type" is garbage

Then install the full ip command:

opkg update
opkg install ip-full

and retry.

2 Likes

How do you install the "Full ip Package" ? what's the name of this package in luci ?
edit: Ok

root@LEDE:~# opkg install ip-full
Installing ip-full (4.4.0-9) to root...
Downloading http://downloads.lede-project.org/releases/17.01.2/packages/mips_24kc/base/ip-full_4.4.0-9_mips_24kc.ipk
Configuring ip-full.
root@LEDE:~# ip link set ptm0.832 type vlan egress 0:0
ip: either "dev" is duplicate, or "type" is garbage

Do i have to reboot after that ??

Yes, try a reboot.

1 Like

You are a BOSS !!!
it worked after the reboot :slight_smile:

Thank you very much !!!!