Ethernet Error (TCPP0023): The network does not contain a valid start IP address.
The IP start address set for the network in the properties of the 'Project' node does not match the set subnet mask.
Remedy
To fix this error, you can either correct the IP start address or the subnet mask of the network.
- Double-click the 'Project' node in the PLANT and open the 'Settings' editor.Alternative: For many errors which refer to the project IP range, double-clicking the error message directly opens the 'Settings' editor.
- Specify/correct the suspected 'IP range' setting(s) and confirm each entry with <Enter>.
Background: Subnet mask
The subnet mask is a bit mask, consisting of 4 (for IPv4 networks) or 6 octets (IPv6 networks). Usually, the subnet mask is displayed and has to be entered as Integer values (0-255).
The subnet mask describes IP networks and specifies how many bits at the beginning of an IP address are interpreted as net prefix. It separates each IP address into a network prefix used for the network identification and a device part for the device identification. This way, the subnet mask determines which IP addresses a communicating device with a specific IP address has to search in its own network and which addresses are located in other networks.
The network prefix must be identical for all devices within the same network (subnet) and the device part must be different for unique device identification within a subnet.
The determination (i.e., separation) of the network identifier and the device identifier is performed by a bitwise AND operation of the device IP address and the subnet mask.
Rules for a valid subnet mask
To form a valid subnet mask, the following rules apply:
- The network prefix must consist of adjacent 1-bits. This means, no 0 must be left of a 1. 0s may only be right of 1-bits and are considered as device part.
Valid (IPV4): 255.255.192.0 = 11111111.11111111.11000000.00000000
Invalid (IPV4): 255.255.208.0 = 11111111.11111111.11010000.00000000
- All bits representing the device part must be 0.
Example (IPv4)
The subnet mask 255.255.255.0
corresponds to the bit sequence
11111111.11111111.11111111.00000000
In this example, the first 24 bits are set to 1 and represent the network prefix. The device part, represented by the last eight 0-bits of the subnet mask, provides a theoretical range of 256 addressable devices. As 0 identifies the network itself and 255 is reserved for the network broadcast, 254 devices can be addressed in a network with this subnet mask.