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

'Cannot assign address 0 on subnet' when putting a subnetted IP on the ge interface ip address

0

0

Article ID: KB12552 KB Last Updated: 04 Mar 2017Version: 3.0
Summary:
Getting a 'Cannot assign address 0 on subnet' upon committing.
Symptoms:
The IP address being assigned to the interface is not within the range for the subnet specified.

Example:
1.2.3.128/25 is the network address for the subnet.  You must select an IP within the range available 1.2.3.129 - 1.2.3.254

[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



Solution:
Assign an ip within the available range for the subnet. So for 1.2.3.128/25 select an IP within the range available 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;
    }
}

Related Links

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