Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Destination IP address redirection

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

Everyone's tags (4)
3 REPLIES
Hall of Fame Super Bronze

Destination IP address redirection

You need to use Policy Based Routing (PBR).

New Member

Destination IP address redirection

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

Hall of Fame Super Bronze

Destination IP address redirection

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.

3481
Views
0
Helpful
3
Replies