• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Practical purpose for /30 subnet?

You're asking two different questions, here. The answer to the question in the title, is there a practical use for a /30 subnet, is yes. The answer to the question in your post, is... Well, not really.

A /30 can *only* operate as a point-to-point connection. This is typically used for a connection between two routers, where you don't need more than two usable addresses. A /30 contains four addresses, but only two are usable. The other two are reserved for the network address, and broadcast address.
 
You're asking two different questions, here. The answer to the question in the title, is there a practical use for a /30 subnet, is yes. The answer to the question in your post, is... Well, not really.

A /30 can *only* operate as a point-to-point connection. This is typically used for a connection between two routers, where you don't need more than two usable addresses. A /30 contains four addresses, but only two are usable. The other two are reserved for the network address, and broadcast address.

In which case a /31 is better.
 
In which case a /31 is better.
No.

It is convention to treat the "host-part is all zeros"-address as the address of the network itself. And to treat the "host-part is all ones"-address as the broadcast-address of the network.

That means that there is software out there that might act weird if you configure interfaces (on a host, or on a router) with either the all-zeros or all-ones address. If you want to be careful, and try to avoid potential problems, you should avoid using those 2 addresses. And therefor you should use /30s on your point-to-point links.

Of course brave people can use /31s. There is even an RFC that tells you it is fine to do that.
https://tools.ietf.org/html/rfc3021
I'd be interested to hear if people really do assign /31s, or not. Anyone here who works for an ISP or a large enterprise ?

If you really care about address-preservation, I prefer another method. Assign an IP-address to the loopback-interface of your router. And make all point-to-point links unnumbered to the loopback. You then need only 1 ip-address per router, plus 1 address per ethernet (multipoint) interface.
 
Yes, /31 subnets work for point-to-point connections just fine.

Cisco IOS does give a warning when assigning a /31 mask to an interface, but I haven't seen any functional issues due to the subnet mask.

I would agree that using a /31 subnet mask probably isn't a best practice, but we can thank IPv4 public IP address exhaustion for necessitating its use.
 
Point to point links don't need broadcast space, so /31 does actually make sense in that sense to preserve public IP address space that you've been allocated.
 
Umm. Yes. Come on. You even referenced the RFC.

There's nothing wrong with /31s when used appropriately.

I worked for said large enterprise and I explicitly made the move to /31s throughout.

Somewhere around 1000 links.

No.

It is convention to treat the "host-part is all zeros"-address as the address of the network itself. And to treat the "host-part is all ones"-address as the broadcast-address of the network.

That means that there is software out there that might act weird if you configure interfaces (on a host, or on a router) with either the all-zeros or all-ones address. If you want to be careful, and try to avoid potential problems, you should avoid using those 2 addresses. And therefor you should use /30s on your point-to-point links.

Of course brave people can use /31s. There is even an RFC that tells you it is fine to do that.
https://tools.ietf.org/html/rfc3021
I'd be interested to hear if people really do assign /31s, or not. Anyone here who works for an ISP or a large enterprise ?

If you really care about address-preservation, I prefer another method. Assign an IP-address to the loopback-interface of your router. And make all point-to-point links unnumbered to the loopback. You then need only 1 ip-address per router, plus 1 address per ethernet (multipoint) interface.
 
People who use /30s for ptp networks do so for one of three reasons:

1) they're stodgy,
2) corporate policy, whether it be provisioning tools that haven't been updated or whatever, or
3) ignorance.

No reason to not use /31s anymore. Well, except for ASAs. ASAs still don't support them. But w/e.
 
People who use /30s for ptp networks do so for one of three reasons:

1) they're stodgy,
2) corporate policy, whether it be provisioning tools that haven't been updated or whatever, or
3) ignorance.

No reason to not use /31s anymore. Well, except for ASAs. ASAs still don't support them. But w/e.

I work for a large corp and we still use /30's they are all rfc 1918 space so we haven't seen it be an issue.

But then we also use public space internally.

Oh this BOGON is fine or hey we will never need to talk to that DOD network.
 
We use /31's on Cisco to Cisco devices but have to use /30's on stubborn equipment that doesn't support it.

When you find yourself with a router with full line cards talking to multiple other routers also full, /31's make a lot of sense in the IP use department.
 
Back
Top