Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTW 1325
What is an IP address?
An unique identifier for a computer or device (host) on a TCP/IP network A 32-bit binary number usually represented as 4 decimal numbers separated by a period Example: 206 . 40 . 185 . 73
2
11001110.00101000. 10111001.01001001
What is an IP address?
Each address is 32 bits wide Valid addresses can range from 0.0.0.0 to 255.255.255.255 WHY? Because 11111111b = 25510
What is an IP address?
Theoretically, a total of 4.3 billion addresses are available WHY?
Other systems may use more than one address (Ex: IPX)
*01111111 = 12710
Addresses beginning with 127 are reserved for 6 loopback (127.0.0.1 is YOU)
Which part belongs to the network and which part belongs to the node?
Class A
XXXXXXXX.yyyyyyyy.yyyyyyyy.yyyyyyyy
Class B Class C
XXXXXXXX.XXXXXXXX.yyyyyyyy.yyyyyyyy
XXXXXXXX.XXXXXXXX.XXXXXXXX.yyyyyyyy
IP Addresses*
Class 1st Octet Networks Ids Host IDs A B C 1-126 128-191 192-223 27 = 126 214 = 16K 221 = 2M 224 = 16M 216 = 64K 28 = 255
3.
192.168.0.0/16
These can be used by anyone setting up an internal network. Routers will never forward packets coming from these addresses. 10
Subnetting
can be done for a variety of reasons
Organization Use of different physical media Preservation of address space Security
11
Subnetting
In an Ethernet network, all nodes on a segment see all packets transmitted by other nodes on that segment
Subnet masking
Applying a subnet mask allows you to identify the network and node parts of the address. A router will then determine whether the address is local or remote. Network bits are masked as 1s Node bits are masked as 0s Class A 255.0.0.0
11111111.00000000.00000000.00000000
Class B 255.255.0.0
11111111.11111111.00000000.00000000
Class C 255.255.255.0
11111111.11111111.11111111.00000000
13
Subnet masking
14
Subnet masking
Performing a bitwise logical AND between the IP address and the subnet mask results in the network address Ex: Class - B 140.179.240.200
10001100.10110011.11110000.11001000 11111111.11111111.00000000.00000000 10001100.10110011.00000000.00000000
A Few Rules
1. Each device on a node has a unique MAC address 2. Each device on a node needs a unique IP address 3. All devices on the same physical segment share a common network ID (subnet mask) 4. Each physical segment has a unique Network ID (subnet mask)
16
18