Untuk melihat tampilan rute lengkap, gunakan konsol Google Cloud . Untuk menampilkan dan menjelaskan rute berbasis kebijakan, lihat Menggunakan rute berbasis kebijakan.
Anda dapat memfilter berdasarkan properti, termasuk
jenis rute, rentang IP tujuan,
dan jenis next hop.
Opsional: Klik tombol Show suppressed routes ke posisi aktif
untuk melihat rute yang disembunyikan. Untuk melihat alasan rute
dihilangkan, arahkan kursor ke ikon di kolom Status.
gcloud
Untuk menampilkan dan melihat detail rute subnet
dan rute statis, gunakan perintah gcloud compute
routes. Perintah ini tidak
menampilkan jenis rute lainnya. Untuk melihat semua rute, gunakan konsol Google Cloud .
Untuk mencantumkan rute, lakukan tindakan berikut:
gcloud compute routes list \
--filter="network=NETWORK_NAME" \
--project=PROJECT_ID
Untuk mendapatkan detail rute, lakukan langkah berikut:
PROJECT_ID: project ID yang berisi jaringan VPC Anda
ROUTE_NAME: nama rute
API
Untuk menampilkan dan melihat detail rute subnet
dan rute statis, gunakan metode
routes.list dan
routes.get. Metode ini
tidak menampilkan jenis rute lainnya. Untuk melihat semua rute, gunakan konsol Google Cloud .
Untuk mencantumkan rute, lakukan tindakan berikut:
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/routes?filter=network="NETWORK_URL
Untuk mendapatkan detail rute, lakukan langkah berikut:
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/routes/ROUTE_NAME
Ganti kode berikut:
PROJECT_ID: project ID yang berisi jaringan VPC Anda
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-12 UTC."],[],[],null,["# View the VPC route table\n\nThis page describes how to view VPC route tables. This page\nassumes that you are familiar with how to\n[list routes for a VPC network](/vpc/docs/using-routes#listingroutes).\n\n#### Permissions required for this task\n\nTo perform this task, you must have been granted the following permissions\n*or* the following IAM roles.\n\n**Permissions**\n\n- `compute.routes.list`\n\n**Roles**\n\nTo find predefined roles that contain those permissions, see [Compute Engine IAM roles and permissions](/compute/docs/access/iam).\n\nList and describe routes in a VPC spoke\n---------------------------------------\n\nYou can use the Google Cloud CLI or the API to list and view details about the\nfollowing types of routes:\n\n- [System-generated default routes](/vpc/docs/routes#routingpacketsinternet)\n- [Subnet routes](/vpc/docs/routes#subnet-routes)\n- [Peering subnet routes](/vpc/docs/routes#peering-subnet-routes)\n- [Network Connectivity Center subnet routes](/vpc/docs/routes#ncc-subnet-routes)\n- [Static routes](/vpc/docs/static-routes)\n\nNeither the gcloud CLI commands nor the API methods show the\nfollowing types of routes:\n\n- [Policy-based routes](/vpc/docs/routes#policy-based_routes)\n- [Dynamic routes](/vpc/docs/routes#dynamic_routes)\n- [Peering static and dynamic routes](/vpc/docs/routes#peering-custom-routes)\n\nTo see the complete route view, use the Google Cloud console. To list and\ndescribe policy-based routes, see [Use policy-based\nroutes](/vpc/docs/use-policy-based-routes). \n\n### Console\n\n1. In the Google Cloud console, go to the **Routes** page.\n\n [Go to Routes](https://console.cloud.google.com/networking/routes/list)\n2. On the **Effective routes** tab, do the following:\n\n - Choose a VPC network.\n - Choose a region.\n3. Click **View**.\n\n4. You can filter on properties including\n [route type](/vpc/docs/routes#types_of_routes), destination IP range,\n and [next hop type](/vpc/docs/routes#static-route-next-hops).\n\n5. Optional: Click the **Show suppressed routes** toggle to the on\n position to view routes that are suppressed. To view the reason why a\n route is suppressed, point to the icon in the **Status** column.\n\n### gcloud\n\nTo list and view details for [subnet routes](/vpc/docs/routes#subnet-routes)\nand [static routes](/vpc/docs/static-routes), use the [`gcloud compute\nroutes` commands](/sdk/gcloud/reference/compute/routes). These commands don't\nshow other types of routes. To see all routes, use the Google Cloud console.\n\nTo list routes, do the following: \n\n```\ngcloud compute routes list \\\n --filter=\"network=NETWORK_NAME\" \\\n --project=PROJECT_ID\n```\n\nTo get details for a route, do the following: \n\n```\ngcloud compute routes describe ROUTE_NAME \\\n --format=\"flattened()\" \\\n --project=PROJECT_ID\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eNETWORK_NAME\u003c/var\u003e: the name of the VPC network\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID that contains your VPC network\n- \u003cvar translate=\"no\"\u003eROUTE_NAME\u003c/var\u003e: the name of the route\n\n### API\n\nTo list and view details for [subnet routes](/vpc/docs/routes#subnet-routes)\nand [static routes](/vpc/docs/static-routes), use the\n[routes.list](/compute/docs/reference/rest/v1/routes/list) and\n[routes.get](/compute/docs/reference/rest/v1/routes/get) methods. These methods\ndon't show other types of routes. To see all routes, use the Google Cloud console.\n\nTo list routes, do the following: \n\n```\nGET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/routes?filter=network=\"NETWORK_URL\n```\n\nTo get details for a route, do the following: \n\n```\nGET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/routes/ROUTE_NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID that contains your VPC network\n- \u003cvar translate=\"no\"\u003eNETWORK_URL\u003c/var\u003e: the URL of the VPC network\n- \u003cvar translate=\"no\"\u003eROUTE_NAME\u003c/var\u003e: the name of the route\n\nWhat's next\n-----------\n\n- To create hubs and spokes, see [Work with hubs and spokes](/network-connectivity/docs/network-connectivity-center/how-to/working-with-hubs-spokes).\n- To view a list of partners whose solutions are integrated with Network Connectivity Center, see [Network Connectivity Center partners](/network-connectivity/docs/network-connectivity-center/partners).\n- To find solutions for Router appliance issues, see [Troubleshooting](/network-connectivity/docs/network-connectivity-center/support/troubleshooting#troubleshooting-ra).\n- To get details about API and `gcloud` commands, see [APIs and reference](/network-connectivity/docs/network-connectivity-center/apis)."]]