Hello,
You can use either of the following methods:
Method 1: configure the priority of the traffic behaviors. Give C2 a higher priority.. (This method is supported by some devices.)
#
acl number 3001
rule 5 permit ip source 192.168.1.0 0.0.0.255
acl number 3002
rule 1 permit ip source 192.168.1.100 0.0.0.0 //Add the required IP address.
rule 5 permit ip source 192.168.2.0 0.0.0.255
#
traffic classifier c1 precedence 2 //Configure the priority of the traffic behavior.
if-match acl 3001
#
traffic classifier c2 precedence 1 //A smaller value indicates a higher priority.
if-match acl 3002
#
traffic policy p1 match-order config
classifier c1 behavior b1
classifier c2 behavior b2
#
Method 2: Switch the sequence of C1 and C2 in the traffic policy.
#
acl number 3001
rule 5 permit ip source 192.168.1.0 0.0.0.255
acl number 3002
rule 1 permit ip source 192.168.1.100 0.0.0.0 //Add the required IP address.
rule 5 permit ip source 192.168.2.0 0.0.0.255
#
traffic classifier c1 operator or
if-match acl 3001
traffic classifier c2 operator or
if-match acl 3002
#
traffic behavior b1
redirect ip-nexthop 10.1.20.1
traffic behavior b2
redirect ip-nexthop 10.1.30.1
#
traffic policy p1 match-order config
classifier c2 behavior b2 //Change This command is before the classifier c1 behavior b1 command.
classifier c1 behavior b1
#