cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
25405
Views
1
Helpful
3
Replies

ip address 192.168.10.0 255.255.255.0 bad mask for /24?

tim421
Level 1
Level 1

Hi community,

 

Im a student and i'm doing a for my school and i need create vlan's on a fresh MLS but when i create the vlan and i go to the interface of it and put the command "ip address 192.168.10.0 255.255.255.0" it reply's back with "bad mask /24 for 192.168.10.0" And i mean i dont get it isnt this address just the perfect example for a /24 subnet? 
Thanks for reading this!

 

Best kinds,

Tim

3 Replies 3

luis_cordova
VIP Alumni
VIP Alumni

Hi @tim421 ,

 

The "bad mask" syslog indicates that you are trying to enter a network address, where a host address should be.

Try this:

192.168.10.1 255.255.255.0

 

Regards

balaji.bandi
Hall of Fame
Hall of Fame

In the Subnet networking, if you see /24 network

0 is always network address, 255 is broadcast address.

 

So usable addresses are from .1 to .254 only.

 

so start with 192.168.10.1 to 192.168.10.254

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi Tim, that is because the 192.168.10.0/24 means that the 3 first octets are for network but the other 8 remaining for the 32 bits are for hosts but upon this you take out two ips from the range 192.168.10.0 - 192.168.10.255, these two ip's belong to the network ID and the broadcast.
in this case you have:
192.168.10.0 network ID - Not assignable
192.168.10.1 first one to be assigned
192.168.10.254 last one to be assigned
192.168.10.255 the broadcast which it is used on the network segment to comunicate with all the hosts that belong to the network. - Not assignable.