View details such as the status of a router's BGP sessions or the routes that the router is advertising.
To check the status of a BGP session, open the router list and view the BGP sessions column.
A green circle with a checkmark indicates the session is established.
An red circle with an exclamation mark indicates that the session is still coming up or has already failed. Hover over the exclamation mark for more information. If the session is still coming up, wait a few moments, and then reload the page to verify that the session has been established. If the session failed, view the logs to see information about the session.
To see the dynamic routes your router has learned in the network, open the routes list, and then select Dynamic.
get-status command and pass the name of the router. The command
returns the router's status and advertised routes.
gcloud compute --project [PROJECT_ID] routers get-status my-router \ --region asia-east1
kind: compute#routerStatusResponse Result: bestRoutes: - destRange: 10.0.1.0/24 kind: compute#route nextHopIp: 169.254.1.1 priority: 100 - destRange: 10.0.2.0/24 kind: compute#route nextHopIp: 169.254.1.1 priority: 100 bgpPeerStatus: - advertisedRoutes: - destRange: 10.21.0.0/16 kind: compute#route nextHopIp: 169.254.1.2 priority: 100 - destRange: 192.168.1.0/24 kind: compute#route nextHopIp: 169.254.1.2 priority: 100 ipAddress: 169.254.1.1 name: bgp-peer1 numLearnedRoutes: 0 peerIpAddress: 169.254.1.2 state: Established status: UP uptime: '10' network: https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/global/networks/my-network