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 Risposta
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
ESPERTO
kentrad
con risposta un anno fa
profile pictureAWS
ESPERTO
verificato un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande