Subnet calculator in Checkpoint firewall


Should you ever forget intricacies of the subnetting Checkpoint have subnetting calculator right in their firewalls - ipcalc.
Given subnet show the 1st Ip (network) :

ipcalc -n 192.168.34.45/27

NETWORK=192.168.34.32

Given subnet show the last IP (broadcast) :

ipcalc -b 192.168.34.45/27

        BROADCAST=192.168.34.63

Be careful though what you feed as no proof-reading is done by the ipcalc :

ipcalc -b 192.168.34.45/33

BROADCAST=255.255.255.255

Follow me on https://www.linkedin.com/in/yurislobodyanyuk/ not to miss what I publish on Linkedin, Github, blog, and more.