NAT/PAT

For discussions and questions related to Routing guides and labs on routeralley.com.

NAT/PAT

Postby JMS » Tue Apr 01, 2014 9:52 am

Hello,

You document on NAT shows the private address block for class c as 192.168.x.x/24.

In the rfc 1918 doc (https://tools.ietf.org/html/rfc1918) they show 192.168/16.

Is it /24 or /16?

Thanks.
JMS
 
Posts: 2
Joined: Tue Mar 25, 2014 8:36 am

Re: NAT/PAT

Postby tafeteach » Tue May 20, 2014 9:38 pm

Hi

In actual fact both are correct!

The private class C address block covers all addresses from 192.168.0.0 through 192.168.255.255 (Note that the first two octets are always 192.168)

192.168.x.x /24 means that the network portion of the address is 192.168.x ('x' being any value from 0 to 255 inclusive) and the final 'x' is the host portion (again, any value from 0 to 255 inclusive).

192.168 /16 just means that the first two octets must be 192.168 (as above) and the last two octets can be any values from 0.0 through 255.255

It's kind of like saying "six of one. Half a dozen of the other". They both mean the same thing.

Hope that helps.
tafeteach
 
Posts: 1
Joined: Tue May 20, 2014 9:27 pm

Re: NAT/PAT

Postby Beller » Tue Aug 29, 2017 2:39 am

tafeteach wrote:
It's kind of like saying "six of one. Half a dozen of the other". They both mean the same thing.

Hope that helps.



Ok thanks for explaining. Makes sense now.
Beller
 
Posts: 1
Joined: Tue Aug 22, 2017 9:24 am


Return to Routing

Who is online

Users browsing this forum: No registered users and 1 guest

cron