Introduction summary
Introduction summary
12. A company has bought 11.0.0.0/22 public address block from SP, segment
this block so it can fit the company needs where the first network has 35
hosts , the second one has 100 hosts in addition to 3 WAN links.
13. With the IP address 10.0.0.0/27 what is the network IP address for subnet
number 2323?
14. Repeat question 11 with the same IP but with subnet number 5002.
OSI vs. TCP/IP
OSI model TCP/IP model
Responsible for :
1. Session (establishment,
control and termination).
2. Segmentation, sequencing
and error detection.
L4: Transport
Transport
*Sequence number
*Session number DATA UDP TCP
*CRC
Segment
Packet
L1 : Physical Layer
Cables
Data is sent from A to B
Frame encapsulation:
Session #
SRC MAC A SRC IP 1.1.1.1
Sequence # DATA CRC
DST MAC C DST IP 2.2.2.2
CRC
They don’t understand neither IP address nor They understand MAC address only.
MAC address.
How to get?!!
Bus
Disadvantages:
1. To send data from PC2 to PC0
traffic must pass through PC3
"delay"
2. Two cards are used to connect
PCs with each other "more
One sends and all receive costs"
Mesh Star
172.16.x.x to 172.31.x.x
Class B 128 : 191
And 169.254.x.x "APIPA"
224 : 239
Class D "used in Multi cast
sessions"
240 : 254
Class E "used for military
applications"
0:
IP address 0.0.0.0 used as a
Last resort in stub routing
table.
127 :
Classless
IP address 127.0.0.1 used
in Loopback test.
255 :
IP address 255.255.255
used in Local BC
Solution
192.168.193.64
Solution
256 = 4X + X + X + X + X
X = 32 IP
subnet 5 = 10.1.1.224 / 25
Solution 2
"Easier"
We have 15 Networks
15 = 0000 1111 in binary
The busy bits are 4 bits so the Networks mask will be the old mask + the
number of busy bits so it will be /20.
/20 = 255.255.11110000.00000000
The increment value between every two successive subnets is the value of
the last one in subnet mask "the one in bold"
(10000)2 = 16 and the increment occurs in the third octet
So the subnets are:
173.15.0.0/20
173.15.16.0/20
173.15.32.0/20 and so on.
5. A company has bought 11.0.0.0/8 public address block from SP, segment
this block so it can fit the company needs based on their number of
networks = 148 Networks and what is the BC address of the third subnet.
Solution
148 = (1001 0100 )2
Busy bits are 8 bits
So, Networks mask is /16
/16 = 255.1111 1111.0.0
The last one is in the second octet so the increment will be there
The decimal value of that one is one
So the subnets will be incremented by 1
So the first subnet is 11.0.0.0/16
the second subnet is 11.1.0.0/16
the third subnet is 11.2.0.0
the fourth subnet is 11.3.0.0 and so on until we reach 11.148.0.0/16.
The BC address of the third subnet is (11.3.0.0/16) – 1 = 11.2.255.255/16
Very important note concerning the last two problems:
If the Network number is powers of 2 such as ( 2,4,8,16,32,….) we don’t
transfer the network number into binary we take Log2 (network number)
then we add the result to the main mask.
6. A company has bought 193.0.0.0/24 public address block from SP, segment
this block so it can fit the company needs based on their number of
networks = 16 Networks.
Solution
4
16 = 2 so the busy bits are 4 bits then the subnet mask is /28
/28 = 255.255.255.1111 0000
The increment is 16 so the first subnet is 193.0.0.0/28,the second subnet is
193.0.0.16/28 and so on until we reach 193.0.1.0/28.
8. A company has bought 193.0.0.0/24 public address block from SP, segment
this block so it can fit the company needs based on their number of hosts =
20 host.
Solution
n
#of hosts = 2 – 2 = 20
So, 2n = 22 ≈ 32 IP "ceiling"
So, n = 5
So, mask = 32 – 5 = 27
Subnets :
193.0.0.0/27
193.0.0.32/27
193.0.0.64/27 and so on.
9. A network administrator is asked to configure 113 point to point links which
IP address scheme best defines the address range and subnet mask that
meet the requirements and waste the lowest subnets and host addresses
and calculate the losses in IPs.
Solution
The mask is 255.255.255.252 which gives 4 IPs per each network (each
link)
So the 113 links gives 4*113 IPs = 452 IP ≈ 512 IP
2n = 512
n=9
so the mask is 32 – 9 = 23
Number d is the correct answer.
To calculate the IP losses:
Losses = 512 – 452 = 60 IP
10. Which subnet mask would be appropriate for a network to be subnetted for
up to eight LANs with each LAN containing 5 to 26 hosts ?
f) 0.0.0.240
g) 255.255.255.252
h) 255.255.255.0
i) 255.255.255.224
j) 255.255.255.240
We configure for the maximum range ( 26 hosts + 2 ) = 28 host ≈ 32 host
N=5
Mask = 32 – 5 = /27 = 255.255.255.224
Number d is the correct answer.
11. A company has bought 172.15.0.0/16 public address block from SP,
segment this block so it can fit the company needs.
Solution
12. A company has bought 11.0.0.0/22 public address block from SP, segment
this block so it can fit the company needs where the first network has 35
hosts , the second one has 100 hosts in addition to 3 WAN links.
Solution
Starting with the largest network…
35 ≈ 64 host = 26
So N = 6 and the mask is /(32-6) = /26
Each link should have 4 IPs (2 for each port + BC IP + Network name)
13. With the IP address 10.0.0.0/27 what is the network IP address for subnet
number 2323 ?
Solution
IP address 10.0.0.0 /27 gives 32 IP per subnet
Our target is subnet 2322 as the subnetting count starts from zero not from
one.
At subnet 2322 we counted 2322*32 IP = 74304 IP
To know the number that occupies the fourth octet we divide 74304 by 265
74304/256 = 290.25 so the we should write 290 in the fourth octet BUT the
octet cannot exceed 255 so we divide again 290.25 by 256
290.25/256 = 1.13 which is lower than 255 so the second octet is occupied
with 1
So the required subnet is 10.1.X.Y and we need to replace X , Y with the right
numbers.
To determine X we take the fraction of 1.1328 and we multiply it with 256
So X = 0.1328125 * 256 = 34
And similarly Y = 0.25 * 256 = 64
So the network name is 10.1.34.64
14. Repeat question 11 with the same IP but with subnet number 5002.
Solution
IP address 10.0.0.0/27 gives 32 IP
Total #of IPs = 5001*32 = 160032 IP
160032/256 = 625.125 > 255 so we divide again
625.125/255 = 2.44189
So Network IP is 10.2.X.Y
To determine X:
X = 0.44189 * 256 = 113
To determine Y:
Y = 0.125 * 256 = 32
So Network IP is 10.2.113.32
Initial Configurations
enable
Enable Mode Router#
Exit
Conf t
Global configurations mode Router(config)#
Basic configurations :
>en
#conf t
(config)#hostname ___
(config)#banner motd $ ___$
(config)# enable secret ___
(config)#line console 0
(config-line)#password ___
(config-line)#login
(config-line)#exit
(config)#line vty 0 3
(config-line)#password ___
(config-line)#login
(config-line)#exit
#show ip int brief
(config)#int ___
(config-if)#ip add ip add mask
(config-if)#no shutdown
(config-if)#clock rate ___
(config-if)#exit
(config)#ip route IP add mask interface or next hop IP add
For troubleshooting:
#show ip route
#show cdp neighbor
#show ip int brief
#ping IP add
#Telnet IP add
Network :