Saw this Question on Cisco's Web site

in CCNA & CCENT
Why can't I add this address to int vlan 10?
int vlan 10
ip address 10.1.10.0 255.255.255.0
result is "Bad mask /24 for address 10.1.10.0"
I added "ip subnet-zero" and it still won't work.
here are the responses
"It´s a trivial issue because we usually set the network address instead of port address.
10.1.10.0 network address.
10.1.10.1 port address"
and
The valid range for the /24 is 10.1.10.1-254. 10.1.10.0 is your network address and 10.1.10.255 is the broadcast address.
I can see it as that it is a network address but he did issue a ip subnet-zero so why did that not take care of it.
int vlan 10
ip address 10.1.10.0 255.255.255.0
result is "Bad mask /24 for address 10.1.10.0"
I added "ip subnet-zero" and it still won't work.
here are the responses
"It´s a trivial issue because we usually set the network address instead of port address.
10.1.10.0 network address.
10.1.10.1 port address"
and
The valid range for the /24 is 10.1.10.1-254. 10.1.10.0 is your network address and 10.1.10.255 is the broadcast address.
I can see it as that it is a network address but he did issue a ip subnet-zero so why did that not take care of it.
Comments
and whats the deal with SVI
and if you can't assign a "0" for and address then what good is ip subnet-zero command
found this a wiki under Subnetwork
Subnet zero and the all-ones subnet[edit]
The first subnet obtained from subnetting has all bits in the subnet bit group set to zero (0). It is therefore called subnet zero.[6] The last subnet obtained from subnetting has all bits in the subnet bit group set to one (1). It is therefore called the all-ones subnet.[7]
The IETF originally discouraged the production use of these two subnets due to possible confusion of having a network and subnet with the same address.[8] The practice of avoiding subnet zero and the all-ones subnet was declared obsolete in 1995 by RFC 1878, an informational, but now historical document.[9]
You can't assign 10.1.10.0 255.255.255.0 to an interface because that's a network address. The first and last IP addresses in a subnet define the network address and broadcast address (10.1.10.0 and 10.1.10.255, respectively, in your example). This means the valid range of addresses you can assign to your interfaces/hosts would be 10.1.10.1-.254. The "ip subnet-zero" command doesn't change this fact.
For example, say you have network 192.168.1.0/26. This gives you the following subnets:
192.168.1.0 (subnet zero)
192.168.1.64
192.168.1.128
192.168.1.192
The "ip subnet-zero" command really just allows you to assign addresses from the first subnet (subnet zero, or 192.168.1.0 in this example). This command is enabled by default on current versions of IOS, so it's not something you really need to worry about.
You can see if we disable ip subnet-zero, we can't assign an IP address from subnet zero to our interface.
If we re-enable ip subnet-zero, the same command we just tried will now work. Hope this helps.