Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
/sbin/tc qdisc del dev eth1 root/sbin/tc qdisc add dev eth1 root handle 2: htb default 200# Default Class (just in case)/sbin/tc class add dev eth1 parent 2:0 classid 2:200 htb rate 8Kbit prio 10/sbin/tc qdisc add dev eth1 parent 2:200 pfifo limit 1024# Main Class/sbin/tc class add dev eth1 parent 2:0 classid 2:3 htb rate 256Kbit prio 3/sbin/tc qdisc add dev eth1 parent 2:3 sfq perturb 10/sbin/tc filter add dev eth1 parent 2:0 protocol ip prio 1 u32 match ip dst 192.168.0.0/24 flowid 2:3# 192.168.0.2 setup:/sbin/tc class add dev eth1 parent 2:3 classid 2:1002 htb rate 128Kbit ceil 256Kbit prio 6/sbin/tc qdisc add dev eth1 parent 2:1002 pfifo limit 1024/sbin/tc filter add dev eth1 parent 2:3 protocol ip prio 6 u32 match ip dst 192.168.0.2 flowid 2:1002# 192.168.0.3 setup:/sbin/tc class add dev eth1 parent 2:3 classid 2:1003 htb rate 128Kbit ceil 256Kbit prio 6/sbin/tc qdisc add dev eth1 parent 2:1003 pfifo limit 1024/sbin/tc filter add dev eth1 parent 2:3 protocol ip prio 6 u32 match ip dst 192.168.0.3 flowid 2:1003
#!/bin/bashDEVUP="eth1"RATEUP=\"100\"SFARMRATE=\"100\"UNCLASSRATE=\"1\"TARIF1=\"256\"BURST1=\"260\"tc qdisc del dev $DEVUP root 2> /dev/null > /dev/nulltc qdisc del dev $DEVUP ingress 2> /dev/null > /dev/null#Add root discipline to device eth1 -----------------------------------------------------------tc qdisc add dev $DEVUP root handle 1:0 htb default 200tc qdisc add dev $DEVUP handle ffff: ingress#Add root classes to root discipline ----------------------------------------------------------#Add root class for workstations packets flowtc class add dev $DEVUP parent 1:0 classid 1:1 htb bandwidth ${RATEUP}mbit#Add root class for servers packets flowtc class add dev $DEVUP parent 1:0 classid 1:300 htb bandwidth ${SFARMRATE}mbit#Add root class to unclassified packets flowtc class add dev $DEVUP parent 1:0 classid 1:200 htb bandwidth ${UNCLASSRATE}kbit#Add branch classes to root classes -----------------------------------------------------------#Add leaf classes to 1:1 root class# 1. User1tc class add dev $DEVUP parent 1:1 classid 1:10 htb rate ${TARIF1}kbit burst ${BURST1}kbit ceil ${RATEUP}mbit# 2. User2tc class add dev $DEVUP parent 1:1 classid 1:11 htb rate ${TARIF1}kbit burst ${BURST1}kbit ceil ${RATEUP}mbit#Servers farm rules-----------------------------------------------------------------------------------#Add leaf class to 1:300 classtc class add dev $DEVUP parent 1:300 classid 1:400 htb rate ${SFARMRATE}mbit ceil ${SFARMRATE}mbit#Add filters -----------------------------------------------------------------------------------------#Add filter for server farm realm packets flow classificationtc filter add dev $DEVUP protocol ip parent 1:0 prio 1 u32 match ip src 192.168.52.0/25 flowid 1:400#Add filter for ingress packets flow from workstations# 1. User1tc filter add dev $DEVUP protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.52.94 flowid 1:10# 2. User2tc filter add dev $DEVUP protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.52.13 flowid 1:11
udo bash /etc/traffpro/traffpro_shaper[sudo] password for clio: Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3Illegal "rate"Usage: ... qdisc add ... htb [default N] [r2q N] default minor id of class to which unclassified packets are sent {0} r2q DRR quantums are computed as rate in Bps/r2q {10} debug string of 16 numbers each 0-3 {0}... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] [prio P] [slot S] [pslot PS] [ceil R2] [cburst B2] [mtu MTU] [quantum Q] rate rate allocated to this class (class can still borrow) burst max bytes burst which can be accumulated during idle period {computed} mpu minimum packet size used in rate computations overhead per-packet size overhead used in rate computations linklay adapting to a linklayer e.g. atm ceil definite upper class rate (no borrows) {rate} cburst burst but for ceil {computed} mtu max packet size we create rate map for {1600} prio priority of leaf; lower are served first {0} quantum how much bytes to serve from leaf at once {use r2q}TC HTB version 3.3
tc class add dev $DEVUP parent 1:0 classid 1:1 htb bandwidth ${RATEUP}mbit
Страница сгенерирована за 0.019 секунд. Запросов: 20.