0

i am trying to create a vpc but the ip i am providing is not accepted which is 192.168.1.1/16 but aws says i can use the following range if i set to 192.168.0.0/16 it works , i guess to an extent still some clarity would be great

When you create a VPC, we recommend that you specify a CIDR block (of /16 or smaller) from the private IPv4 address ranges as specified in RFC 1918:

10.0.0.0 - 10.255.255.255 (10/8 prefix)

172.16.0.0 - 172.31.255.255 (172.16/12 prefix)

192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
akash
  • 1

1 Answers1

0

The reason my ip was not accepted in the VPC is because 192.168.1.1 is considered as single ip which is taken as 192.168.1.1/32 it is invalid as VPC CIDR needs a range of ip address like these two example.

192.168.0.0/16 
192.168.1.0/27
akash
  • 1