0 - IP - Basics

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 6

Task:

Note down following IP:


class pub pvt
1) 1.2.3.4 A Pub x
oct = 8 bits
00000000= bin = dec = 0
11111111 = bin = 255

n.h.h.h
11111111.00000000.00000000.00000000
255.0.0.0

2) 127.0.0.1 E
3) 172.16.17.18 B
4) 192.168.10.10 C
192.168.12.10 C
5) 10.11.12.13 A - pvt
6) 14.15.16.17 A pub xx
7) 172.150.150.150 B
8) 192.168.300.400
9) 172.16.20.20 B
10) 20.20.20.20 A pub
11) 169.254.10.11 B
255.255.255.0
N.N.H.H
( note in network all bits are ON
and in host all bits are OFF
11111111.11111111.00000000.00000000
= 255.255.0.0

ipv4

Find out following answer's for above IP's


Q.1 From the above list find out which IP is Valid/Invalid
Q.2 What is the min and max value we can write in any Octet.
Q3. Which IP belong's to Which Class.
Ans:
Check the value of 1st octed fall's in which range
From to
Class A 1 127* ( 126)
Class B 128 191
Class C 192 223
----------------------------------------
Class D 224 239 reserve for multicast
Class E 240 255 reserve for res & dev

how these value came ?????

for class A 1st octet value begin's with 0


class B 1st octet value begin's with 10
Class C 1st octet value begin's with 110
Class D 1st octet value begin's with 1110
Class E 1st octet value begin's with 1111

1st octet
starting ending
00 000000 11 111111
follow rule
10 000000 10 1111111

1 0 0 0 0 0 0 0
128 64 32 16 8 4 2 1 = 255
------------------------------------
128 + 0 + 0 + 0 + 0 + 0 + 0 +0 = 128

ans= 192 = 223

Q4. Find out same network and different network IP.


Q5. Find out network ID and Host ID of class A,B & C.
Q6. How many Host's and Network are available in Each Class.
nos of network nos of hosts
class A N.H.H.H 2*8-1=2*7=128 2*24= 16777216 N=8 H=24
Class B N.N.H.H 2*16-2=2*14=16384 2*16= 65536 N=16 H=16
Class C N.N.N.H 2*24-3=2*21=2097152 2*8=256 N=24 H=8

1 Lab = 12 pc's = C =
1 Lab 500 Pc's = B =
1 Lab 70000 Pc's= A =

Q7. Find out subnet mask for above IP's ( or for Class A,B & C)
10.11.12.13 150.160.170.180 200.201.202.203
255.0.0.0 255.255.0.0 255.255.255.0
N.H.H.H
in network all bits must be ON= 1
in hosts all bits are OFF = 0

*Q8. Find out the range for PVT ip in each class and
which IP belong's to PVT and Public.
Ans: IETF
Starting Ending
1) Class A 10.0.0.0 10.255.255.255
2) Class B 172.16.0.0 172.31.255.255 =
3) Class C 192.168.0.0 192.168.255.255 =

IANA = INTERNET ASSIGN NUMBER AUTHORITY


-----------------------------------------------------------
4) Loopback 127.0.0.0 127.255.255.255
5) APIPA 169.254.0.0 169.254.255.255
( APIPA = Auto Pvt IP Address )
Note : Whenever your's pc is not connected to DHCP
Server or Your DHCP Server is Down ( OFF )
Pc will get ip from APIPA Range.
Whenever you install new OS your network card connection is
set to "Obtain IP Automatically" this pc is going to search ip
address in network ( looking for DHCP Server ).

MCITP 70-642 book network infrastructure

Q9. What is Subnetting ? ....


Q10. Find out how many host and network's available in
IP = 192.168.10.10
sm = 255.255.255.0

192.168.10.10/24 ( nos of network bits=24)


N.N.N.H
11111111.11111111.11111111.00000000
sm=255.255.255.0

one network = 256

