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:
RHCSA Fast Track course:
Network Interface naming convention in Red Hat 7:
• Network Interface naming convention in Red...
Setting up network without NetworkManager in Redhat 7:
• Setting up network without NetworkManager ...
Setting up network using NetworkManager and network scripts in Redhat 7:
• Setting up network using NetworkManager an...
Setting up network using a NetworkManager text user interface (nmtui) in Red Hat 7 - EASY!!!
• Setting up network using a NetworkManager ...
Setting up network in Red Hat 7 in less than a minute - QUICK & EASY!!!
• Setting up network in Red Hat 7 in less th...
Setting up network using a NetworkManager command line interface (nmcli) in Red Hat 7
• Setting up network using a NetworkManager ...
nmcli cheat! Setting up network using nmcli in Red Hat 7 in less than a 30 seconds - QUICK & EASY!!!
• nmcli cheat! Setting up network using nmcl...
Setting up network using a NetworkManager connection editor GUI tool in Red Hat 7 - EASY!!!
• Setting up network using a NetworkManager ...
The Complete Beginners Guide to Linux Network Configuration - GUI & Easy!
• Complete Beginners Guide to Linux Network ...
NetworkManager connection priority - manage network profile priority in Linux:
• NetworkManager connection priority - manag...
Shrink ext2 ext3 and ext4 file system and reduce the size of a logical volume with only one command.
• Shrink ext2 ext3 and ext4 file system and ...
Complete guide to file system shrinking and reducing the size of the underlying logical volume.
• Complete guide to file system shrinking an...
RHCE EX300 exam:
RHCE EX300 exam: Configure an iSCSI target on Red Hat Enterprise Linux
• RHCE EX300 exam: Configure an iSCSI target...