Got it

The question about policy-based routing

Created: Sep 10, 2020 13:28:28Latest reply: Sep 11, 2020 08:13:18 371 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello everyone,

I have a question about policy-based routing. The following figure shows the networking:

1

acl number 3001

rule 5 permit ip source 192.168.100.0 0.0.0.255

acl number 3002

rule 5 permit ip source 192.168.101.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 c1 behavior b1

classifier c2 behavior b2

If 192.168.100.100 wants to take the 10.1.30.1 exit, what's the easy way?

Please help me! Thank you!


Featured Answers
DDSN
Admin Created Sep 10, 2020 13:29:35

Hi WDNJSQ,

There are two ways to deal with your situation, Method 2 is recommended.

Method 1: Set the priority of the traffic behavior so that traffic classifier C2 is preferentially executed.


acl number 3001

rule 5 permit ip source 192.168.100.0 0.0.0.255

acl number 3002

rule 1 permit ip source 192.168.100.100 0.0.0.0 //Add the required IP address.

rule 5 permit ip source 192.168.101.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 // Configures the priority of the traffic behavior. 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.100.0 0.0.0.255

acl number 3002

rule 1 permit ip source 192.168.100.100 0.0.0.0

rule 5 permit ip source 192.168.101.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

classifier c1 behavior b1


I hope it helps!


View more
  • x
  • convention:

All Answers
DDSN
DDSN Admin Created Sep 10, 2020 13:29:35

Hi WDNJSQ,

There are two ways to deal with your situation, Method 2 is recommended.

Method 1: Set the priority of the traffic behavior so that traffic classifier C2 is preferentially executed.


acl number 3001

rule 5 permit ip source 192.168.100.0 0.0.0.255

acl number 3002

rule 1 permit ip source 192.168.100.100 0.0.0.0 //Add the required IP address.

rule 5 permit ip source 192.168.101.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 // Configures the priority of the traffic behavior. 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.100.0 0.0.0.255

acl number 3002

rule 1 permit ip source 192.168.100.100 0.0.0.0

rule 5 permit ip source 192.168.101.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

classifier c1 behavior b1


I hope it helps!


View more
  • x
  • convention:

Hi user,

Thanks for your question in the Support Community.

One of our experts will answer you soon.

Regards,

HAzcanio
View more
  • x
  • convention:

good
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.