Ubuntu – Set static IP on Ubuntu Core

networkingnmclistatic-ipubuntu-core

I'm new to Ubuntu Core. On first login I selected the option:
Will use DHCP for IPv4

Now I'd like to change my machine to use a static IP to be easier to log in remotely.

I ran sudo console-conf on the machine (over ssh, if relevant). This gives me the option to select Use a static IPv4 configuration, which I do.

This gives me the fields subnet, address, gateway,name servers, andsearch domains`. What should I set for these fields? I would like my IP address to be 192.168.1.101. It is currently 192.168.1.13 from DHCP. My chosen IP address is pretty arbitrary, but I'm going to have a group of computers that I'd like to have the IP addresses 192.168.1.1XX.

I'm used to setting my subnet to 255.255.255.0, but I get the error message: should be in CIDR form (xx.xx.xx.xx/yy). I'm not sure what this means or how to fix it. When I try adding /24 at the end of the subnet, the error message goes away and I get a new error message: '192.168.1.101' is not contained in '255.255.255.0/24'.

Update:
Here is a screenshot of the error messages

Best Answer

Thanks to @MrShunz and @chili555 in the comments. These are the settings that worked for me: Subnet: 192.168.1.0/24 Address: 192.168.1.101 Gateway: 192.168.1.1 Name servers: 8.8.8.8

Screenshot

Related Question