Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Preparar-se para a conectividade de Hybrid Subnets
Nesta página, descrevemos as tarefas que você precisa realizar antes de usar as Hybrid Subnets. Verifique se a rede de nuvem privada virtual (VPC)
e a rede local estão prontas para conectividade de Hybrid Subnets
concluindo as etapas a seguir.
Conectar uma rede VPC a uma rede local
Uma sub-rede híbrida exige conectividade entre uma rede VPC e
uma rede local. A conexão precisa ser de um dos seguintes tipos:
Um par de túneis de VPN de alta disponibilidade
Anexos da VLAN para a Interconexão dedicada
Anexos da VLAN para a Interconexão por parceiro
Para configurar a conectividade híbrida, veja o seguinte:
Para garantir que as instâncias de máquina virtual (VM) do Google Cloud possam se comunicar
com cargas de trabalho e VMs locais que usam o intervalo de endereços IP da sub-rede híbrida, faça o seguinte:
No Google Cloud, crie regras de firewall de permissão de entrada ou regras em
políticas de firewall para permitir todos os pacotes do intervalo de endereços
IP associado à sub-rede híbrida.
A regra de firewall de permissão implícita de saída
permite a saída das VMs do Google Cloud. Se você
tiver criado regras de firewall de negação de saída ou regras de negação de saída em políticas de firewall,
será necessário criar regras de permissão de saída para permitir pacotes para o intervalo de endereços IP
associado à sub-rede híbrida.
É possível definir o escopo de regras de firewall para VMs específicas usando o parâmetro de
destino da regra. Confira mais informações:
Configure os firewalls no local de maneira semelhante.
Ativar proxy ARP para o roteador local
O ARP do proxy precisa estar
ativado no roteador local. Isso permite que o roteador
responda com o próprio endereço MAC quando recebe solicitações ARP para VMs que fazem
parte do Google Cloud de uma sub-rede híbrida. O roteador local pode encaminhar pacotes para VMs na sub-rede do Google Cloud usando os blocos CIDR que o roteador local aprendeu com as divulgações de rota personalizadas
da sessão do protocolo de gateway de borda (BGP)
no Cloud Router.
Para informações sobre como ativar o ARP do proxy no
roteador local, consulte a documentação pública do roteador.
[[["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-08-28 UTC."],[],[],null,["# Prepare for Hybrid Subnets connectivity\n=======================================\n\n|\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis page describes the tasks that you need to complete before you can\nuse Hybrid Subnets. Ensure that your source network and\nVirtual Private Cloud (VPC) network are ready for Hybrid Subnets\nconnectivity by completing the following steps.\n\nConnect a VPC network to a source network\n-----------------------------------------\n\nA hybrid subnet requires connectivity between a VPC network and\na source network. The connection must be one of the following types:\n\n- A pair of HA VPN tunnels\n- VLAN attachments for Dedicated Interconnect\n- VLAN attachments for Partner Interconnect\n\nFor help choosing a connection type, see\n[Choosing a Network Connectivity product](/network-connectivity/docs/how-to/choose-product).\n\nTo configure hybrid connectivity, see the following:\n\n- [Create an HA VPN gateway to a peer VPN gateway](/network-connectivity/docs/vpn/how-to/creating-ha-vpn)\n- [Create Dedicated Interconnect VLAN attachments](/network-connectivity/docs/interconnect/how-to/dedicated/creating-vlan-attachments)\n- [Create Partner Interconnect VLAN attachments](/network-connectivity/docs/interconnect/how-to/partner/creating-vlan-attachments)\n\nConfigure custom route advertisement\n------------------------------------\n\nWhen you configure hybrid connectivity, you create a Cloud Router.\nConfigure the Cloud Router's BGP session to\n[only advertise custom routes](/network-connectivity/docs/router/how-to/advertising-subnets#bgp-session). Don't add any routes now;\nin a later step, you add custom routes for each migrated VM.\n\nConfigure firewall rules\n------------------------\n\nTo ensure that Google Cloud virtual machine (VM) instances can communicate\nwith workloads in your source network and Google Cloud VMs that use the\nhybrid subnet's IP address range, do the following:\n\n- In Google Cloud, create ingress allow firewall rules or rules in\n firewall policies to allow all packets from the IP address range that is\n associated with the hybrid subnet.\n\n The [implied allow egress](/vpc/docs/firewalls#default_firewall_rules)\n firewall rule allows egress from Google Cloud VMs. If you've\n created egress deny firewall rules or egress deny rules in firewall policies,\n you'll need to create egress allow rules to permit packets to the IP address\n range that is associated with the hybrid subnet.\n\n You can scope firewall rules to specific VMs by using the target\n parameter of the rule. For more information, see:\n - [VPC firewall rules](/vpc/docs/firewalls)\n - [Firewall policies](/vpc/docs/firewall-policies-overview)\n- Configure firewalls in your source network in a similar way.\n\nConfigure source network routing\n--------------------------------\n\nTo prepare your source network for Hybrid Subnets connectivity,\ndo the following.\n\n### Enable proxy ARP for the source network\n\nEnable [proxy ARP](https://en.wikipedia.org/wiki/Proxy_ARP) for your source\nnetwork. For more information, see\n[Proxy ARP and Hybrid Subnets](/vpc/docs/hybrid-subnets#proxy-arp).\n\nFor information on enabling proxy ARP, see the documentation of your\nproxy ARP solution.\n\n### Advertise your hybrid subnet's IP address range\n\nConfigure your source network to advertise the primary internal IPv4 address\nrange of the VPC part of your hybrid subnet.\n\nWhat's next\n-----------\n\n- To learn more about Hybrid Subnets, see\n [About Hybrid Subnets](/vpc/docs/hybrid-subnets).\n\n- To migrate workloads from a source subnet to a VPC\n subnet, see [Create a hybrid subnet](/vpc/docs/create-hybrid-subnets)."]]