cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

642
Views
0
Helpful
3
Replies
Highlighted
Beginner

Dynamic NAT & IP release

Hi,

 

I'm studying NAT and there is something I don't understand about dynamic NAT so maybe you guys can help.

 

I have used both Packet Tracer (7.1) and a small lab to test NAT.

My topology is quite simple : 3 PC/clients, a switch, two routers (A/B), a web server. NAT is performed on router A. B is the remote router.

I set up a pool with 2 IP.

On Packet Tracer, with a browser, PC 1 can access the server. PC 2 as well. PC 3 cannot which is normal.

Now, I read several times, for dynamic NAT, when an IP is no longer used it is released and made available in the pool again. My problem is, on Packet Tracer, the IP remains 'captive' even if the browser is closed.

 

Since I thought it might be a Packet Tracer 'weird' behaviour so I tried on a lab with two routers A/B (1841/IOS 15) and three loopbacks on A. Pinging from lo 0/1/2 to Outside Global on B. The behaviour is the same.

 

So I guess I'm missing something here.

 

Any help appreciated :p

 

Eric

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

Re: Dynamic NAT & IP release

Lv426,

A dynamic NAT translation will remain active for some time after it is last used. I believe that is somewhere in the neighborhood of 24hrs. You can change this behavior using the 'ip nat translation timeout' command and its more specific children. Additionally, a modern HTTP session is typically persistent and never closed, so the router will never see a fin packet.

3 REPLIES 3
Beginner

Re: Dynamic NAT & IP release

Lv426,

A dynamic NAT translation will remain active for some time after it is last used. I believe that is somewhere in the neighborhood of 24hrs. You can change this behavior using the 'ip nat translation timeout' command and its more specific children. Additionally, a modern HTTP session is typically persistent and never closed, so the router will never see a fin packet.

Beginner

Re: Dynamic NAT & IP release

Thank you for your quick answer. It's perfectly clear.

Now I must investigate the scenarii where dynamic NAT is useful because right now I don't see much interest.

 

Anyway, thank you again Rich

 

Eric

Beginner

Re: Dynamic NAT & IP release

Self-reply :p

 

I was forgetting a simple thing:

 

hosts number < pool : Dynamic NAT w/pool

hosts number > pool : Dynamic NAT w/pool+overload

 

Makes sense now.

 

Good day!

 

Eric

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards