NAT/ PAT Todd Lammle 6th edition

ManglianManglian Member Posts: 58 ■■□□□□□□□□
Hi there

In his book Lammle gives two answers ( page 678-679) for poblem below and i do not understand the
the second solution ( bold line ). Can a pool contain two address from different ip addresses (from different classes )

The problem

The border router needs to be configured with NAT. Six public ip addresses 192.1.2.109 through
114.However, on the inside network there are 63 hosts that use private addressess of 192.168.10.65 through 126.

What would be your NAT configuration be ont border router ?

In the first solution

Ip nat pool Todd 192.1.2.109 192.1.2.109 netmask 255.255.255.248
access-list 1 permit 192.168.10.64 0.0.0.63
ip nat inside source list 1 pool Todd overload

In second answer

The second answer would end up with exact same result of having only 192.1.2.109 as your inside global but you can type this in and and have it work too

IP nat pool Todd 102.1.2.105 192.1.2.110 netmask 255.255.255.248
This is waste because the second through sixth ip addresses would be used if there was a conflict with a TCP port number

Any help would be really appreciated

Comments

  • scorphescorphe Member Posts: 18 ■□□□□□□□□□
    what don't you understand??the first answer is the best and the second answer can also be acceptable...though it is a waste of IP addresses that's why the first answer is the best...!
    want more???"read between the lines...
    take it or leave it...!
  • ManglianManglian Member Posts: 58 ■■□□□□□□□□
    Thanks guys I have answer from author of book through his forum.

    So the second possible answer is

    ip nat pool Todd 192.1.2.105 192.1.2.110 netmask 255.255.255.248

    Actually since it is block of 8 and all this happened because of mistake so 105-110 is in the 104 sebnet

    Cheers
  • scorphescorphe Member Posts: 18 ■□□□□□□□□□
    okay!!-o???
    take it or leave it...!
Sign In or Register to comment.