Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível executar os Testes de conectividade diretamente no Flow Analyzer para
validar a conectividade entre dois endpoints. Você também pode executar esses testes
para entender o caminho entre dois recursos. Quando você executa os Testes de conectividade, eles usam a configuração atual. Portanto, se você executar os testes duas semanas após o evento de registro real, os testes de conectividade não usarão a configuração histórica.
Ao executar um teste, os seguintes atributos são usados na definição
de teste:
IP de origem
Projeto de origem
Rede de origem (para endereços IP internos)
IP de destino (para endereços IP internos)
Projeto de destino (para endereços IP internos)
Rede de destino (para endereços IP internos)
Porta de destino
Protocolo
Se esses parâmetros não estiverem disponíveis nas informações de tráfego, o teste de conectividade vai falhar. Por exemplo, se você agrupar o tráfego no
Flow Analyzer apenas por VPC de origem e VPC de
destino, essas informações
não serão suficientes para executar os Testes de conectividade.
Os Testes de conectividade podem falhar pelos seguintes motivos:
Se os recursos mostrados nos registros de fluxo de VPC não existirem mais.
Se o teste for executado do servidor para o cliente e o tráfego nessa direção (além do tráfego de retorno) não puder ser iniciado.
Antes de começar
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Verifique se a função do usuário tem as seguintes permissões:
compute.networks.list
Como os testes são executados por uma API interna, os resultados são temporários e os usuários não recebem cobranças por isso. Os resultados não são armazenados
e não podem ser acessados depois que o painel de resultados é fechado.
Como executar o Connectivity Tests
Para executar os Testes de conectividade no Analisador de fluxo, faça o seguinte:
Console
No console Google Cloud , acesse a página Analisador de fluxo.
Selecione um bucket de registros. Por padrão, os registros de fluxo são armazenados no bucket de registros _Default e acessíveis na visualização de registros _Default.
Selecione o período em que você quer executar a consulta.
No menu Tráfego, selecione uma das seguintes opções:
Origem - Destino:agrega o tráfego da origem ao destino.
Cliente-servidor:agregue o tráfego nas duas direções considerando os recursos com números de porta mais baixos e as definições de serviço como servidores.
Opcional: nas listas Filtro, selecione um ou mais filtros.
Organize os resultados da consulta usando as listas Organizar fluxos por.
Os campos a seguir são obrigatórios:
Endereço IP de origem
ID do projeto da rede VPC de origem ou da rede VPC
Endereço IP de destino
Clique em Executar nova consulta.
Na tabela Todos os fluxos de dados, clique em Executar em qualquer fluxo.
[[["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-09-04 UTC."],[],[],null,["# Run Connectivity Tests\n\nYou can run Connectivity Tests directly from Flow Analyzer to\nvalidate the connectivity between two endpoints. You can also run these tests\nto understand the path between two resources. When you run Connectivity Tests,\nnote that the tests uses the existing configuration. So, if you run the tests\ntwo weeks after the actual log event, Connectivity Tests does not use\nthe historical configuration.\n\nWhile running a test, the following attributes are used in the test\ndefinition:\n\n- Source IP\n- Source Project\n- Source Network (for internal IP addresses)\n- Destination IP (for internal IP addresses)\n- Destination Project (for internal IP addresses)\n- Destination Network (for internal IP addresses)\n- Destination Port\n- Protocol\n\nIf these parameters are not available in the traffic information, the\nConnectivity Test fails. For example, if you group traffic in\nFlow Analyzer only by Source VPC and Destination\nVPC, this information\nis not sufficient to run Connectivity Tests.\n| **Note:** The existing resource configuration is used to perform the analysis.\n\nConnectivity Tests can fail due to the following reasons:\n\n- If the resources shown in VPC Flow Logs no longer exist.\n- If the test is executed from server to client and traffic in that direction (other than return traffic) cannot be initiated.\n\nBefore you begin\n----------------\n\n1. In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n2. [Enable the Network Management API](/network-intelligence-center/docs/connectivity-tests/reference/enable-api).\n\n3. Make sure the user role has the following permissions:\n `compute.networks.list`\n\n Because the tests are run through internal API, the results are ephemeral and\n users are not billed for running the tests. The results are not stored\n and are not accessible after closing the results panel.\n\nRun Connectivity Tests\n----------------------\n\nTo run Connectivity Tests from Flow Analyzer, do the following: \n\n### Console\n\n1. In the Google Cloud console, go to the **Flow Analyzer** page.\n\n [Go to Flow Analyzer](https://console.cloud.google.com/net-intelligence/flow-analyzer)\n2. Select a log bucket. By default, flow logs are stored in\n the **_Default** log bucket and accessible in the **_Default** log view.\n\n3. Select the time range for which you want to run the query.\n\n4. In the **Traffic** menu, select one of the following options:\n\n - **Source - Destination:** Aggregate the traffic from the source to the destination.\n - **Client - Server:** Aggregate the traffic in both directions by considering the resources with lower port numbers and service definitions as servers.\n5. Optional: In the **Filter** lists, select one or more filters.\n\n6. Organize the query results by using the **Organize flows by** lists.\n The following fields are required:\n\n - Source IP address\n - Source VPC network or VPC network project ID\n - Destination IP address\n7. Click **Run new query**.\n\n8. In the **All data flows** table, click **Run** for any flow.\n\nWhat's next\n-----------\n\n- [Analyze your traffic flows](/network-intelligence-center/docs/flow-analyzer/analyze-traffic-flows)\n- [Monitor your traffic flows](/network-intelligence-center/docs/flow-analyzer/monitor-traffic-flows)\n- [Troubleshoot data issues in Flow Analyzer](/network-intelligence-center/docs/flow-analyzer/manage-flow-analyzer)"]]