Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Ubuntu 18 installation, setting manual ipv4 address shows IP_ADDR/SUBNET error has host bit set

Tags:

ubuntu

While trying to install Ubuntu server 18.4.01, when I am trying to configure manual IPV4 address, I am getting an error that:

192.168.1.50/24 has host bits set

I am unable to proceed with the installation.

like image 731
PM12 Avatar asked Aug 02 '18 07:08

PM12


People also ask

What is host bit set?

The “host bits” are the number of 'zero' bits, when you write out the subnet mask in binary form (make sure to fill out the full octets). For example, the subnet mask 255.255.255.0 (decimal format) would translate to. 11111111 . 11111111 . 11111111 .

How do I set a static IP to Ubuntu Server 20.04 LTS?

The best possible way to set a static IP address to your Ubuntu 20.04 device is to use DHCP reservation. DHCP reservation is a feature built-in to most routers and allows you to set a specific IP. Basically, this feature ensures that the router keeps the IP address aside and only hands it to your device.

What is netmask Ubuntu?

A Netmask is a 32-bit "mask" used to divide an IP address into subnets and specify the network's available hosts. In a netmask, two bits are always automatically assigned. For example, in 255.255. 225.0, "0" is the assigned network address.


1 Answers

Found the solution. I was entering wrong values. I have to provide the value in the Subnet section in following format:

192.168.1.0/24

And the IP address in Address field.

like image 78
PM12 Avatar answered Oct 17 '22 00:10

PM12