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.
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
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.
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; } }
2020-08-06: Article reviewed for accuracy; minor, non-technical changes made