Viewing Router Configuration

View the configuration for each BGP session of a Cloud Router. For example, you can view the configured route advertisements for the router and its BGP sessions or the base advertised route priority that Cloud Router uses for calculating route metrics.

All routes for a BGP session use the same base priority. For more information, see Route metrics. If no value is specified, the base advertised route priority is the default value of 100.

To view the configuration for an existing BGP session:

Console


  1. Go to the Cloud Router page in the Google Cloud Platform Console.
    Go to the Routers page
  2. From the list of routers, select the router with the BGP session that you want to view.
  3. View the BGP sessions section to see the details of your Cloud Router's BGP sessions.

gcloud


  1. Run the describe command, passing the name of the Cloud Router.

    gcloud compute routers describe [ROUTER_NAME]

  2. In the output, view the bgpPeers section.

    bgp:
      advertiseMode: CUSTOM
      advertisedIpRanges:
      - description: 'test'
        range: 10.0.10.0/24
      asn: 65101
    bgpPeers:
    - advertiseMode: DEFAULT
      advertisedRoutePriority: 101
      interfaceName: bgp1
      ipAddress: 169.254.0.225
      name: p1
      peerAsn: 65201
      peerIpAddress: 169.254.0.226
    - interfaceName: bgp2
      ipAddress: 169.254.1.1
      name: p1002
      peerAsn: 65400
      peerIpAddress: 169.254.2.2
    creationTimestamp: '2017-07-12T09:01:27.918-07:00'
    id: '1234567890123456789'
    interfaces:
      - ipRange: 169.254.0.225/30
        linkedInterconnectAttachment: https://www.googleapis.com/compute/projects/test/regions/us-central1/interconnectAttachments/test1
        name: interface1
      - ipRange: 169.254.1.1/29
        linkedInterconnectAttachment: https://www.googleapis.com/compute/projects/test/regions/us-central1/interconnectAttachments/test2
        name: interface2
      kind: compute#router
      name: my-router

What's next?

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Router