Lecture-6 IP Address
Lecture-6 IP Address
IP Address
IP Addresses :
• IP address are used to uniquely identify each host on the network.
IP Address Format :
• An IP address is a series of four numbers separated by dots. Each number can
range between 0 and 255.
An octet that is all zeros is equal to 0 in decimal notation, while an octet that
is filled with eight ones is the binary equivalent of 255 in a decimal number.
That's why each octet within the IP address must range between 0 and 255.
The IP addresses that fall into each class are identified by looking at the first octet
in an IP address.
The remaining octets can be ignored when identifying the address class.
Class A address has a value between 1 and 126 in the first octet with a default
subnet mask of 255.0.0.0
IP Address Classes
Class B addresses are between 128 and 191 with the default subnet mask of
255.255.0.0.
The first two octets are the network address and the last two are the host
address.
So, if you see an IP address of 192.168.3.5, you immediately know it's a Class
C address with a subnet mask of 255.255.255.0.
The first three octets are the network and the last octet is the host.
IP Address Class
For easier management, IP addresses are organized in numeric order and divided
in following five classes.
Class Starting Ending Address Subnet mask
Address
A 1.0.0.0 126.255.255.255 255.0.0.0
• Private IP addresses
• Public IP addresses.
Private IP Address
Private IP addresses are the IP addresses which are reserved for local networks
and cannot be accessed from a public network such as Internet.
A Class A address can have a lot of different hosts on a single network because
the last three octets of the address is dedicated to the host addresses.
Class C supports a lot of different network addresses but only 254 hosts per
network.
Now, you may be thinking that you should be able to have 256 hosts but this
actually isn't the case.
Every network has two reserved addresses that cannot be assigned to hosts.
These are the network address, which is a 0 and the broadcast address, which is
255.
Core Rules For TCP/IP
Practice: Determine the IP address Class
IP Address Subnet Mask IP Address Class
160.123.5.1 255.255.0.0 B
10.2.3.4 255.0.0.0 A
10.10.10.10 255.0.0.0 A
218.100.100.1 255.255.255.0 C
180.34.51.23 255.255.0.0 B
200.36.21.6 255.255.255.0 C
155.29.9.23 255.255.0.0 B
201.50.12.3 255.255.255.255 C
222.12.34.78 255.255.255.0 C
100.200.100.34 255.0.0.0 A
50.160.35.23 255.255.0.0 A