Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
194 views
in Technique[技术] by (71.8m points)

networking - IP-address ending with zero?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...