From 0ad3beea4bd0ec1d4fdc3fd70eec06692489ba92 Mon Sep 17 00:00:00 2001 From: arrow zhang Date: Fri, 23 May 2008 23:09:38 +0800 Subject: [PATCH] [UP] use ingress to shape qos --- conf_slk120/bin/.bin/shell/athome | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/conf_slk120/bin/.bin/shell/athome b/conf_slk120/bin/.bin/shell/athome index a8c3f76..640bfc8 100755 --- a/conf_slk120/bin/.bin/shell/athome +++ b/conf_slk120/bin/.bin/shell/athome @@ -18,11 +18,15 @@ ifconfig ${LAN} 192.168.3.225 ip route add to default via 192.168.0.1 dev ${WLAN} #exit 0 # downspeed: 2299kbps, upspeed 638kbps -tc qdisc del dev ${LAN} root 2>/dev/null -tc qdisc add dev ${LAN} root handle 1: htb default 10 -tc class add dev ${LAN} root classid 1:10 htb rate 80kbps +#tc qdisc del dev ${LAN} root 2>/dev/null +#tc qdisc add dev ${LAN} root handle 1: htb default 10 +#tc class add dev ${LAN} root classid 1:10 htb rate 80kbps # for safe, config up stream at ${WLAN} tc qdisc del dev ${WLAN} root 2>/dev/null tc qdisc add dev ${WLAN} root handle 1: htb default 10 tc class add dev ${WLAN} root classid 1:10 htb rate 80kbps +tc qdisc del dev ${WLAN} ingress +tc qdisc add dev ${WLAN} handle ffff: ingress +tc filter add dev ${WLAN} parent ffff: protocol ip prio 50 u32 match ip src 0.0.0.0/0 police rate 90kbps burst 20kb drop flowid :1 + -- 2.11.4.GIT