> Source: [sk116146](https://support.checkpoint.com/results/sk/sk116146)

# sk116146 - "Host or network bits of an IP address cannot be all zeros or all ones" Error when assigning IP address on an interface

| Property | Value |
|----------|-------|
| Solution ID | sk116146 |
| Date Created | 2017-03-01 |
| Last Modified | 2017-03-20 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * When trying to assign an IP address on an interface, the following message is shown: "Host or network bits of an IP address cannot be all zeros or all ones".
* Same message is shown when assigning the address in Gaia Portal or clish.

## Cause

The IP address is the "Network Address" for this range. This is calculated from the provided mask length.

For example: When trying to assign the address 192.168.200.8 and a subnet mask 255.255.255.252. This error message will appear as the range /30 includes all the addresses from 192.168.200.8-192.168.200.11 with 192.168.200.8 being the network address and 192.168.200.11 as the broadcast address. Those addresses cannot be assigned to an interfaces.

![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk116146/subnet calculator1703011047.jpg)

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
