5
votes
4answers
2k views

Linux Command line tool to work with netmasks / CIDR notation

I'm terrible at working out network subnets in my head. Is there some command line tool for linux (ubuntu packages a plus), that lets me put in 255.255.255.224 and it'll tell me that is a /27?