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?

질문됨 일 년 전284회 조회
1개 답변
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
전문가
kentrad
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