4-3
4 Determining IP Addresses
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
4-1 IP Ad
dress
es
4
4-1-2 Allo
cating IP Addresses
You must assign IP addresses nodes so that each IP address is assigned only once in the network or
between several networks.
Operation and management of a network can become very difficult if too many nodes are connected on
a single network. In such a case it can be helpful to configure the system so that a single network is
divided up into several subnetworks. Internally the network can be treated as a number of subnetworks,
but from the outside it acts as a single network and uses only a single network ID. To establish subnet-
works, the host ID in the IP address is divided into a subnet ID and a host ID by using a setting called
the subnet mask. The subnet mask indicates which part of the host ID is to be used as the subnet ID.
All bits in the subnet mask that correspond to the bits in the IP address used either as the network ID or
subnet ID are set to “1,” and the remaining bits, which correspond to the bits in the IP address actually
used for the host ID, are set to “0.”
The following example shows the subnet mask for an 8-bit subnet ID used in class-B IP addresses.
Set the same subnet mask for all of the nodes on that subnetwork. The EtherNet/IP Unit supports
CIDR (Classless Inter-Domain Routing). The subnet mask can be set to 192.0.0.0 to
255.255.255.252. If subnetworks are not used, set the following subnet mask values for IP address
classes A to C.
CIDR, or classless interdomain routing, is used to assign IP addresses that do not use classes. IP
addresses that use classes are separated into blocks according to network IDs and host IDs, resulting
in inefficient usage of IP address space. CIDR does not use classes, so IP address space can be
divided as required to more efficiently use IP address space. For example, using a subnet mask setting
with CIDR enables building a horizontally distributed network exceeding 254 nodes even if a class C
address block (e.g., 192, 168...) is used.
4-1-2
Allocating IP Addresses
4-1-3
Subnet Masks
Class
Subnet mask
Class A
255.0.0.0
Class B
255.255.0.0
Class C
255.255.255.0
4-1-4
CIDR
Subnet Mask Range
192.0.0.0 to 255.255.255.252
0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
FF FF FF 00
Host ID
Subnet ID
Network ID
Host number (16 bits)
Network number (14 bits)
Subnet mask
Class B
Bit 31
15
1
0
Содержание SYSMAC CJ1W-EIP21
Страница 8: ...Manual Structure 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 10: ...Sections in this Manual 8 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 20: ...Read and Understand this Manual 18 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 42: ...Revision History 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 68: ...1 Introduction 1 26 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 80: ...2 Installing Ethernet Networks 2 12 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 130: ...6 Testing Communications 6 4 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 206: ...7 Tag Data Link Functions 7 76 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 246: ...8 Message Communications 8 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 266: ...9 FTP Server 9 20 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 374: ...13 Troubleshooting 13 56 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Страница 431: ...Index 1 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 I Index...
Страница 436: ...Index 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 Index...
Страница 437: ......