• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

assign all 0s all 1s network address on an interface

Dear All...

I have read this Article regarding ip-subnet-zero command in Cisco …...

Prior to Cisco IOS 12.0, by default, Cisco routers wouldn't allow you to configure an IP address on the all 0s network on an interface. However, you could configure this using the ip subnet-zero command in Global Configuration Mode.

Now, after IOS 12.0, the ip subnet-zero command is the default on routers. Note that this command not only allows the all 0s subnet, but it also permits the all 1s subnet. And that's why you no longer have to subtract 2 when using the network formula.

Is this meant that I can configure an interface with the following address :

Or with :

Also :
With  can I configure subnet mask of on Cisco routers…..

Thanks at advance ..

  • 2
2 Solutions
Don JohnstonInstructorCommented:
No. This is a network address of the first subnet (all 0's in the host field)
No. This is the broadcast address of the first subnet (all 1's in the host field)
No. This is a network address (all 0's in the host field)
No. This is the broadcast address of the last subnet (all 1's in the host field)

Now what you could do is:

Which is an all 0's subnet that you can't do without subnet zero.

You can also do:

Which is an all 1's subnet.
abu_deepAuthor Commented:
what about the subnet I have seen it before on cisco routers........
In the "old days" subnet zero would not be allowed.
An example would be
Or even your example of
Nor would the last subnet be allowed:
Following the old rules, neither of these subnets were supposed to be used
You could not use anything in the subnet 192.168.0.x, nor assign IP's because they are part of subnet zero

Most modern IP stacks don't care, but Cisco IOS is more RFC compliant so the command to allow those subnets had to be added and is now the default.

As Don points out, you still can't use all zeros as a host IP, but you can use all the valid host ips within the subnet.

Don JohnstonInstructorCommented:
The only way to have a "subnet" of .254 would be if you had a /31 mask. That would leave a host field on 1 bit which is not allowed.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now