Does Server 2022 Support BGP 4-byte (32-bit) ASNs

Franco, Brian 25 Reputation points
2023-06-06T21:12:29.5466667+00:00

We are going through the motion to configure BGP routing on a Windows Server so we can peer with our cisco routers, allowing us to advertise a single address on a loopback for DNS services. Creating an Anycast solution for high availability since some custom applications will not failover gracefully, also simplifying DNS configuration at our locations. We use iBGP internally and therefore use our publicly assigned ASN for internal traffic and would need to peer with the windows server using 4-byte (32-bit) ASNs. I have tried both the built in Powershell as well as installing the 7.3.4 version and in both I get the following error when trying to configure the BGP Router on the windows server (IPs and ASNs have been changed for privacy):

PS C:>Add-BgpRouter -BgpIdentifier "192.168.1.1" -LocalASN 333333

Add-BgpRouter: Cannot validate argument on parameter 'LocalASN'. The 333333 argument is greater than the maximum allowed range of 65534. Supply an argument that is less than or equal to 65534 and then try the command again.

Everything I am reading from the microsoft website does not reference any limitations in the BGP configuration in server 2022, and even notes in Azure they support 4 byte ASN. I have found the configuration file that references the limitation:

C:\Windows\System32\WindowsPowerShell\v1.0\Modules\RemoteAccess\PS_BgpPeer_v1.0

            <Parameter ParameterName="PeerASN">
              <Type PSType="System.UInt32" />
              <CmdletParameterMetadata ValueFromPipelineByPropertyName="true">
                <ValidateNotNull />
                <ValidateNotNullOrEmpty />
                <ValidateRange Min="1" Max="65534" />
              </CmdletParameterMetadata>

Is there another version out there that I might be able to use? Would changing the Max value work? Anyone have a solution?

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
657 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Shujun Chen (Shanghai Wicresoft Co Ltd) 0 Reputation points Microsoft Vendor
    2024-01-02T08:44:44.9566667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Actually there's a limitation for 16-bit ASN value but not for 32-bit ANS, please kindly check the type futher.

    Here I will provide the documentation link for reference:

    https://learn.microsoft.com/en-us/powershell/module/remoteaccess/add-bgprouter?view=windowsserver2022-ps#-localasn

    https://www.iana.org/assignments/as-numbers/as-numbers.xhtml

    Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information. 

    To help other customers who may be facing the same issue, please don't forget to vote if the reply is helpful.

    0 comments No comments