• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Ip addresses

syco83

Member
Why cannot be all "1"s or all "0"s in the network portion of the IP address?
This is in binary numbers.
I really need to know a good explanation of why you can not
 
You can't have all 1's or 0's at the beginning or end of an IP address. 255 (what all 1's adds up to) is a broadcast address. A 0 (what all 0's adds up to) can also be a broadcast address (old school, probably not recognized anymore by modern IP stacks).
192.168.0.1 is fine, but 192.168.0.0 would be a network address, usually followed by a /24.
 
All 0's in the network portion would be a network with a first octet of 0, which is invalid. First valid network is 1.0.0.0, or 00000001

All 1's in the network portion would be a network starting with 255 for the first octet, which is a class E network, which is an invalid network for ip addressing. It is used for experimental purposes.
 
Originally posted by: SpunkyJones
All 0's in the network portion would be a network with a first octet of 0, which is invalid. First valid network is 1.0.0.0, or 00000001

All 1's in the network portion would be a network starting with 255 for the first octet, which is a class E network, which is an invalid network for ip addressing. It is used for experimental purposes.

as is this answer.
 
Originally posted by: syco83
that wasn't the right answer

I'm not the one taking the class.

My answer was definitely rough, but unless I REALLY misunderstood your poorly worded homework question, I got it just about right.
 
Not sure what's wrong with my statement. The 0 thing only becomes a problem really at the beginning or end of the ip address, and 255 is definitely a broadcast address...
 
Originally posted by: Goosemaster
Originally posted by: gcbrowni
Now explain how /31's work and why the lower /64 of an IPv6 address can't be all 0's.

31's will give you 0 hosts.....!!??!?

you can use them for WAN circuits where there are only two hosts. In this case there is no need for a subnet broadcast.

-ps- hey NOC, he said "network" portion of a IPv4 address, not host.
 
Originally posted by: spidey07
Originally posted by: Goosemaster
Originally posted by: gcbrowni
Now explain how /31's work and why the lower /64 of an IPv6 address can't be all 0's.

31's will give you 0 hosts.....!!??!?

you can use them for WAN circuits where there are only two hosts. In this case there is no need for a subnet broadcast.

-ps- hey NOC, he said "network" portion of a IPv4 address, not host.

Yeah, I got it. Not enough sleep I guess.
 
Originally posted by: gcbrowni
Now explain how /31's work and why the lower /64 of an IPv6 address can't be all 0's.
An IPv6 address can be all 0's in the lower 64 bits. A subnet-router anycast address is an IPv6 address that has the interface ID set to all 0's. For all IPv6 addresses that start with a value other than b'000', the interface ID is 64 bits in length. So, for all IPv6 addresses that start with anything other than b'000', an address with the lower 64 bits set to 0's is a subnet-router anycast address.

Roy
 
Back
Top