VPC IPV4 CIDR Block Range - Student Inquiry (HELP! Due Tomorrow)

0

Hi, can someone please help me? I created a VPC for a school project, and specified an IP range of 192.168.0.0/24. That part went fine. But when I try to create a subnet that has a CIDR block that is contained within (and is smaller than) the VPC's CIDR range, I am unable to do so. Subnetting is a whole new concept for me. Is there someone that can give me a CIDR block that will work, and also a small summary of how to do this so that I do not struggle in the future?

demandé il y a un an284 vues
1 réponse
0

Use a CIDR calculator such as, cidr / vlsm supernet calculator.

192.168.0.0/24 gives 256 addresses, address range of 192.168.0.0 - 192.168.0.255

If we want to split that into 4 subnets:

192.168.0.0/26 gives 64 addresses, address range of 192.168.0.0 - 192.168.0.63
192.168.0.64/26 gives 64 addresses, address range of 192.168.0.64 - 192.168.0.127
192.168.0.128/26 gives 64 addresses, address range of 192.168.0.128 - 192.168.0.191
192.168.0.192/26 gives 64 addresses, address range of 192.168.0.192 - 192.168.0.255

The size of a CIDR is 2**(32-width of prefix). For instance 192.168.0.0/24 is 2**(32-24) = 2**8 = 256.

profile pictureAWS
EXPERT
kentrad
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions