Cloud networks and subnets
Cloud networks
A cloud network is similar to a traditional LAN in a data center. Cloud networks are created in folders and used to transmit information between cloud resources and connect resources to the internet.
Internet access to and from Yandex Compute Cloud VMs and database hosts is provided through public IP addresses.
You can manage cloud network and subnet traffic using security groups. They contain rules that define the protocols and IP addresses for receiving and sending traffic.
Subnets
A subnet is a range of IP addresses in a cloud network. Addresses from this range can be assigned to cloud resources, such as VMs and DB clusters. You can only create subnets in the folder the cloud network belongs to.
Subnet size is set using the Classless Inter-Domain Routing
10.0.0.0/8172.16.0.0/12192.168.0.0/16
The maximum CIDR size in these ranges is /16, the minimum is /28.
Subnet IP address ranges cannot overlap within the same cloud network. The first two addresses from any range are allocated to the gateway (x.x.x.1) and DNS server (x.x.x.2).
Traffic can be transmitted between subnets of the same network, but not subnets of different networks. To transfer traffic between subnets of different networks, use public IP addresses.
To have a resource connected to a subnet, make sure it resides in the same availability zone as the subnet.
You can move a network and subnet between folders within a single cloud. You cannot move subnets between networks and availability zones.