Im trying to understand what subnetting is and how it works, but im pretty confused.
So, from my understanding subnetting is when you take a public ip address assigned to a network, and you can then take this address and use the Network ID portion to create different sub networks, and then use the Host ID portion to identify different hosts on that subnetwork. My question is, how that hell dose that work when your network is assigned a single public IP?? If for example my router's assigned public IP address is 30.52.165.0, could i have a subnet with an IP of 30.52.166.0, and then have a device on that subnet with an IP of 30.52.165.0? And if thats true, wouldnt that pollute the public IP address space? And what would the purpose of private IP addresses be then?
Sorry, im not sure how to even ask this question. I just want to know what subnetting does, and if im looking at this completley wrong.
0.0.0.0/0
.