cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
573
Views
5
Helpful
6
Replies

basic subnetting question

skypilott2
Level 1
Level 1

I am working toward my CCNA and studying on Cisco website for NAT translation. According to the scenario presented, is this correct?

S0 - 172.16.10.64/24

The available valid addressed which we can use (for NAT) are 172.16.10.1 - 172.16.10.62.

I would think the correct valid addresses for this network would be:

172.16.10.65 - 172.16.10.126

Why is this incorrect?

Thanks for any help.

6 Replies 6

pstebner10
Level 1
Level 1

Something looks wierd. Does this mean that the IP address of the serial (S0) interface is 172.16.10.64? If this is correct, with a 24-bit subnet mask, then .1-.254 are available (except for .64 since it is already in use)for NATing purposes. The range that they have specified would be valid for the network 172.16.10.0 /26, though then the S0 interface could not have the .64 address.

The range that you have specified (.65-.126) is 172.16.10.64 /26

They are actually both wrong. Can you post the link where you read this?

HTH,

Paul

Paul,

Here is the link:

http://www.cisco.com/en/US/tech/tk648/tk361/technologies_tech_note09186a0080094837.shtml

Scroll down to the section entitled "Example: Allowing Internal Users to Access the Internet" and see the diagram below it. Perhaps I am just misreading what I am seeing?

Thanks,

Robb

Leo Laohoo
Hall of Fame
Hall of Fame

Let me break this down ...

S0 - 172.16.10.64 /24

Mask: 255.255.255.0 (/24)

Subnet: 172.16.10.0

Broadcast: 172.16.10.255

Ergo: Useable valid addresses are from

172.16.10.1 to 172.16.10.254 where 172.16.10.64 is a member thereof.

Does this help?

If you go the link I posted above and view the example, now that I reconsider it, the following statement threw me off:

"The available valid addresses which we can use are in the range of 172.16.10.1 through 172.16.10.63"

With a /24 network, I don't think 172.16.10.64 can be a subnet ID --- as Paul said above, a .64 ID would require a /26 mask.

I looked at the link - they are just defining a pool of available addresses for NAT (not overloading) to be .1 - .63. So, in effect, this example is correct. They could, however use the whole /24 network for NAT if they wanted to, minus the .64 (S0) address.

By the way, just defining a network of 172.16.10.64 does not necessarily mean that it has to be a /26 - this could be variably subnetted to whatever you need. /26 just means that you are using .65-.126 as available addresses, with .127 being your broadcast address. You could alternatively, for example, use 172.16.10.64 /27 or /28, /29, /30

for networks of 172.16.10.65 - 94, 172.16.10.65 - .78, etc.

HTH,

Paul

That is correct...thanks for your help.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card