ba arze salam v tabreke sale no be shoma dostane aziz
rastesh dar morede bandwidthd dar linux soali dashtam age komakam konid khaili mamnon misham
man ba htb dar redhat 9 bandwidthd ro config kardam
fagat enke naidonam chetor bayad be chand ta ip 1 bande moshakhas bedam
masalan toye ye net be ip address haye 85.180.85.10 , 85.180.85.11 , 85.180.85.12 megdar pahnaye bande 128 ro ekhtesas bedam
yani hamegishon betore moshtarak v share az en band estedafe konan
en scripti hastesh ke en kar ro anjam mede
tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
tc qdisc add dev eth0 root handle 1: htb
tc qdisc add dev eth1 root handle 1: htb
eth0 = LAN side = send#
eth1 = Wireless side = receive#
anu company #
receive#
tc class add dev eth1 parent 1: classid 1:1 htb rate 128kbit ceil 128kbit
tc filter add dev eth1 parent 1: protocol ip prio 1 handle 1 fw classid 1:1
iptables -t mangle -A FORWARD -o eth1 -d 85.180.85.2 -j MARK --set-mark 1
send#
tc class add dev eth0 parent 1: classid 1:1 htb rate 128kbit ceil 128kbit
tc filter add dev eth0 parent 1: protocol ip prio 1 handle 2 fw classid 1:1
iptables -t mangle -A FORWARD -o eth0 -s 85.180.85.2 -j MARK --set-mark 2
khaili mamnon misham ke rahnemaeem konid
موضوعات مشابه: