Install libnetwork-ipv4addr-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libnetwork-ipv4addr-perl
Perl extension for manipulating IPv4 addresses
Net::IPv4Addr provides functions for parsing IPv4 addresses both in traditional address/netmask format and in the new CIDR format. There are also methods for calculating the network and broadcast address and also to see check if a given address is in a specific network.