[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-05 (世界標準時間)。"],[],[],null,["# BFD diagnostic messages and session states\n==========================================\n\n| **Important:** BFD can only be enabled on provisioned VLAN\n| attachments that use Dataplane version 2. You can view the `dataplaneVersion` for a\n| VLAN attachment by viewing the attachment details in one of the following ways:\n|\n| - **API** : Use the [interconnectAttachments.get](/compute/docs/reference/rest/v1/interconnectAttachments/get) method. You can use this method on VLAN attachments for either Dedicated Interconnect or Partner Interconnect.\n| - **Google Cloud CLI** : Use the `gcloud compute interconnects attachments describe\n| `\u003cvar translate=\"no\"\u003eATTACHMENT-NAME\u003c/var\u003e command where \u003cvar translate=\"no\"\u003eATTACHMENT-NAME\u003c/var\u003e is the name of the VLAN attachment for either Dedicated Interconnect or Partner Interconnect.\n|\n| In the output of the API or gcloud CLI command, look for the\n| `dataplaneVersion` field with a value of `2`. If the field is absent\n| from the output, the VLAN attachment is using version 1 and cannot be used with BFD. For more\n| information, contact your customer account team.\n|\n| The Cloud Interconnect Dataplane v2 is unrelated to\n| [Google Kubernetes Engine (GKE) Dataplane V2](/kubernetes-engine/docs/concepts/dataplane-v2)\n\n[RFC 5880](https://datatracker.ietf.org/doc/html/rfc5880#section-4.1)\ndefines diagnostic codes that specify the local system's reason for the last\nchange in the Bidirectional Forwarding Detection (BFD) session state.\nDiagnostic messages can be helpful indicators\nwhen troubleshooting. You can see these messages or codes when\n[viewing Cloud Router status](/network-connectivity/docs/router/how-to/viewing-router-details#viewing-router-status).\n\nThe following table lists BFD diagnostic messages, their numeric error codes,\nand suggested follow-up actions.\n\n\u003cbr /\u003e\n\n### BFD session states\n\nThe following table lists BFD session states and their numeric error codes.\n\n### BFD status messages\n\nYou can view BFD status messages under the `bfdStatus` field in command\noutput from the [`gcloud compute routers\nget-status` command](/sdk/gcloud/reference/compute/routers/get-status).\n\nFor field definitions and descriptions, see the\n[Cloud Router API documentation](/compute/docs/reference/rest/v1/routers/getRouterStatus).\n\nWhat's next\n-----------\n\n- To modify BFD settings on a BGP session, see\n [Update or disable BFD](/network-connectivity/docs/router/how-to/updating-bfd).\n\n- For information about BGP session states, see\n [BGP session states](/network-connectivity/docs/router/concepts/bgp-states).\n\n- To troubleshoot issues with Cloud Router, see\n [Troubleshooting](/network-connectivity/docs/router/resources/troubleshooting)."]]