Nat – Networks, subnets, routing and NAT

nat;networkingroutingsubnet

What I'm going to ask may be trivial but I really need to understand cause my teacher is confusing me!

That's the problem. I got 2 private networks

  • The first is a class C network and the address is 192.168.1.0/24 (I'll call this C1)

  • The second is a class A network which I divided in two subnets: 10.1.0.0/16 (A1) and 10.2.0.0/16 (A2)

Now I got one router between A1 and A2, and another between A2 and C1. I've configured the routing so that packets can go from A1 to A2 and from A2 to C1.
Then teacher told me: "Router between A1 and A2 is ok, but A2 and C1 can't communicate cause they are different networks! You need to set up NAT in that router."

And here is the question: why do I have to use NAT here? I can't figure out why NAT is needed between two private networks!

Thanks for your help

Best Answer

To start, your teacher is wrong. On a side note: S/He should be reprimanded for even teaching Classed Networking, that was antiquated 16 years ago. It should not be taught, period (except in History class).

You do not need NAT in this case at all. Your three networks do not interface with the public Internet, and they are all using internal IP ranges.

NAT would be necessary if your networks were communicating with the Internet because your Internal IP ranges will not work on the Internet. Only non-Internal IPs work on the Internet. The NAT device takes a single (usually) Internet IP and allows the computers with Internal IPs to "fake" it (communications to the Internet will use the valid IP, and the NAT device keeps everything straight).