24.10.2013 Views

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

Configuring Hardware and Communication Connections STEP 7.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Networking Stations<br />

Relationship between the IP address <strong>and</strong> the default subnet mask<br />

The relationship between the IP address areas <strong>and</strong> the so-called "Default Subnet<br />

Masks" is defined. The first decimal of the (left to right) determines the (binary)<br />

structure of the default, that is, the number of "1" values as follows:<br />

IP address (dec.) IP address (bin.) Address class Default subnet mask<br />

0 to 126 0xxxxxxx.xxxxxxxx.... A 255.0.0.0<br />

128 to 191 10xxxxxx.xxxxxxxx... B 255.255.0.0<br />

192 to 223 110xxxxx.xxxxxxxx... C 255.255.255.0<br />

Note<br />

The first decimal number of the IP address can also have a value between 224 <strong>and</strong><br />

255 (address class D etc). However, we recommend you do not use these values,<br />

as <strong>STEP</strong> 7 does not check them.<br />

Forming further subnet masks<br />

The subnet mask allows you to extend the structure of a subnet that is assigned to<br />

address class A, B or C <strong>and</strong> to create "private" subnets by setting the least<br />

significant bits of the subnet mask to "1". The number of "private" networks will<br />

double with each bit that is set to "1" <strong>and</strong> reduces the number of network nodes to<br />

half. Seen from the outside this still network has the same effect as a single<br />

network.<br />

Example:<br />

In an address class B subnet (e.g.. IP address 129.80.xxx.xxx) you change the<br />

default subnet mask as follows:<br />

Masks Decimal Binary<br />

Default subnet mask 255.255.0.0 11111111.11111111.00000000.00000000<br />

Subnet mask 255.255.128.0 11111111.11111111.10000000.00000000<br />

Result:<br />

All nodes at the addresses 129.80.001.xxx to 129.80.127.xxx are assigned to the<br />

same subnet, whereas all nodes at the addresses 129.80.128.xxx to<br />

129.80.255.xxx are assigned to a different subnet.<br />

Network gateway (Router)<br />

Network gateways (routers) interconnect subnets. An IP datagram sent to another<br />

network must first be passed on to a router. To enable this feature, you must enter<br />

the router address for each one of the network nodes.<br />

The IP address of a subnet node <strong>and</strong> of the network gateway (router) may only<br />

differ at the "0" bits of the subnet mask.<br />

<strong>Configuring</strong> <strong>Hardware</strong> <strong>and</strong> <strong>Communication</strong> <strong>Connections</strong> with <strong>STEP</strong> 7<br />

11-6 A5E00706939-01

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!