OpenWrt Forum Archive

Topic: QoS and more...

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

Hi everyone!

I've installed White Russian in my WRT54GL and I think it's excellent!
Really linux thought with all the pros.
Now let's focus to my question. I'm trying some shaping things with tc and
I can't understand where I should do the shaping; vlan1, eth0, or br0.
I've tried tc qdisc add dev vlan1 root tbf rate 64kbit latency 50ms burst 1540
and I havent realized any difference at all. Instead when I did the same in eth0
I've noticed a real slow down, But this affects my lan too. I've seen some implementations in vlan1
but it seems it doesn't work for me.
And second I can't understand which are ifaces eth2 and eth3.
nvram get lan_ifnames-> vlan0 eth1(Wi-fi ? ) eth2 eth3 
Continue this good effort!

Thanks in advance and sorry for the big post!

I've checked the wiki before the post, and the diagram shows only eth0 for the switch and eth1 for Wi-fi.
No eth2,eth3. I'm going to remove eth2,eth3 from lan_ifnames to see what will happen.
I've installed the qos scripts form nbd and I'll dig the config files and the output from tc to understand
how it works.

thanks for your reply wallace78!

I also noticed the odd configuration on the WRT54GL

lan_ifnames=vlan0 eth1 eth2 eth3

vlan0hwname=et0
vlan0ports=3 2 1 0 5*
vlan1hwname=et0
vlan1ports=4 5
wan_device=vlan1
wan_iface=vlan1
wan_ifname=vlan1
wan_ifnames=vlan1

and after RTFM, I still see no reference to eth2 or eth3,

is eth1 the wlan?

and what are ports eth2 and eth3?

I think you need to re-read that Wiki page a few times.  Those network descriptions are valid, at least for the regular WRT units.  The eth2, eth3 references are just cruft I think, not meaningful.  Most people read the NVRAM variables so they get the "right" WAN and LAN interface names for their platform, then use the variables in the rest of the script.  Example, look at the firewall scripts they check NVRAM first to get right name.

The WRTSL54GS is a bit different though.

(Last edited by vincentfox on 26 Apr 2006, 16:07)

The discussion might have continued from here.