0% found this document useful (0 votes)
29 views8 pages

IP Address

The document discusses IP addresses including IPv4 and IPv6 formats, classful and classless addressing, and private IP address ranges. It also provides examples of how to determine the subnet mask, network ID, broadcast address, and range of usable IPs given an IP address and number of required hosts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views8 pages

IP Address

The document discusses IP addresses including IPv4 and IPv6 formats, classful and classless addressing, and private IP address ranges. It also provides examples of how to determine the subnet mask, network ID, broadcast address, and range of usable IPs given an IP address and number of required hosts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

WhatsApp Only: 01558282331 Calls Only: 01068505814

IP Address Lecture
IP Address

IP V4 IP V6
IP Address: ____. ____ . ____ . ____ / Prefix length: number of network bits
Network Host
IP Address --> 4 byte, (byte is 8 bit)
Each byte called Octet.
Classful Vs Classless Addressing

Classful Classless
Class A: ___ . ___ . ___ . ___ / 8
Network Host
First octet: 0 – 126
Mask: 255.0.0.0
Class B: ___ . ___ . ___ . ___ / 16
Network Host
First octet: 128 – 191
Mask: 255.255.0.0
Class C: ___ . ___ . ___ . ___ / 24
Network Host
First octet: 192 – 223
Mask: 255.255.255.0

EX: IP Address >> 192.168.1.0


number of host: 255
zero: network ID
255: Broadcast
IPv4 Private Address Space:
1
WhatsApp Only: 01558282331 Calls Only: 01068505814
The following IPv4 address ranges are reserved by the IANA for private internets, and
are not publicly routable on the global internet:

Parameters Private IP Address Public IP Address

Scope The Private IP addresses have a scope A Public IP address holds a


among the present or local network. scope globally.

Communication The Private IP Addresses help a user to A Public IP Address helps a


establish communication within the existing user in communicating outside
network. their network.

Cost Your Private IP Address remains free of Your Public IP Address


cost. possesses a cost.

Range The Private IP Address ranges are as Except for the Private IPs, all
follows: the other IPs stay public.
Class C:192.168.0.0 to 192.168.255.255, Thus, your Public IP address
Class B:172.16.0.0 to 172.31.255.255, doesn’t have a limited range.
Class A:10.0.0.0 to 10.255.255.255

Example An example of a Private IP Address An example of a Public IP


is 192.168.11.50. Address is 17.5.7.8.

2
WhatsApp Only: 01558282331 Calls Only: 01068505814
IP Address ‫مسئلة‬:
Given IP Address and Number of hosts:

1. Subnet mask:
Binary ‫ الي ال‬Decimal ‫ من ال‬IP ‫هنحول ال‬-
IP ‫ في ال‬network bits ‫ و ال‬host bits‫احدد عدد ال‬-
‫ بزيرو‬host bits ‫ بواحد و ال‬network bits ‫هتنزل ال‬-
decimal ‫ لل‬binary ‫نحول تاني من‬-
2. Network ID:
‫ بزيرو‬network bits ‫ زي ماهو و تنزل ال‬host bits ‫هتنزل ال‬-
3. First IP:
‫ و تنزل الباقي زي ماهو‬network ID ‫هتزود واحد في الخانة االخيرة علي ال‬-
4. Broadcast:
‫ بواحد‬host bits ‫ زي ماهو و تنزل ال‬network bits ‫هتنزل ال‬-
5. Last IP:
‫ و ننزل الباقي زي ماهو‬broadcast ‫هنطرح واحد من الخانة االخيرة في ال‬-

3
WhatsApp Only: 01558282331 Calls Only: 01068505814
EX: 1) an organization want to network class B where need 512 hosts, Determine
the following:
1. Subnet Mask
2. Network ID
3. Broadcast
4. First & Last IP

IP Address (class B private network): 172.16.1.0


Binary of IP Address: 1010 1100 . 0001 0000 . 0000 0001 . 0000 0000

Number of host bits: 512 host + 2 = 514 host


28 = 256 host
29 = 512 host
210 = 1024 host
So, we need to 10 bits from the Right of IP.

Binary of IP Address: 1010 1100 . 0001 0000 . 0000 0001 . 0000 0000

Network Host
Subnet Mask:
Binary: 1111 1111 . 1111 1111 . 1111 1100 . 0000 0000
Decimal: 255.255.252.0
Network ID:
Binary: 1010 1100 . 0001 0000 . 0000 0000 . 0000 0000
Decimal: 172.16.0.0
First IP:
Decimal: 172.16.0.1
Broadcast IP:
Binary: 1010 1100 . 0001 0000 . 0000 0011 . 1111 1111
Decimal: 172.16.3.255
Last IP:
Decimal: 172.16.3.254

4
WhatsApp Only: 01558282331 Calls Only: 01068505814
EX: 2) an organization want to network class C where need 5 hosts, Determine the
following:
5. Subnet Mask
6. Network ID
7. Broadcast
8. First & Last IP

IP Address (class B private network): 192.168.2.2


Binary of IP Address: 1100 0000 . 1010 1000 . 0000 0010 . 0000 0010

Number of host bits: 5 host + 2 = 7 host


22 = 4 host
23 = 8 host
So, we need to 3 bits from the Right of IP.

Binary of IP Address: 1100 0000 . 1010 1000 . 0000 0010 . 0000 0010

Network Host
Subnet Mask:
Binary: 1111 1111 . 1111 1111 . 1111 1111 . 1111 1000
Decimal: 255.255.255.248
Network ID:
Binary: 1100 0000 . 1010 1000 . 0000 0010 . 0000 0000
Decimal: 192.168.2.0
First IP:
Decimal: 192.168.2.1
Broadcast IP:
Binary: 1100 0000 . 1010 1000 . 0000 0010 . 0000 0111
Decimal: 192.168.2.7
Last IP:
Decimal: 192.168.2.6

5
WhatsApp Only: 01558282331 Calls Only: 01068505814

6
WhatsApp Only: 01558282331 Calls Only: 01068505814

7
WhatsApp Only: 01558282331 Calls Only: 01068505814

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy