Hallo zusammen,
habe auf meinen Router 4 VLANs, möchte vlan1 gegenüber vlan2 bevorzugen.
Wie richte ich denn dann das qos ein? Habe folgendes Script aufgesetzt, welches nicht das gewünschte Ergebnis liefert.
Gruss
Stefan
DEV=ppp0
CEIL=700
# created a htb tree with one level depth
tc qdisc add dev $DEV root handle 1: htb default 15
tc class add dev $DEV parent 1: classid 1:1 htb rate ${CEIL}kbit ceil ${CEIL}kbit
tc class add dev $DEV parent 1:1 classid 1:10 htb rate 80kbit ceil 80kbit prio 0
tc class add dev $DEV parent 1:1 classid 1:11 htb rate 80kbit ceil ${CEIL}kbit prio 1
tc class add dev $DEV parent 1:1 classid 1:15 htb rate 30kbit ceil ${CEIL}kbit prio 3
# Classifying packets
tc filter add dev $DEV parent 1:0 protocol ip prio 1 handle 1 fw classid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 handle 2 fw classid 1:11
tc filter add dev $DEV parent 1:0 protocol ip prio 6 handle 6 fw classid 1:15
# add MYSHAPER-OUT chain to the mangle table in iptables - this sets up the table we'll useiptables -t mangle -N MYSHAPER-OUT
iptables -t mangle -I OUTPUT -o $DEV -j MYSHAPER-OUT
# marking packets adding rules to the OUTPUT chain in the mangle table
iptables -A MYSHAPER-OUT -t mangle -o $DEV -s 10.1.4.110 -j MARK --set-mark 1
iptables -A MYSHAPER-OUT -t mangle -o $DEV -s 10.1.3.110 -j MARK --set-mark 2
iptables -t mangle -A MYSHAPER-OUT -j MARK --set-mark 6
habe auf meinen Router 4 VLANs, möchte vlan1 gegenüber vlan2 bevorzugen.
Wie richte ich denn dann das qos ein? Habe folgendes Script aufgesetzt, welches nicht das gewünschte Ergebnis liefert.
Gruss
Stefan
DEV=ppp0
CEIL=700
# created a htb tree with one level depth
tc qdisc add dev $DEV root handle 1: htb default 15
tc class add dev $DEV parent 1: classid 1:1 htb rate ${CEIL}kbit ceil ${CEIL}kbit
tc class add dev $DEV parent 1:1 classid 1:10 htb rate 80kbit ceil 80kbit prio 0
tc class add dev $DEV parent 1:1 classid 1:11 htb rate 80kbit ceil ${CEIL}kbit prio 1
tc class add dev $DEV parent 1:1 classid 1:15 htb rate 30kbit ceil ${CEIL}kbit prio 3
# Classifying packets
tc filter add dev $DEV parent 1:0 protocol ip prio 1 handle 1 fw classid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 handle 2 fw classid 1:11
tc filter add dev $DEV parent 1:0 protocol ip prio 6 handle 6 fw classid 1:15
# add MYSHAPER-OUT chain to the mangle table in iptables - this sets up the table we'll useiptables -t mangle -N MYSHAPER-OUT
iptables -t mangle -I OUTPUT -o $DEV -j MYSHAPER-OUT
# marking packets adding rules to the OUTPUT chain in the mangle table
iptables -A MYSHAPER-OUT -t mangle -o $DEV -s 10.1.4.110 -j MARK --set-mark 1
iptables -A MYSHAPER-OUT -t mangle -o $DEV -s 10.1.3.110 -j MARK --set-mark 2
iptables -t mangle -A MYSHAPER-OUT -j MARK --set-mark 6