Get the netmask properly and use in route add