A sub-network (subnet or sub-net) allows you to define a specific IP network
(IPv4 or IPv6). For each VNET, you can define one or more subnets.
A subnet can be used to:
-
restrict IP-addresses you can define on a specific VNET
-
assign routes/gateway on a VNET in layer 3 zones
-
enable SNAT on a VNET in layer 3 zones
-
auto assign IPs on virtual guests (VM or CT) through IPAM plugin
-
DNS registration through DNS plugins
If an IPAM server is associated to the subnet zone, the subnet prefix will be
automatically registered in the IPAM.
Subnet properties are:
-
ID
-
a cidr network address. Ex: 10.0.0.0/8
-
Gateway
-
ip address for the default gateway of the network.
On layer3 zones (simple/evpn plugins), it’ll be deployed on the vnet.
-
Snat
-
Optional, Enable Snat for layer3 zones (simple/evpn plugins) for this subnet.
The subnet source ip will be natted to server outgoing interface/ip.
On evpn zone, it’s done only on evpn gateway-nodes.
-
Dnszoneprefix
-
Optional, add a prefix to domain registration, like <hostname>.prefix.<domain>