Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível desativar temporariamente um anexo da VLAN para que ele pare de encaminhar pacotes. Isso pode ser útil, por exemplo, para testes de failover. Desative uma Interconexão dedicada para testar se a conexão redundante pode disponibilizar tráfego com êxito.
É possível ativar anexos da VLAN, geralmente após o teste de failover.
Drenar o tráfego de um anexo da VLAN
Encerrar o BGP
Recomendamos que você desative um anexo da VLAN desativando a sessão do protocolo de gateway de borda (BGP, na sigla em inglês). Desativar apenas a sessão do BGP em vez de desativar todo o anexo da VLAN evita a perda de pacotes. Depois de fazer essa alteração na configuração, pode levar alguns minutos para que o tráfego se mova completamente. Para mais informações, consulte Desativar uma sessão do BGP.
Desativar um anexo da VLAN
Se você precisar desativar o anexo da VLAN mais rapidamente ou garantir que nenhum pacote seja enviado por ele, desative o anexo inteiro. Esse processo pode gerar perda de pacotes. Para desativar um anexo da VLAN, faça o seguinte:
Console
No console do Google Cloud, acesse a guia Anexos da VLAN.
Na guia Anexos da VLAN, selecione um anexo da VLAN para desativar.
Na página Detalhes do anexo da VLAN, clique em Desativar. O anexo interrompe o encaminhamento de pacotes dentro de um ou dois minutos. Para reativar o anexo, clique em Ativar.
gcloud
Para desativar um anexo ativo atual, use a sinalização --no-admin-enabled:
O anexo interrompe o encaminhamento de pacotes dentro de um ou dois minutos.
Para ativar o anexo, use a sinalização --admin-enabled.
Restaurar o tráfego para um anexo da VLAN
Para restaurar o tráfego para o anexo da VLAN, é necessário ativar a sessão do BGP ou ativar o anexo da VLAN, dependendo de como você esvaziou o tráfego do anexo da VLAN.
Ativar BGP
Se você desativou o anexo da VLAN desativando a sessão do BGP,
reative o BGP para que o anexo funcione novamente.
A ativação do BGP leva alguns minutos para entrar em vigor. Para mais informações, consulte Ativar uma sessão do BGP.
Ativar um anexo da VLAN
Se você desativar o anexo da VLAN desativando-o, ative o anexo da VLAN para restaurar o tráfego para ele.
Faça o seguinte:
Console
No console do Google Cloud, acesse a guia Anexos da VLAN.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-04-21 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)."]]