CIDR
- Classless Inter-Domain Routing
- Used in
- Security groups
- AWS networking
- Help define IP Range
- Has two components
- Base IP (XX.XX.XX.XX)- IPthat contains in the range
 
- Subnet Mask (/XX)- Determine how many bits can be change in the IP
 
- Determine how many bits can be change in the 
Subnet Mask
- Calculate IP Ranges
- Formula (2^(32-subnetMaskNumber))
- Some Examples- /32allows- 1- IP= 2^0
- /31allows- 2- IP= 2^1
- /30allows- 4- IP= 2^2
- /29allows- 8- IP= 2^3
- /28allows- 16- IP= 2^4
- /27allows- 32- IP= 2^5
- /26allows- 64- IP= 2^6
- /25allows- 128- IP= 2^7
- /24allows- 256- IP= 2^8
- /16allows- 65,536- IP= 2^16
- /0allows- ALL- IP= 2^32
 
- Quick Memo- /32- no IP number can change
- /24- last IP number can change
- /16- last IP two numbers can change
- /8- last IP three numbers can change
- /0- All IP numbers can change
 
- Exercise- Find range 192.168.0.0/24
- Last IP number can change
- Range be 192.168.0.0to192.168.0.255(256IP)
- Alternate 2^(32-24)=256IP
- Find range 192.168.0.0/16
- Last 2 IP number can change
- Range be 192.168.0.0to192.168.255.255(65,536IP)
- Alternate 2^(32-16)=65,536IP
- Find range 134.56.78.123/32
- No number can change
- Range be 134.56.78.123to134.56.78.123(1IP)
- Alternate 2^(32-32)=1IP
- Find range 0.0.0.0/32
- All number can change
- Range be 0.0.0.0to255.255.255.255(ALLIP)
- Alternate 2^(32-0)=2^32IP =ALLIP
 
- Find range 
Private IP
- Big Network Range 10.0.0.0-10.255.255.255and CIDR (10.0.0.0/8)
- AWS Default Range 172.16.0.0-172.31.255.255and CIDR (172.16.0.0/12)
- Home Network Range 192.168.0.0-192.168.255.255and CIDR (192.168.0.0/16)
Public IP
- Any IP but Private IP