cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2778
Views
0
Helpful
8
Replies

Cisco IOS NAT to change destination address

fgasimzade
Enthusiast
Enthusiast

Hello everyone!

I need some kind of NAT on a cisco router to translate destination address

Say, if a PC send packets from 192.168.1.1 to 1.1.1.1 I need to translate 1.1.1.1 to 2.2.2.2

I think it can be achieved with routes maps, but dont know how

Thank you in advance!

8 Replies 8

nkarthikeyan
Rising star
Rising star

Hi,

Am not pretty sure about your query. Your source is 192.168.1.1 and the destination is 1.1.1.1

You want to translate 192.168.1.1 to 2.2.2.2 to reach 1.1.1.1? or something different you need.

Please do rate if the given information helps.

By

Karthik

I need to translate 1.1.1.1 to 2.2.2.2, so it would look like a PC sends traffic to 2.2.2.2

Our PC is harcoded to send packets to 1.1.1.1 - it can not be changed. But we need the destination address (1.1.1.1) to be 2.2.2.2

Hi,

The 1.1.1.1 and 2.2.2.2 are public IPs and the 1.1.1.1 is the public IP that connected to your router interface.

Please clarify,

Regards,

Yes, they are public ip addreses, non of them are connected to my router.

Say PC is 192.168.1.1, and Router inside ip is 192.168.1.2, outside address is 3.3.3.3 (public)

PC sends traffic to 1.1.1.1 (to the internet), I need to translate 1.1.1.1 to 2.2.2.2

Hi,

Actual Public ip of the destination server is 1.1.1.1. But your PC will try reaching that server by 2.2.2.2. So that 2.2.2.2 ip once again will get NAT to 1.1.1.1. Thats is what your requirement right???

Please do rate for the helpful posts.

By

Karthik

No, instead, actual ip address is 2.2.2.2, but PC sends only to 1.1.1.1

This example changes Source Address only..

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers