1st & 2nd CN Practical
1st & 2nd CN Practical
1st & 2nd CN Practical
PRACTICAL NO 1A
An address in a block is given as 180.8.17.9. Find the number of addresses in
the block, the first address, and the last address
Solution :
The given address is a Class B address therefore n= 16
1) No of addresses:
N = 232-n
= 232-16
= 216
= 65536
Therefore the number of addresses are = 65536 addresses
2) First address:
For class B address netid = 16
Therefore network mask is 255.255.0.0
To find the first address we logically AND the given address with the
network mask
Given 180 8 17 9
address
Network 255 255 0 0
mask
AND 180 8 0 0
operation
3) Last address:
To find the last address we logically OR the given address with the
COMPLEMENT of the network mask
Network mask = 255.255.0.0
ISMAIL H P Page 1
SYIT PRACTICAL COMPUTER NETWORK
ISMAIL H P Page 2
SYIT PRACTICAL COMPUTER NETWORK
PRACTICAL NO 1B
An organization is granted the block 130.34.12.64/26. The organization needs
four sub networks, each with an equal number of hosts. Design the sub
networks and find the information about each network.
Solution :
The given address is address of type classless addressing
with n= 26
1) No of addresses:
N = 232-n
= 232-26
= 26
= 64
Therefore the number of addresses are = 64 addresses
2) First address:
Given 130 34 12 64
address
Network 255 255 255 192
mask
AND 130 34 12 64
operation
Therefore the first address is 130.34.12.64
3) Creating sub-networks:
In this case we need to create 4 sub-networks with equal number of
hosts
Total number of hosts N = 64
Therefore number of hosts in each sub-network NSUB = 16
ISMAIL H P Page 3
SYIT PRACTICAL COMPUTER NETWORK
1 130.34.12.64 130.34.12.79
2 130.34.12.80 130.34.12.95
3 130.34.12.96 130.34.12.111
4 130.34.12.112 130.34.12.127
ISMAIL H P Page 4
SYIT PRACTICAL COMPUTER NETWORK
PRACTICAL NO 2
Static Routing
Static Route
1. Static routing method is most trusted by a router.
2. Static routing is not really a routing protocol.
3. Static routes do not dynamically adapt to network changes, are not
particularly scalable, and require manual updating to reflect changes.
ISMAIL H P Page 5
SYIT PRACTICAL COMPUTER NETWORK
We configure it as follows
Step 1: (configure PC 0)
ISMAIL H P Page 6
SYIT PRACTICAL COMPUTER NETWORK
Step 2: (configure PC 1)
ISMAIL H P Page 7
SYIT PRACTICAL COMPUTER NETWORK
ISMAIL H P Page 8
SYIT PRACTICAL COMPUTER NETWORK
For router 0
ISMAIL H P Page 9
SYIT PRACTICAL COMPUTER NETWORK
For router 1
Now we can give the ping command as shown to check the connectivity
ISMAIL H P Page 10