Hello,
You can configure the traffic policy to redirect the traffic.
Please refer to the Configuring MQC.
You can also refer the example below:
#
acl number 3000
rule 5 permit icmp
#
traffic classifier t1 operator and
if-match acl 3000
#
traffic behavior t1
redirect ip-nexthop 10.1.1.1
#
traffic policy t1
classifier t1 behavior t1
#