Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IP-address ending with zero? [closed]

Tags:

networking

ip

This might not be the right place or the right time, but I have a question. I'm a computer-engineer and I know a few things about networking, but when I saw (see pic), I WTF'ed.

Situation: I came home this Friday and was asked to help my dad with some network-problems. He sat up a few IP-Cameras a while ago, and I got it working from anywhere. But this week the ISP did some sort of "Reboot" or upgrade or what ever, and we got the IP shown on the picture. Now I'm not able to connect to these IP-Cams from an external IP.

Hypothesis: I'm guessing the ISP sat a subnet-mask with less than 24bits, but why would a ISP want to do this? And how come I can't connect to this IP?

Anyone have anything to say about the situation? I will most likely get a new IP if I just contact the ISP, but I thought I'd share this just for fun. I never expected to get such IP from an ISP :p

enter image description here

like image 419
LordMarty Avatar asked Feb 16 '13 21:02

LordMarty


People also ask

What does it mean when an IP ends with 0?

0.0. These addresses are what we call 'logical' addresses, meaning that they are based purely on software (the operating system). One of the very basic rules in IP networks is that every... logical network, no matter how small or big it is, must have a network identifier address and a network broadcast address.

Can 0 be a part of IP address?

To provide a very simple answer: One or more zeros in an ip address are perfectly valid for host addresses as long as those addresses are not the network or broadcast address.

What is the 0.0 0.0 IP address called?

In the Internet Protocol Version 4, the address 0.0. 0.0 is a non-routable meta-address used to designate an invalid, unknown or non-applicable target. This address is assigned specific meanings in a number of contexts, such as on clients or on servers.

Is 0 a valid subnet?

Some people may even try to argue that it is an invalid IP address because there is a 0 in third octet. However, today, this IP address is perfectly legal when it comes to subnetting.


1 Answers

An IP address ending in .0 is perfectly legal these days. However, some devices (and firewall policies) believe that it isn't.

In the old "classfull" addressing scheme, IPs from 192.0.0.0 to 223.255.255.255 were considered "class C" space, i.e. they had an implicit subnet mask of 255.255.255.0.

So, back then, you couldn't actually have a .0 host address, because .0 was the "network address". Similarly you couldn't have a .255 address within that range because that was the broadcast address.

About 20 years ago, though, everyone changed to "classless" CIDR style addressing, with variable length subnet masks, and no implicit subnet masks. If you've got a /23 then there shouldn't be any reason why you can't use the .255 that's at the end of the first /24 and the .0 that's at the start of the next.

However, 5+ years ago when I was in the ISP industry our system would happily give out .0 and .255 addresses to end users, but then we found that they couldn't reach Microsoft's websites because they had either broken kit, or overzealous firewall rules. We ended up having to exclude those addresses, even though they're legal.

like image 126
Alnitak Avatar answered Sep 18 '22 19:09

Alnitak