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?

1 Antwort
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
EXPERTE
kentrad
beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen