Skip to content

funny-fury/network-calc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

network-calc

Easy way to quickly find key values for a network environment such as the binary net ip, netmask, broadcast address and so on for a given input. See the example below:


$ net-calc 192.168.1.0/24

Entry: 192.168.1.0/24

Network address:     11000000 10101000 00000001 00000000    192.168.1.0
Netmask:             11111111 11111111 11111111 00000000    255.255.255.0 (24 bits)
Broadcast addr:      11000000 10101000 00000001 11111111    192.168.1.255
Min Host value:      11000000 10101000 00000001 00000001    192.168.1.1
Max Host value:      11000000 10101000 00000001 11111110    192.168.1.254

The possible number of hosts on this network is 254.

Install

  1. $ cd /opt
  2. $ sudo git clone https://github.com/allisonmachado/network-calc
  3. cd network-calc
  4. sudo make && sudo make install

About

A subnet mask and network calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.4%
  • Makefile 3.6%