Lis Dya
Lis Dya

Reputation: 327

How to add a range of IP addresses in GCP?

I'm trying to add a range of IP addresses as suggested in the Google Cloud Platform:

Examples: 192.168.0.1, 172.16.0.0/12, 2001:db8::1 or 2001:db8::/64

So I need a range from:

123.123.123.0 -> 123.123.123.99

This is what I have tried:

123.123.123.0/99

But I get:

Invalid IP address or range. Use CIDR notation and enter the lowest IP address in the subnet.

How can I solve this?

Upvotes: 2

Views: 5253

Answers (1)

Gautam Savaliya
Gautam Savaliya

Reputation: 1437

123.123.123.0/99 is not the right way to create CIDR block for 123.123.123.0 -> 123.123.123.99 range

Max value for CIDR block is 32 and you are passing 99.

To cover range of 123.123.123.0 -> 123.123.123.99 CIDR block will be 123.123.123.0/25

123.123.123.0/25 will cover 123.123.123.0 -> 123.123.123.127.

Upvotes: 4

Related Questions