Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Anda dapat menonaktifkan lampiran VLAN untuk sementara agar paket tersebut berhenti meneruskan paket. Hal ini dapat berguna, misalnya, untuk menguji failover. Nonaktifkan satu koneksi Interkoneksi Khusus untuk menguji apakah koneksi redundan dapat berhasil menyalurkan traffic.
Anda dapat mengaktifkan lampiran VLAN, biasanya setelah menguji failover.
Menyaring traffic dari lampiran VLAN
Matikan BGP
Sebaiknya nonaktifkan lampiran VLAN dengan menonaktifkan sesi Border Gateway Protocol (BGP). Menonaktifkan sesi BGP saja, bukan menonaktifkan seluruh lampiran VLAN akan menghindari paket hilang. Setelah melakukan perubahan
konfigurasi ini, perlu waktu beberapa menit hingga traffic benar-benar hilang. Untuk mengetahui informasi selengkapnya, baca Menonaktifkan sesi BGP.
Nonaktifkan lampiran VLAN
Jika perlu menonaktifkan lampiran VLAN lebih cepat, atau jika perlu memastikan bahwa nol paket dikirim melalui lampiran VLAN, Anda dapat menonaktifkan seluruh lampiran VLAN. Proses ini dapat menyebabkan hilangnya paket. Untuk menonaktifkan lampiran VLAN, lakukan hal berikut:
Pada tab Lampiran VLAN, pilih lampiran VLAN yang akan dinonaktifkan.
Di halaman Detail lampiran VLAN, klik Disable. Lampiran akan berhenti meneruskan paket dalam satu atau dua menit. Untuk mengaktifkan kembali lampiran, klik Aktifkan.
gcloud
Untuk menonaktifkan lampiran aktif yang sudah ada, gunakan flag --no-admin-enabled:
Lampiran berhenti meneruskan paket dalam satu atau dua menit.
Untuk mengaktifkan lampiran, gunakan tanda --admin-enabled.
Pulihkan traffic ke lampiran VLAN
Untuk memulihkan traffic ke lampiran VLAN, Anda harus mengaktifkan sesi BGP-nya atau mengaktifkan lampiran VLAN, tergantung cara Anda mengalirkan traffic dari lampiran VLAN Anda.
Aktifkan BGP
Jika Anda menonaktifkan lampiran VLAN dengan menonaktifkan sesi BGP-nya, Anda harus mengaktifkan kembali BGP agar lampiran Anda berfungsi lagi.
Pengaktifan BGP memerlukan waktu beberapa menit untuk diterapkan. Untuk mengetahui informasi selengkapnya, lihat Mengaktifkan sesi BGP.
Aktifkan lampiran VLAN
Jika lampiran VLAN dinonaktifkan dengan menonaktifkan lampiran VLAN, maka Anda harus mengaktifkan lampiran VLAN untuk memulihkan traffic ke lampiran tersebut.
[[["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-09-04 UTC."],[],[],null,["# Disable or enable VLAN attachments\n\nYou can temporarily disable a VLAN attachment so that it stops forwarding\npackets. This can be useful, for example, for testing failover. Disable one\nDedicated Interconnect connection to test that the redundant connection\ncan successfully serve traffic.\n\nYou can enable VLAN attachments, typically after testing for failover.\n\nDrain traffic from a VLAN attachment\n------------------------------------\n\n### Shut down BGP\n\nWe recommend that you disable a VLAN attachment by disabling its Border Gateway\nProtocol (BGP) session. Disabling only the BGP session instead of disabling the\nentire VLAN attachment avoids packet loss. After making this configuration\nchange, it can take a few minutes for traffic to completely move away. For more\ninformation, see [Disable a BGP\nsession](/network-connectivity/docs/router/how-to/disabling-removing-bgp#disable_a_bgp_session).\n\n### Disable a VLAN attachment\n\nIf you need to disable your VLAN attachment more rapidly, or if you need to\nensure that zero packets are sent over your VLAN attachment, you can disable the\nentire VLAN attachment. This process can incur packet loss. To disable a VLAN\nattachment, do the following: \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. On the **VLAN attachments** tab, select a VLAN attachment to disable.\n\n3. On the **VLAN attachment details** page, click **Disable** . The\n attachment stops forwarding packets within a minute or two. To re-enable\n the attachment, click **Enable**.\n\n### gcloud\n\nTo disable an existing active attachment, use the `--no-admin-enabled`\nflag:\n\n\u003cbr /\u003e\n\n```\n gcloud compute interconnects attachments dedicated update my-attachment\n --region us-central1\n --no-admin-enabled\n \n```\n\n\u003cbr /\u003e\n\nThe attachment stops forwarding packets within a minute or two.\n\nTo enable the attachment, use the `--admin-enabled` flag.\n\nRestore traffic to a VLAN attachment\n------------------------------------\n\nTo restore traffic to your VLAN attachment, you must either enable its BGP\nsession or enable the VLAN attachment, depending on how you drained traffic\nfrom your VLAN attachment.\n\n### Enable BGP\n\nIf you disabled your VLAN attachment by disabling its BGP session,\nthen you must re-enable BGP to make your attachment work again.\n\nEnabling BGP takes a few minutes to take effect. For more information, see\n[Enable a BGP\nsession](/network-connectivity/docs/router/how-to/disabling-removing-bgp#enable_a_bgp_session).\n\n### Enable a VLAN attachment\n\nIf you shut down your VLAN attachment by disabling your VLAN attachment, then\nyou must enable your VLAN attachment to restore traffic to your attachment.\n\nDo the following: \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. On the **VLAN attachments** tab, select a VLAN attachment to enable.\n\n3. On the **VLAN attachment details** page, click **Enable**. The\n attachment starts forwarding packets within a minute or two.\n\n### gcloud\n\nTo enable an existing active attachment, use the `--admin-enabled`\nflag:\n\n\u003cbr /\u003e\n\n```\n gcloud compute interconnects attachments dedicated update my-attachment\n --region us-central1\n --admin-enabled\n \n```\n\n\u003cbr /\u003e\n\nThe attachment starts forwarding packets within a minute or two.\n\nWhat's next\n-----------\n\n- To create an Dedicated Interconnect connection, see the\n [Dedicated Interconnect provisioning overview](/network-connectivity/docs/interconnect/how-to/dedicated/provisioning-overview).\n\n- To learn more about Cloud Interconnect options, see the\n [Cloud Interconnect overview](/network-connectivity/docs/interconnect/concepts/overview).\n\n- To help you solve common issues that you might encounter when using\n Cloud Interconnect, see\n [Troubleshooting](/network-connectivity/docs/interconnect/support/troubleshooting)."]]