Configure the BGP identifier range for a Cloud Router
Each Cloud Router has a BGP identifier, also known as a router ID. The BGP identifier is unique to each Cloud Router in your Virtual Private Cloud (VPC) network as required by RFC 6286. A BGP identifier is a 4-octet unsigned integer, represented as a valid IPv4 address.
You can assign an explicit BGP identifier range to your Cloud Router. If you do, your Cloud Router is assigned a stable BGP identifier from the assigned range.
An explicit BGP identifier range is required for IPv6 BGP. If you add an IPv6 interface to a Cloud Router that doesn't already have a BGP identifier range assigned, a random range from the IPv4 link-local address space is assigned to it.
A Cloud Router without an explicit BGP identifier range is assigned a BGP identifier corresponding to the lexicographically-last IPv4 address among its IPv4 interfaces.
BGP identifier changes and BGP session restarts
Unless you've configured an explicit BGP identifier range, Cloud Router might change the automatically generated router ID in the following circumstances:
- You add a BGP session
- You remove a BGP session
- During periodic maintenance
Before you begin
gcloud
If you want to use the command-line examples in this guide, do the following:
- Install or update to the latest version of the Google Cloud CLI.
- Set a default region and zone.
API
If you want to use the API examples in this guide, set up API access.
Assign a BGP identifier range to Cloud Router
This section describes how to assign an explicit BGP identifier range to a Cloud Router.