3-IPv4 Addressing
3-IPv4 Addressing
IPV4 Classes:
o IPv4 address space can be subdivided into five classes.
o IPv4 class are class A, class B, class C, class D and class E.
o IPv4 each class consists of subset of the overall IPv4 address range.
o IPv4 class A, class B and class C used for Unicast ranges.
o IPv4 Class D used for Multicast Range.
o IPv4 Class E reserved for Research purpose.
o IPv4 Class E network is reserved for "experimental use".
o IPv4 Class E should not be assigned to host devices.
o IPv4 address range from 0.0.0.0 through 0.255.255.255 cannot work.
Class Range Full Range Binary Start-up Bit
A 1-127 1.0.0.0 – 127.0.0.0 0
B 128-191 128.0.0.0 – 191.0.0.0 10
C 192-223 192.0.0.0 – 223.0.0.0 110
D 224-239 224.0.0.0 – 239.0.0.0 1110
E 240-255 240.0.0.0 – 255.0.0.0 1111
Subnet Mask:
o Class A's default mask is 255.0.0.0, or /8
o Class B's default mask is 255.255.0.0, or /16
o Class C's default mask is 255.255.255.0, or /24
o 255.0.0.0 in binary is 11111111 00000000 00000000 00000000.
o 255.255.0.0 in binary is 11111111 11111111 00000000 00000000.
o 255.255.255.0 in binary is 11111111 11111111 11111111 00000000.
o Class A = /8 = 224 (16,600,000) Addresses for hosts
o Class B = /16 = 216 (65,000) Addresses for hosts
o Class C = /24 = 28 (256) Addresses for hosts
Network Mask:
o Network mask or NetMask is a 32-bit binary number.
o Network mask is usually written in dotted-decimal format.
o Network mask defines the size of the host part of an IP address,
o Representing the host part of the IP address with binary 0s in the mask.
Class Network Part Host Part Default Mask
A 8 24 255.0.0.0
B 16 16 255.255.0.0
C 24 8 255.255.255.0
Network Address:
o Network address or network number is a number that uses dotted-decimal notation.
o The number it represents all hosts in a single Class A, B, or C IP network.
o For example, an IP address 192.168.0.1 with network mask 255.255.255.0,
o In the given IP address, the network address will be 192.168.0.0.
o Network address, use logical AND operation between IP address & network mask.
o For example, an IP address 192.168.0.1 with network masks 255.255.255.0.
o Convert the IP address 192.168.0.1 to binary format.
o We get 11000000 10101000 00000000 00000001.
o Convert 255.255.255.0 to binary, get 11111111 11111111 11111111 00000000.
o Logical AND operation we get 11000000 10101000 00000000 00000000.
Private Addresses:
o Private IP addresses are used inside the LAN for Private Communication.
o Private IP Addresses are also called Non Routable IP addresses.
o Specific address ranges within Class A, Class B, & Class C reserved for private networks.
o A private IP address is a non-Internet facing IP address on an internal network.
o Large companies use Class A as it allows more than 16 million hosts.
o Class B manages 16,384 hosts per network where Class C is used 254 hosts.
APIPA:
o APIPA stand for Automatic Private IP Addressing.
o Windows computer assign itself an IP address if a DHCP is not available.
o For example, this could occur on a network without a DHCP server.
o On a network, if a DHCP server is temporarily down for maintenance.
o With this feature, a Windows computer can assign itself IP address.
o If a DHCP server is not available or does not exist on the network.
o This feature makes configuring and supporting LAN running TCP/IP less difficult.
Classes IP Address:
o Those IPv4 addresses, which does not use default subnet mask.
o Those IPV4 addresses which subnetting are done.
Class IP Address Subnet Mask
A 10.0.1.1 255.255.0.0
B 172.16.0.2 255.255.255.0