cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
787
Views
0
Helpful
2
Replies

NAT and Redirect

nedk12345
Level 1
Level 1

Hello, I need help with natting traffic and redirecting based on ports to another machine. In attached diagram I am trying to get traffic from source of R1 L0=1.1.1.1 destined to R2 E0 =10.1.1.2 port 80 to redirect to destination R3 E0=10.1.2.2 port 80 however also the source ip needs to be changed from 1.1.1.1 to R2 's E1 interface ip of 10.2.1.1. Pls help. thx

Test.JPG

The command I used to translate 1.1.1.1 to R2's Eth1 interface is

- ip nat inside source static 1.1.1.1 int e1

However I cannot seem to figure out how to make traffic that is destined to 10.1.1.2 redirect to 10.1.2.2. It seems that since traffic is getting routed first since it is coming from inside to outside and gets dropped but never makes it to nat. Tx

2 Replies 2

grinch182
Level 1
Level 1

Hello there,

U need configure you nat as ip nat inside source static 1.1.1.1 80 interface E1 80

Hope it helps.

Sincerely,

GRinch

Tx. Is there any way to specify the destination ip address individually in the NAT statement  if there are multiple hosts behind R3 that I want to redirect to based on port number.