- If your on-premises device is capable of supporting a configuration with a 31-bit subnet mask.
- If the Cloud Service Provider is capable of supporting a configuration with a 31-bit subnet mask.
On-premises device support
The most common network device operating system supports the use of a 31-bit subnet mask, with some older versions displaying a warning, such as:Cloud Service Provider support
The majority of Cloud Service Providers support the use of a 31-bit subnet mask, including AWS, Oracle, Alibaba, and IBM. Here are details provided by each CSP:- Oracle Cloud Infrastructure FastConnect Quick reference: “For a private virtual circuit, you can specify a /30 or /31 network of your choice, and those IP addresses are assigned to the virtual circuit during the provisioning process. The IP addresses are used for BGP peer establishment. For a public virtual circuit, Oracle Cloud Infrastructure chooses the BGP IP addresses.” Resource: https://www.oracle.com/cloud/networking/fastconnect-faq.html
- IBM Direct Link Quick reference: “Our staff at IBM Cloud assigns a /31 or /30 for each connection and configures an interface IP address on the IBM Cloud cross-connect router (XCR) infrastructure.” Resource: https://cloud.ibm.com/docs/direct-link?topic=direct-link-configure-ibm-cloud-direct-link
- AWS Direct Connect Quick reference: “For a private IPv4 VIF, Amazon will provide you a /31 CIDR. Note: you can use a /31 public CIDR for a Public IPv4 VIF.” Resource: https://www.amazonaws.cn/en/directconnect/faqs/
- Alibaba Cloud Express Connect You can use a /30 or /31 represented by the subnet mask. Resource: Connecting to Alibaba Express Connect.
- Microsoft Azure ExpressRoute No support (or plans) for 31-bit subnet masks.
- Google Partner Interconnect Does not currently support the use of 31-bit subnet masks. The mask is fixed and assigned from a 169.254.0.0/16 pool.
- Megaport Cloud Router Supports the use of 31-bit subnet masks on VXCs connected to customer devices, as well as on CSP-facing VXCs where the CSP supports this mask length.