traffic-policy {
shaper DOWNLOAD {
bandwidth 10gbit
class 10 {
bandwidth 10mbit
burst 15k
match IP-2.2 {
ip {
destination {
address 101.1.2.2/32
}
}
}
queue-type fq-codel
}
class 11 {
bandwidth 20mbit
burst 15k
match IP-2.3 {
ip {
destination {
address 101.1.2.3/32
}
}
}
queue-type fq-codel
}
default {
bandwidth 100%
burst 15k
queue-type fair-queue
}
}
shaper UPLOAD {
bandwidth auto
class 10 {
bandwidth 10mbit
burst 15k
match IP-2.2 {
ip {
source {
address 101.1.2.2/32
}
}
}
queue-type fq-codel
}
default {
bandwidth 100%
burst 15k
queue-type fair-queue
}
}
}
interfaces {
ethernet eth0 {
hw-id 50:00:00:09:00:00
vif 10 {
address 105.10.10.2/30
redirect ifb0
traffic-policy {
out UPLOAD
}
}
vif 20 {
address 105.20.20.2/30
}
}
ethernet eth1 {
hw-id 50:00:00:09:00:01
}
ethernet eth2 {
address 101.1.1.1/24
hw-id 50:00:00:09:00:02
}
ethernet eth3 {
address 101.1.2.1/24
hw-id 50:00:00:09:00:03
}
input ifb0 {
traffic-policy {
out DOWNLOAD
}
}
loopback lo {
}
}