${fwcmd} pipe 1 config bw 64Kbit/s
${fwcmd} pipe 2 config bw 200Kbit/s
${fwcmd} pipe 3 config bw 128Kbit/s
${fwcmd} pipe 4 config bw 200Kbit/s
${fwcmd} add pipe 1 all from any to 192.168.20.0/24 out
${fwcmd} add pipe 2 all from any to 192.168.21.0/24 out
${fwcmd} add pipe 3 all from any to 192.168.23.0/24 out
${fwcmd} add pipe 1 all from any to 192.168.24.0/24 out
${fwcmd} queue 20 config weight 15 pipe 4
${fwcmd} add queue 20 all from any to 192.168.20.0/24 out
${fwcmd} queue 21 config weight 100 pipe 4
${fwcmd} add queue 21 all from any to 192.168.21.0/24 out
${fwcmd} queue 23 config weight 75 pipe 4
${fwcmd} add queue 23 all from any to 192.168.23.0/24 out
${fwcmd} queue 24 config weight 35 pipe 4
${fwcmd} add queue 24 all from any to 192.168.24.0/24 out
При закачивании на хосты
192.168.21.5
192.168.21.7
Получаю что только в трубу попадает трафик на хост 7
boa# ipfw pipe l
00001: 64.000 Kbit/s 0 ms 50 sl. 1 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
0 tcp 205.188.11.244/5190 192.168.20.10/1787 4 376 0 0
0
00002: 200.000 Kbit/s 0 ms 50 sl. 1 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
0 tcp 192.168.21.254/3128 192.168.21.7/2962 2510 2973283 0 0 0
00003: 128.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
00004: 200.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
q00020: weight 15 pipe 4 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
q00021: weight 100 pipe 4 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
q00023: weight 75 pipe 4 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
q00024: weight 35 pipe 4 50 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
boa#