NAT – PAR configuration


NAT_PAR

Recently I have been practising NAT a lot , exploring many IOS options and configurations.

Imagine R2 is our telnet server and we need to configure R1 that when it receives packets destined for IP address of its Serial 0/0 interface for port 23 , it then redirects the traffic to our telnet server R2.

Please see below configuration:

R1#(config)#int f 0/0
R1#(config-if)#ip nat inside
R1#(config)#int s 0/0
R1#(config-if)#ip nat outside

R1#(config)#ip nat inside source static tcp 10.1.123.2 23 interface s0/0 23

R4#teln 131.1.14.1

Trying 131.1.14.1 ….Open

Username: R2
Password: R2

R2>

————————————————————————————————————————————————————————————–

Another similar scenario. Whenever R1 receives any traffic destined for the IP address of it’s S0/0 interface for ports 80 and 8080 then the traffic should be redirected to R3

R1#(config)#int f 0/0
R1#(config-if)#ip nat inside
R1#(config)#int s 0/0
R1#(config-if)#ip nat outside

R1#(config)#ip nat inside source static tcp 10.1.123.2 80 intre s0/0 80
R1#(config)#ip nat inside source static tcp 10.1.123.2 8080 intre s0/0 8080

 

R4#teln 131.1.14.1 80

Trying 131.1.14.1, 80 ….Open

 

Enjoy !

Tom

About ccie4all
Hello, and welcome to the first post of my CCIE blog This blog has got one simple goal and that is to improve our skills in Cisco Networking field so we can become best engineers on a job market. Wordpress Blog https://ccie4all.wordpress.com/ information about the changes made to Gns3 BGP , MPLS and R&S CCIE labs. In order to access and download all provided materials and receive important updates from Gns3 BGP , MPLS and R&S CCIE labs under GNS3 tab in the main header please go ahead and subscribe to https://ccie4all.wordpress.com/ ! All other posts have not been affected and can be accessed at any given time. Enjoy ! Tom

2 Responses to NAT – PAR configuration

  1. Seamus Greenan says:

    Excellent Tom.
    Check out INE’s Petr Lapukhov’s article..
    http://blog.ine.com/2008/02/15/the-inside-and-outside-of-nat/
    where he discusses NVI based NAT. Very illuminating.
    Rgds
    Seamus

Leave a comment