You could store bytes separately and let mysql convert it to a single number or you could store numbers in a string and implement your own * and + operators working on strings, but to me it kinda looks like
XY problem: your real goal is probably not to convert ip to unsigned int, but to do something with ip ranges, so why don't you explain what do you want to do with those ips and we will see if there is better solution.
__________________