Relationship between the IP address and address of the gateway - STEP 7

Communications modules and network components

ft:publication_title
Communications modules and network components
Product
STEP 7
Version
V20
Publication date
11/2024
Language
en-US
Relationship between the IP address and address of the gateway

Relationship between IP address and gateway address

The only points in the IP address and gateway address that may differ are those in which "0" appears in the subnet mask.

Example:

You have entered the following: 255.255.255.0 for the subnet mask; 141.30.0.5 for the IP address and 141.30.128.1 for the gateway address.

 

Usual decimal representation

Binary representation

Subnet mask

255.255.255.0

1111 1111.1111 1111.1111 1111.0000 0000

IP address

141.30.0.5

1000 1101.0001 1110.0000 0000.0000 0101

Gateway

141.30.128.1

1000 1101.0001 1110.1000 0000.0000 0001

Only the fourth decimal number of the IP address and gateway address may have a different value. In the example, however, the 3rd position is different.

You must, therefore, change one of the following in the example:

The subnet mask to: 255.255.0.0 or

the IP address to: 141.30.128.5 or

the gateway address to: 141.30.0.1