How to use shaper to hard limit one network

show traffic-policy shaper WAN-OUT | commands
set bandwidth '400mibit'
set class 10 bandwidth '50%'
set class 10 burst '1kb'
set class 10 ceiling '50%'
set class 10 match X ip destination address '172.16.179.0/24'
set class 10 queue-type 'fair-queue'
set default bandwidth '400Mbit'
set default burst '15k'
set default ceiling '100%'
set default queue-type 'fair-queue'

Can I not hard limit shaper per class? Traffic to 172.16.179.0/24 still gets 400Mbit

I have 400Mbps, and I want to give:
src-ip address X 200Mbps
src-ip address Y 150Mbps
src-ip address Z 50Mbps

I am also using input interface and redirecting wan-in to ifb123

You have set “400mibit” did you mean to set “400mbit”?

They are different numbers.

vyos@ferarri# set traffic-policy shaper shape-17mbit bandwidth
Possible completions:
   auto         Rate matches interface speed (default)
   <number>     Rate in k (1000) bytes per second
   <number>bit  bit(1), kbit(10^3), mbit(10^6), gbit, tbit
   <number>ibit kibit(1024), mibit(1024^2), gibit(1024^3), tbit(1024^4)
   <number>ibps kibps(1024*8), mibps(1024^2*8), gibps, tibps *Byte/sec*
   <number>bps  bps(8),kbps(8*10^3),mbps(8*10^6), gbps, tbps *Byte/sec*
   17mbit

Tim

No, thats not it. There is still some issues.

Assuming your link is 200Mbps and you want to limit and guarantee the traffic as below:
-10Mbps for traffic addressed to 10.0.1.2/32
-30Mbps for traffic addressed to 10.0.1.3/32
-60Mbps for traffic addressed to 10.0.1.4/32
-100Mbps for the rest (with possibility to consume even 200Mbps if available)

you can use something like this:

set shaper TEST bandwidth '200mbit'
set shaper TEST class 10 bandwidth '10mbit'
set shaper TEST class 10 match CL10 ip destination address '10.0.1.2/32'
set shaper TEST class 20 bandwidth '30mbit'
set shaper TEST class 20 match CL20 ip destination address '10.0.1.3/32'
set shaper TEST class 30 bandwidth '60mbit'
set shaper TEST class 30 match CL30 ip destination address '10.0.1.4/32'
set shaper TEST default bandwidth '100mbit'
set shaper TEST default ceiling '100%'
set shaper TEST default queue-type 'fair-queue'