[[["容易理解","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-04 (世界標準時間)。"],[],[],null,["# Disable VLAN attachments\n\nYou can temporarily disable a VLAN attachment so that it stops forwarding\npackets. Disabling an attachment can be useful if you want to test failover.\nTo test that a redundant connection can successfully serve traffic, disable\nthe primary Cross-Cloud Interconnect connection. \n\n### Console\n\n1. In the Google Cloud console, go to the **VLAN attachments** tab.\n\n [Go to VLAN attachments](https://console.cloud.google.com/hybrid/interconnects/list?tab=attachments)\n2. Select a VLAN attachment to disable.\n\n3. On the **VLAN attachment details** page, click **Disable** . The attachment\n stops forwarding packets within a minute or two. To re-enable the\n attachment, click **Enable**.\n\n### gcloud\n\nUse the\n[`gcloud compute interconnects attachments dedicated update` command](/sdk/gcloud/reference/compute/interconnects/attachments/dedicated/update)\nwith the `--no-admin-enabled` flag: \n\n```\ngcloud compute interconnects attachments dedicated update ATTACHMENT_NAME \\\n --region REGION \\\n --no-admin-enabled\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eATTACHMENT_NAME\u003c/var\u003e: the name of your VLAN attachment\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region where the attachment is located\n\nThe attachment stops forwarding packets within a minute or two.\n\nTo enable the attachment, use the `--admin-enabled` flag.\n\nWhat's next\n-----------\n\n- To learn more about Cross-Cloud Interconnect, see the\n [Cross-Cloud Interconnect overview](/network-connectivity/docs/interconnect/concepts/cci-overview).\n\n- To learn about common issues that you might encounter when using\n Cross-Cloud Interconnect, see\n [Troubleshooting](/network-connectivity/docs/interconnect/support/troubleshooting#cci)."]]