?
Solved

policy based NAT on router

Posted on 2011-09-12
4
Medium Priority
?
329 Views
Last Modified: 2012-06-21
Hello Experts,

It has been a long time since I have done NATing on an IOS router 2600 series with 12.x code.

Assume that f0/1 is IP NAT inside and f0/0 is IP NAT outside.

There is a VPN tunnel with 20.20.20.20 from the outside connecting to my 10.10.10.10 on inside.

When 20.20.20.20 from outside hits my 2800 router to access destination 10.10.10.10, I want it to translate to a source of 15.15.15.15.

It's a piece of cake to do it on an ASA.

0
Comment
Question by:trojan81
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:trojan81
ID: 36526265
anyone?
0
 
LVL 18

Assisted Solution

by:jmeggers
jmeggers earned 400 total points
ID: 36526978
0
 
LVL 6

Accepted Solution

by:
Sanjeevloke earned 1600 total points
ID: 36528489
interface FastEthernet0/1
 ip address 10.10.10.1 255.255.255.0
 ip nat inside

interface F0/1
 ip address 100.100.100.1 255.255.255.0
 ip nat outside

ip nat outside source static 20.20.20.20 15.15.15.15


Debug O/P
00:29:21: IP: s=15.15.15.15 (FastEthernet0), d=10.10.10.10 (FastEthernet0), len 100, rcvd 3
00:29:21: IP: s=10.10.10.10 (local), d=15.15.15.15 (FastEthernet0), len 100, sending
00:29:22: IP: s=15.15.15.15 (FastEthernet0), d=10.10.10.10 (FastEthernet0), len 100, rcvd 3
00:29:22: IP: s=10.10.10.10 (local), d=15.15.15.15 (FastEthernet0), len 100, sending

R1# sh ip nat translations
Pro Inside global      Inside local       Outside local      Outside global
--- ---                ---                              15.15.15.15        20.20.20.20
--- 10.10.10.10        10.10.10.10        15.15.15.15        20.20.20.20

0
 

Author Comment

by:trojan81
ID: 36531540
thank you sanjeevloke,

What if instead of source NATing to 15.15.15.15, I want it to PAT out of the egress interface which is 10.10.10.1.

Would you be able to provide me a sample syntax? Must appreciated!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question