Ubuntu 17.10 Server uses the package netplan instead of /etc/network/interfaces.
I have created the /etc/netplan/01-netcfg.yaml
Like described here: Ubuntu 17.10 will not accept static IP
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: no
dhcp6: no
addresses: [192.168.0.97/24]
gateway4: 192.168.0.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
The default netmask in netplan is: 255.255.255.0
How can I change/set the netmask e.g. 255.255.255.1?