cl A
10.10.10.10/28 ( 8bit + 16 + 4 )
N.H.H.H
11111111.11111111.1111111.11110000
=255.255.255.240
(b4 subnetting how many host in this network = 16777216 ( cl A = network bit = 8
h=24
( 2*24-3) 2*21= 16777216
network id= 10 )

nos network = 2*20 =1048576


nos of host in each network = 2*4 = 16-2 =14

---------------------------------------------------------

network id= 192.168.10 = bits =24 = 2*21


host = 8 bit
total nos of hosts = 2*8 = 256

-----------------------------------------
=========================================

ip 192.168.10.10/26
sm 255.255.255.192 ( correct answer )

check nos of network required ?


network bits required = 26 bits ( defaults network bits in class C is 24 bits
)
we are falling shortage of 2 bits, these bits need to be borrowed from host
side.
=======================================================================
11111111.11111111.11111111.00000000 ( before subnetting) 255.255.255.0
11111111.11111111.11111111.11000000 ( after subnetting )
255.255.255.192
N.N.N.H
11111111.11111111.11111111.11000000

sm=255.255.255.192

( how many bits we borrowed from host side = 2)


nos of network = 2*2 = 4

host = 6 bit
total nos of hosts = 2*6 = 64
1 network total 64 hosts
2 network total 64 hosts
3 network total 64 hosts
4 network total 64 hosts
=====================
1N H=256 total

192.168.10.0
192.168.10.253
192.168.10.254
192.168.10.255

192.168.11.0
192.168.11.1
192.168.11.255
192.168.12.0

192.168.10.255
192.168.11.0

172.15.255.255 172.16.0.0

172.15.255.255 172.16.0.0

11.255.255.255
12.0.0.0

16.255.255.255
17.0.0.0

**************chart***********

detaults network id st id end id b'cast id


1 192.168.10.0 10.1 10.62 192.168.10.63
2 192.168.10.64 10.65 10.126 192.168.10.127
3 192.168.10.128 10.129 10.190 192.168.10.191
4 192.168.10.192 10.193 10.254 192.168.10.255
-----------------------------------------------------------------------------------
-------------------

1 ) IP= 192.168.10.10/28
sm= 255.255.255.240
nos of network= 2*4 = 16
nos of hosts= 2*4 = 16
chart= ?
2) IP = 172.16.16.16/20 (16+4)
3) IP = 10.10.10.10/10

answer of no.2 ip 172.16.16.16/20

Subnetmask= 255.255.240.0
n.n.h.h
11111111.11111111.11110000.00000000
nos of network= 16 ( N=4 , 2*4 =16 )
nos of hosts in each network= ( H=12 , 2*12 =4096 )
to check nos of host are correct then
multi nos of netw with nos of hosts = 16*4096= 65536

find subnet mask also and make chart .

Nos detaults network id st id end id b'cast id


of networks
1 172.16.0.0 0.1 15.254 172.16.15.255
2 172.16.16.0 16.1 31.254 172.16.31.255
3 172.16.32.0
....
16 172.16.240.0 240.1 255.254 172.16.255.255
-----------------------------------------------------------------------------------
--------------------------

answer of no.3 ip 10.10.10.10/10

Subnetmask= 255.192.0.0
n.n.h.h
11111111.11000000.00000000.00000000
nos of network= 4 ( N=2 , 2*2 =4 )
nos of hosts in each network= ( H=22 , 2*22 = 4194304)
to check nos of host are correct then
multi nos of netw with nos of hosts = 4 * 4194304 = 16777216

find subnet mask also and make chart .

Nos detaults network id st id end id b'cast id


of networks
1 10.0.0.0 10.0.0.1 10.63.255.254 10.63.255.255
2 10.64.0.0 10.64.0.1 10.127.255.254 10.127.255.255
3 10.128.0.0 10.128.0.1 10.191.255.254 10.191.255.255
4 10.192.0.0 10.192.0.1 10.255.255.254 10.255.255.255

-----------------------------------------------------------------------------------
-----
10.191.254.255
10.191.255.0
10.191.255.1 255.2 255.254
10.191.255.255
LL isp

115.116.117.177/28

sm= 255.255.255.240
n= 20 2*20=1048576
host = 4 2*4 = 16

115.0.0.16
255.255.255.240

detaults network id st id end id b'cast id


1 115.0.0.0 0.0.1 0.0.14 0.0.15
2 115.0.0.16 0.0.17 0.0.30 0.0.31
4
.
.
.
.
.
.
1048576 192.168.32.255

You might also like