Got it

Redirect ip-nexthop

Created: Apr 14, 2020 07:21:07Latest reply: Apr 15, 2020 11:24:10 2635 2 1 0 0
  Rewarded HiCoins: 5 (problem resolved)

Hey there,

Here is the topology.

redirect

AR1 has a default route pointing to AR3. I want to configure AR1 to redirect all routes with the source address 2.2.2.2 to AR4 except the route to 3.3.3.3. 

Key configurations are as follows: 

#

acl number 3000  

 rule 5 permit ip source 2.2.2.2 0 

acl number 3001  

 rule 5 permit ip source 2.2.2.2 0 destination 3.3.3.3 0 

#

traffic classifier 2 operator or

 if-match acl 3001

traffic classifier 1 operator or

 if-match acl 3000

#

traffic behavior 2

traffic behavior 1

 redirect ip-nexthop 10.0.14.4

#

traffic policy 1

 classifier 2 behavior 2

 classifier 1 behavior 1

#

interface GigabitEthernet0/0/0

 traffic-policy 1 inbound

#


After complete, strangely, 3.3.3.33 can be pinged from 2.2.2.2, which should not be the case.  Please help to find out what the problem is. Thank you very much!


ping


Attachment: You need to log in to download or view. No account? Register

Featured Answers

Best answer

Recommended answer

Popeye_Wang
Admin Created Apr 14, 2020 07:23:21

Hello friend,

The route configuration on AR4 is incorrect. The following tracert output shows that after the packets are redirected to AR4, they match the default route and are forwarded back to AR1. So 2.2.2.2 can still ping 3.3.3.33 on AR2.  

<AR2>tracert -a 2.2.2.2 3.3.3.33

 traceroute to  3.3.3.33(3.3.3.33), max hops: 30 ,packet length: 40,press CTRL_C

 to break 

 1 10.0.1.1 10 ms  30 ms  20 ms 

 2 10.0.14.4 20 ms  30 ms  10 ms 

 3 10.0.14.1 20 ms  20 ms  20 ms 

 4 10.0.13.3 30 ms  30 ms  30 ms 

You should delete the default route and configure a common static route on the AR4.

ip route-static 2.2.2.2 32 10.0.14.1

By the way, it's better to replace the default route on AR3 too. In the current configuration, if AR2 pings any unreachable IP address, a loop will occur between AR1 and AR3.


I hope this helps.

View more
  • x
  • convention:

All Answers

Hello friend,

The route configuration on AR4 is incorrect. The following tracert output shows that after the packets are redirected to AR4, they match the default route and are forwarded back to AR1. So 2.2.2.2 can still ping 3.3.3.33 on AR2.  

<AR2>tracert -a 2.2.2.2 3.3.3.33

 traceroute to  3.3.3.33(3.3.3.33), max hops: 30 ,packet length: 40,press CTRL_C

 to break 

 1 10.0.1.1 10 ms  30 ms  20 ms 

 2 10.0.14.4 20 ms  30 ms  10 ms 

 3 10.0.14.1 20 ms  20 ms  20 ms 

 4 10.0.13.3 30 ms  30 ms  30 ms 

You should delete the default route and configure a common static route on the AR4.

ip route-static 2.2.2.2 32 10.0.14.1

By the way, it's better to replace the default route on AR3 too. In the current configuration, if AR2 pings any unreachable IP address, a loop will occur between AR1 and AR3.


I hope this helps.

View more
  • x
  • convention:

Posted by Popeye_Wang at 2020-04-14 07:23 Hello friend,The route configuration on AR4 is incorrect. The following tracert output shows that af ...
Sorry for the late reply. Your solution is workable. Thank you very much.
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.