07-10-2012 01:10 PM - edited 03-07-2019 07:42 AM
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
07-10-2012 01:30 PM
You need to use Policy Based Routing (PBR).
07-10-2012 01:50 PM
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
07-10-2012 02:04 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide