Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Problem using ip subnet zero

I am setting up a router for an MPLS migration and I gave my provider a list of /30 address. They assigned me the subnet address for my CE routers. I am getting bad mask when I try to add the ip address 192.168.1.40/30. I am running 12.4.11T on my 2811 ISR. Shouldn't this work? I have verify ip subnet-zero and ip classless are there? Is this a bug?

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Re: Problem using ip subnet zero

Hi,

There is not IP addressing rule to use /31.

We CANNOT USE /31 as a Subnet. at leaset 2 Bit are required for subnet. THAT IS THE RULE.

If you can count.... subnetting for host.

1111 1111.1111 1111.1111 1111.1111 1110 mean /31 corect..

do for host 2 to power 1 = 2 - 2 (For subnet and broadcast ID)= 0 (NO HOST REMAINS).

Regards,

Dharmesh Purohit

13 REPLIES
Hall of Fame Super Silver

Re: Problem using ip subnet zero

Wayne

With a /30 mask 192.168.1.40 is the subnet address and can not be configured as an interface address (and that is why the error is bad mask - not entirely intuitive but it is the /30 mask that makes it invalid - with a /28 mask that address would be quite valid). Within that /30 mask the host addresses would be .41 and .42. Try putting one of those on the interface and let us know what happens.

HTH

Rick

Silver

Re: Problem using ip subnet zero

Rick is true.... Please try such a way.

Second, if you are trying .41 or .42 address and still it is giving same error. in that situation, please make sure...... what IP addres used at ISP end mean at PE router. choose different ip address than PE.

Please let us know, still problem persist.

Regards,

Dharmesh Purohit

New Member

Re: Problem using ip subnet zero

Rick and Dharmesh,

Thanks for the replies. I will talk to my ISP to let them know that I am changing to .42. I do have a question though why will it allow me to use /31.

Thanks,

Wayne

Silver

Re: Problem using ip subnet zero

Hi,

There is not IP addressing rule to use /31.

We CANNOT USE /31 as a Subnet. at leaset 2 Bit are required for subnet. THAT IS THE RULE.

If you can count.... subnetting for host.

1111 1111.1111 1111.1111 1111.1111 1110 mean /31 corect..

do for host 2 to power 1 = 2 - 2 (For subnet and broadcast ID)= 0 (NO HOST REMAINS).

Regards,

Dharmesh Purohit

New Member

Re: Problem using ip subnet zero

Thanks. My router interface accepted it. Strange.

Hall of Fame Super Silver

Re: Problem using ip subnet zero

Dharmesh

That is NOT the rule. The Cisco IOS does allow (and has for a long time) use of /31 masks on point to point interfaces.

This link is one of many which discuss the support for /31 on Cisco IOS:

http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455093.html

HTH

Rick

Silver

Re: Problem using ip subnet zero

Hi,

It is usefull only in Point-to-point Link.

Second you are talking about core (CE) routing into root quetion.

Hall of Fame Super Silver

Re: Problem using ip subnet zero

Do not say:

"We CANNOT USE /31 as a Subnet. at leaset 2 Bit are required for subnet. THAT IS THE RULE" when it is in fact NOT the rule.

HTH

Rick

Silver

Re: Problem using ip subnet zero

Hi Rick,

I am hounering your solutions.

What router accept that is not IP addressing rule.

Ip addressing has open standard rules.

Now, Router vendor either cisco or else that is regardless, what design. IOS and firmware accept the same mask. It has not concern with that.

IP address RULE are different and IOS/firmware accept commands that is different.

That is what i was telling.

Why we are giving ip subnet-zero command... to indicate IOS... we are going to break the IP adress rule. That is our requirement and please accept subnet mask what we are giving.

New Member

Re: Problem using ip subnet zero

This situation is covered by the following RFC:

RFC 3021 - Using 31-Bit Prefixes on IPv4 Point-to-Point Links

Silver

Re: Problem using ip subnet zero

Hi Rick,

Thanks... I will check out the same.

Thanks a Lot.

Regards,

Dharmesh Purohti

New Member

Re: Problem using ip subnet zero

Thanks Guys. I contact my ISP and luckily they haven't loaded the configs yet so they were able to change the addresses.

Wayne

Hall of Fame Super Silver

Re: Problem using ip subnet zero

Wayne

I am glad that we were able to help you resolve your problem. Thanks for using the rating system. It makes the forum more useful when people can read about a problem and can know that they will also read a solution that resolved the problem.

I encourage you to continue your participation in the forum.

HTH

Rick

362
Views
15
Helpful
13
Replies
CreatePlease login to create content