How would I add 0.0.15.255 to 172.1.6.255, talking about IPv4 networks here. I have done things like 192.168.1.15 plus 0.0.1.30 to be 192.168.2.45. but when it goes over the limit of 255, I just do not now how to do this... Help?
link to full question:
https://cs.stackexchange.com/questions/51011/how-would-i-add-0-0-15-255-to-172-1-6-255/51012#51012
I cant use special symbols here..
1
to the broadcast address. Seriously, do it in binary or you will end up like you are now with a bad method. An IP address is just a 32-bit binary number, and so is a mask. It's really just simple binary math. – Ron Maupin Dec 21 '15 at 19:291
to the bit position of the subnet (20th bit in my example), or you can add1
to the broadcast address of the subnet you have. You are going about this completely wrong, and you should forget what you are trying to do. You need to do this in binary since IP math is binary math. If you continue to try to do this as you are, you will never get a correct answer. – Ron Maupin Dec 21 '15 at 20:36