Ipcalc is a simple tool to calculate network, broadcast, netmask, etc. from an IP address.

It also gives the class of the IP. It might facilitate the work of network admins.

Here is an example of using it against a “local” IP address:

Example 1:

Deb:~# ipcalc 192.168.4.25
Address: 192.168.4.25 11000000.10101000.00000100. 00011001
Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000
Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111
=>
Network: 192.168.4.0/24 11000000.10101000.00000100. 00000000
HostMin: 192.168.4.1 11000000.10101000.00000100. 00000001
HostMax: 192.168.4.254 11000000.10101000.00000100. 11111110
Broadcast: 192.168.4.255 11000000.10101000.00000100. 11111111
Hosts/Net: 254 Class C, Private Internet

Continue Reading…

Step 1. Open the network configuration file (pico /etc/network/interfaces)

Check the name of your network interface. You should see a line similar to this one: “iface eth0 inet static”. In my case the name is eth0.

Add these lines to the end of the file:

auto eth0:1

iface eth0:1 inet static

address 192.168.1.3

netmask 255.255.255.0

broadcast 192.168.1.255

network 192.168.1.0

Continue Reading…

Page 1 of 11