During the installation of your Ubuntu Server, you can have either a [DHCP] or a [Static IP] address.
The Subnet address in Ubuntu will be the [Network Address], not the [Netmask]. In the Network Connections [Edit ens160 IPv4 Configuration] When you think of a Subnet, you will think of this: Which is the [Netmask].
[LINUX - IP Address with Subnet (Incorrectly Formatted)]