OpenWRT QoS: set bandwidth limits 

Joined:
01/15/2009
Posts:
89

December 24, 2013 14:41:10    Last update: December 24, 2013 14:41:10
  1. Install needed packages:
    $ opkg update
    $ opkg install tc iptables-mod-ipopt
    $ opkg kmod-sched
    

  2. Insert a kernel module (for example, token bucket filter):
    $ insmod sch_tbf
    

  3. Limit out-going rate on WAN (upload bandwidth):
    $ tc qdisc add dev eth0 root tbf rate 2mbit burst 10kb latency 50ms peakrate 4mbit minburst 1540
    

  4. Limit out-going rate on LAN (download bandwidth):
    $ tc qdisc add dev br-lan root tbf rate 4mbit burst 10kb latency 50ms peakrate 8mbit minburst 1540
    

Share |
| Comment  | Tags