cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4955
Views
0
Helpful
3
Replies

Destination IP address redirection

itgnuru2012
Level 1
Level 1

Hello I have a Cisco 2600.  I would like to know how to redirect traffic going to a certain IP address three hops away to an IP address on a locally connected segment. 

Ex.  Packet leaves a device with source IP of 10.10.10.10 and destination of 20.20,20.20   When the packet hits the router (10.10.10.1) I want the router to redirect the destination of 20.20.20.20 to 30.30.30.30 (locally connected segment).

The router has two physical interfaces.

I am thinking along the lines of creating a VLAN with an ip of 30.30.30.1 and then doing a NAT translation from 20.20.20.20 to 30.30.30.30. 

Is this possible and how would I do that?

Any insight would be appreciated. Thanks

3 Replies 3

Edison Ortiz
Hall of Fame
Hall of Fame

You need to use Policy Based Routing (PBR).

Hi thanks for your reply.  So I can use PBR to have host 30.30.30.30 masquerade at host 20.20.20.20 ?  I'm a little unclear.  Basically the scenario is that 20.20.20.20 is a non-existant DNS server.  I cannot change this DNS server in our devices as it is hardcoded. I want host 30.30.30.30 to masquerade as 20.20.20.20 for traffic on 10.10.10.10 segment.  PBR will do this? 

thx

You weren't clear on your original question.

My understanding is that you wanted to redirect traffic from 10.10.10.x which defaults to 20.20.20.20 to go via 30.30.30.30.

If you want to translate the IP, then you need NAT.

We don't use term masquerade in the Cisco world I'm assuming you mean network address translation.

If your devices are looking for 20.20.20.20 (DNS server) while the real DNS is actually 30.30.30.30, you can definitely use NAT instead of PBR.

Review Cisco Networking products for a $25 gift card