Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[J/M/T] "Cannot assign address 0 on subnet" when assigning a subnetted IP on ge interface IP address

0

0

Article ID: KB12552 KB Last Updated: 06 Aug 2020Version: 4.0
Summary:

This article explains why users may get the "Cannot assign address 0 on subnet" and "error: configuration check-out failed" error when assigning and committing an IP address for a subnet on the ge interface. It clarifies that the IP address must be selected from the available range for the subnet for the configuration to succeed. 

 

Symptoms:

Example

1.2.3.128/25 is the network address for the subnet. You must select an IP address within the range available: 1.2.3.129 – 1.2.3.254. If the range is not correct, commit fails as follows:

[edit]
root@router# set interfaces ge-0/0/3 unit 0 family inet address 1.2.3.128/25 

[edit]
root@router# commit 
[edit interfaces ge-0/0/3 unit 0 family inet]
'address 1.2.3.128/25'
Cannot assign address 0 on subnet
error: configuration check-out failed

 

Cause:

In the example, the IP address being assigned to the interface is not within the range specified for the subnet, which is the reason for the above error.

 

Solution:

Assign an IP address within the available range for the subnet. For 1.2.3.128/25, therefore, select an IP address within the range available, that is, 1.2.3.129 – 1.2.3.254.

[edit]
root@router# show interfaces ge-0/0/3 
unit 0 {
    family inet {
        address 1.2.3.129/25;
    }
}

 

Modification History:

2020-08-06: Article reviewed for accuracy; minor, non-technical changes made

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search