howtonetwork.net

Cisco Certification Training

  • Products
  • CCNA
    • CCNA Videos
    • CCNA Lectures
    • CCNA Practice Exams
    • Challenge Labs
      • Challenge Video Solutions
    • Cisco Commands
  • CCNP ROUTE
    • ROUTE Exams
  • CCNP SWITCH
    • SWITCH Exams
  • CCNP TSHOOT
  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training
You are here: Home / IP NAT Pool

IP NAT Pool

Command

IP NAT Pool

Use

This command is used to create a pool of IP addresses that NAT will translate other addresses into. The address range is used on a first come, first serve basis.

Syntax

R1(config)#ip nat pool <name> <low ip> <high ip> netmask <subnet mask>

Example

simple

In this example, we will remove all routing protocols on R2. Afterwards, using NAT, we will restore reachability so that R1 can ping 10.2.2.3

router eigrp 100
network 10.1.1.2 0.0.0.0
no auto-summary
router ospf 1
log-adjacency-changes
network 10.2.2.0 0.0.0.255 area 0
router rip
version 2
network 2.0.0.0
network 10.0.0.0
no auto-summary
R2(config-if)#no router rip
R2(config)#no router eigrp 100
R2(config-if)#no router ospf 1

R1(config)#ip route 0.0.0.0 0.0.0.0 10.1.1.2

R1(config)#do ping 10.2.2.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds:
…..
Success rate is 0 percent (0/5)

Now we will configure NAT using a pool of 10.2.2.5 to 10.2.2.10. Theses addresses will be assigned per session as needed by NAT.

R2(config)#access-list 10 permit 10.1.1.0 0.0.0.255
R2(config)#ip nat pool REACH 10.2.2.5 10.2.2.10 netmask 255.255.255.0
R2(config)#ip nat inside source list 10 pool REACH
R2(config)#int fa0/0
R2(config-if)#ip nat inside
R2(config-if)#int fa1/0
R2(config-if)#ip nat outside

R1(config)#do ping 10.2.2.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.2.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/39/116 ms

R2(config)#do sh ip nat trans
Pro Inside global Inside local Outside local Outside global
icmp 10.2.2.6:21 10.1.1.1:21 10.2.2.3:21 10.2.2.3:21
— 10.2.2.6 10.1.1.1 — —

 
Get access to over 5 hours of IT webinar videos as well as regular study tips and ideas when you
join our mailing list

About This Site

We replaced this site some time ago with an upgraded version. Please feel free to enjoy the content and if you like what you see check out our brilliant new site:

howtonetwork.com

Keep In Touch

About Us

This is a free access website which has now been replaced by howtonetwork.com.

Navigation

  • Home
  • Join
  • Downloads
  • About Us
  • Whitepapers
  • Feature Articles
  • Helpdesk
  • FAQ
  • Free Training

Copyright

All content is protected by international copyright laws. Copyright Reality Press Ltd.

Copyright © 2023 · Dynamik Website Builder on Genesis Framework · WordPress · Log in