cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1202
Views
15
Helpful
13
Replies

Problem using ip subnet zero

whorner
Level 1
Level 1

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

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

View solution in original post

13 Replies 13

Richard Burts
Hall of Fame
Hall of Fame

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

HTH

Rick

purohit_810
Level 5
Level 5

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

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

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

Thanks. My router interface accepted it. Strange.

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

HTH

Rick

Hi,

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

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

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

HTH

Rick

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.

This situation is covered by the following RFC:

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

Hi Rick,

Thanks... I will check out the same.

Thanks a Lot.

Regards,

Dharmesh Purohti

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

Wayne

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

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: