NAT examples


NAT and PAT

Use below topology for the following examples

nat_examples

NAT Static

R2(config)#ip nat inside source static [Inside local IP address] [Inside global IP address]

R2(config)#in f0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat inside

R2(config)#in s0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat outside

NAT Dynamic

R2(config)#ip nat pool [pool name] [address range] netmask [network address mask]
R2(config)#ip nat inside source list [list #] pool [name of nat-pool]

R2(config)#in f0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat inside

R2(config)#in s0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat outside

R2(config)#access-list [same list # used above] permit [ip address] [wildcard mask]

PAT

R2(config)#in f0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat inside

R2(config)#in s0/0
R2(config-if)#ip address [ip address] [subnet mask]
R2(config-if)#ip nat outside

R2(config)#ip nat inside source list [list #] interface s0/0 overload

R2(config)#access-list [list #] permit [network address] [subnet mask]
R2(config)#access-list [list #] permit [network address] [subnet mask]

Enjoy!

Tom

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: