Calculate netmask, network and broadcast address using ipcalc in Linux.
RHEL/CentOS v7: ipcalc is part of initscripts package which is installed by default.
Fedora: ipcalc is part of ipcalc package and you can install it with:
yum install ipcalc
We will use ipcalc command in this presentation to:
– convert network prefix to netmask and vice versa
– calculate network address
– calculate broadcast address
Commands used in this video tutorial:
ipcalc -m 172.16.99.201/24
ipcalc -n 172.16.99.201/24
ipcalc -b 172.16.99.201/24
ipcalc -m -n -b 172.16.99.201/24
ipcalc -p 172.16.99.201 255.255.255.0
ipcalc -n 172.16.99.201 255.255.255.0
ipcalc -b 172.16.99.201 255.255.255.0
ipcalc -p -n -b 172.16.99.201 255.255.255.0
Related Video Tutorials:
Red Hat Enterprise Linux v7 networking
Calculate netmask, network and broadcast address – EASY!
Network Interface naming convention in Red Hat 7
Setting up network without NetworkManager in Redhat 7
Setting up network using NetworkManager and network scripts in Redhat 7
Setting up network using a NetworkManager text user interface (nmtui) in Red Hat 7 – EASY!!!
Setting up network in Red Hat 7 in less than a minute – QUICK & EASY!!!
Setting up network using a NetworkManager command line interface (nmcli) in Red Hat 7
nmcli cheat! Setting up network using nmcli in Red Hat 7 in less than a 30 seconds – QUICK & EASY!!!
Setting up network using a NetworkManager connection editor GUI tool in Red Hat 7 – EASY!!!
Complete Beginners Guide to Linux Network Configuration – GUI & Easy!
NetworkManager connection priority – manage network profile priority in Linux.