Write a program by c programming language for VLSM calculator Input will be: 1) Input by user - IP address[sample- IP address - 192.168.1.10/24] 2) Input by user - How many LAN/Networks in your topology [number of 'n'. n can be any numbers] 3) Input by user - How many Host/computers in each LAN/Networks [number of 'n' in each topology. n can be any numbers] Output will be: 1) Network address with subnet mask, first assignable address, last assignable address, broadcast address and gateway address for each LAN/Networks. Sample Input example for your understanding:- sample IP address - 192.168.1.10/24 ------------------------------------------ 1st LAN/Network : 258 Host/Computers
Write a program by c
Input will be:
1) Input by user - IP address[sample- IP address - 192.168.1.10/24]
2) Input by user - How many LAN/Networks in your topology [number of 'n'. n can be any numbers]
3) Input by user - How many Host/computers in each LAN/Networks [number of 'n' in each topology. n can be any numbers]
Output will be:
1) Network address with subnet mask, first assignable address, last assignable address, broadcast address and gateway address for each LAN/Networks.
Sample Input example for your understanding:- sample IP address - 192.168.1.10/24
------------------------------------------
1st LAN/Network : 258 Host/Computers
2nd LAN/Network : 200 Host/Computers
3rd LAN/Network : 120 Host/Computers
.
.
.
'n' times LAN/Network : 'n' Host/Computers
Output example for your understanding:-
-----------------------------------------
1st LAN/Network : [Network address with subnet mask]
1st LAN/Network : [first assignable address]
1st LAN/Network : [last assignable address]
1st LAN/Network : [broadcast address]
1st LAN/Network : [gateway address]
.
.
.
'n' times LAN/Network : ...
Step by step
Solved in 2 steps