Subnetting Examples1
Subnetting Examples1
1. Divide the network 220.125.5.192/26 into 8 sub networks. How many hosts can be
connected in each network? Show their IP range, network address and broadcast
address. [6]
ANS:
No of addresses for whole network are N= 232-26 =26 =64
First Address in network is- 220.125.2.192/26
Last address in network is- 220.125.5.255/26
As 8 subnet has to design so we divide no of address with no of sub networks
i.e. 64/8= 8. That means each network has 8 addresses.
New subnet mask will be:
For 8 network 3 bits are required (log2 8 =3) to add to /26 mask, so new mask
will be 26+3=29.
2. A company is granted a site address 201.70.64.0. The company needs six subnets.
Design the subnets(Subnet masks for each subnet, starting and ending address of
each subnet. [5]
Ans:
Step 1) Determine the number of subnets and convert to binary
- In this example, the binary representation of 6 = 00000110.
Step 2) Reserve required bits in subnet mask and find incremental value
- The binary value of 6 subnets tells us that we need at least 3 network bits to satisfy this
requirement
- Our original subnet mask is 255.255.255.0 (Class C subnet) - The full binary representation of
the subnet mask is as follows:
255.255.255.0 = 11111111.11111111.11111111.00000000
- We must “convert” 3 of the client bits (0) to network bits (1) in order to satisfy the
requirements:
New Mask = 11111111.11111111.11111111.11100000
-If we convert the mask back to decimal, we now have the subnet mask that will be used on all
the new
networks – 255.255.255.224 –
New subnet mask 255.255.255.224
If you convert this bit to a decimal number, it becomes the number “32” that is every subnet is
having 32 addresses allotted to it (from 0 to 31, then 32 to 63 etc)
You can now fill in your end ranges, which is the last possible IP address before you start the
next range
The first and last address from each range (network / broadcast IP) are unusable
3. Suppose a router has build up the routing table shown below. The router can deliver
packets directly over interfaces 0 and 1 , or it can forward packets to routers R2, R3
or R4. Describe what the router does with a packet addressed to each of the
following destinations. [8]
i. 128.96.39.10
ii. 128.96.40.12
iii. 128.96.40.151
iv. 192.4.153.17
v. 192.4.153.90
Routing Table
Ans:
Ans:
Step 1: convert IP 10.5.5.20 into Binary Value
00001010000001010000010100010100
1 Indicate Network bit and 0 indicate Client bit (29 bits are at network side and 3 bits are at
client side)
00001010000001010000010100010100
11111111111111111111111111111000
______________________________________________________
00001010000001010000010100010000
3 bits are at client side means 23 =8(i.e. 0 to 7). By adding this value in Network address we get
10.5.5.23 Broadcast Address.
10.5.5.23 IP address should ping to, so that I get response from all machines on my LAN
subnet.