Como montar compartilhamentos de arquivos em clientes remotos
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, mostramos como ativar um compartilhamento de arquivos do Filestore em clientes
em uma rede remota, por exemplo:
VMs do Compute Engine em um projeto ou rede VPC
diferente.
Clientes locais na rede local.
Estabelecer uma conexão VPN entre a rede remota e a rede VPC da instância do Filestore
Antes de montar um compartilhamento de arquivos em um cliente remoto, estabeleça uma conexão VPN entre a rede do cliente e a rede VPC da instância do Filestore.
Ativar o compartilhamento de arquivos do Filestore no cliente remoto
Depois que a conexão de VPN é estabelecida, é possível montar o compartilhamento de arquivos em qualquer cliente na rede remota usando qualquer um dos métodos de ativação padrão.
Se você usa a VPN de alta disponibilidade ou o Cloud Interconnect e monta o compartilhamento de arquivos na VM cliente que está executando a versão 5 do kernel do Linux, defina a opção de montagem nconnect como 1. Essa configuração evita várias conexões com diferentes nós de back-end do Filestore e garante a conexão com compartilhamentos de arquivos montados.
[[["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-18 UTC."],[[["\u003cp\u003eThis page details how to mount a Filestore file share on remote clients, such as Compute Engine VMs or on-premises clients, located in different projects or networks.\u003c/p\u003e\n"],["\u003cp\u003eEstablishing a VPN connection between the client's network and the Filestore instance's VPC network is a prerequisite for mounting the file share.\u003c/p\u003e\n"],["\u003cp\u003eCreating an HA VPN and ensuring non-overlapping subnet ranges, as well as advertising the Filestore instance's IP as a custom route during BGP configuration, are necessary steps.\u003c/p\u003e\n"],["\u003cp\u003eAfter establishing the VPN connection, the file share can be mounted on any client in the remote network using standard mounting methods.\u003c/p\u003e\n"]]],[],null,["# Mounting file shares on remote clients\n\nThis page shows you how to mount a Filestore file share on clients\nin a remote network, such as:\n\n- Compute Engine VMs on a different project or VPC network.\n- On-premises clients on your local network.\n\nEstablish a VPN connection between the remote network and the VPC network of the Filestore instance\n---------------------------------------------------------------------------------------------------\n\nBefore you can mount a file share on a remote client, you must establish a VPN\nconnection between the client's network and the VPC network of\nthe Filestore instance.\n\n1. Create an HA VPN or a Classic VPN. For detailed instructions, see [Creating an HA VPN gateway to a Peer VPN gateway](/network-connectivity/docs/vpn/how-to/creating-ha-vpn) or [Create a Classic VPN gateway using static routing](/network-connectivity/docs/vpn/how-to/creating-static-vpns).\n\n Ensure that:\n - The subnet ranges of the client and the Filestore instance don't overlap.\n - The IP address of the Filestore instance is advertised as a custom route during BGP configuration.\n - You must use an external or third-party VPN provider.\n\n For details, see [Known issues](/filestore/docs/known-issues#mounting_over_vpn).\n2. Configure the VPN gateway and tunnel on the remote network:\n\n - For specific configuration guidance for certain VPN devices, see [VPN Interoperability Guides](/network-connectivity/docs/vpn/how-to/interop-guides).\n - For general configuration parameters, see [Configuring the\n Peer VPN Gateway](/network-connectivity/docs/vpn/how-to/configuring-peer-gateway).\n\nMount the Filestore file share on the remote client\n---------------------------------------------------\n\nOnce the VPN connection is established, you can mount the file share on any\nclient in the remote network using any of the\n[standard mounting methods](/filestore/docs/mounting-fileshares).\n\nIf you use HA VPN or Cloud Interconnect and mount the file share to client VM that's running Linux kernel version 5, set the [`nconnect` mount option](https://man7.org/linux/man-pages/man5/nfs.5.html) to `1`. This setting prevents multiple connections to different Filestore backend nodes and ensures connection to mounted file shares. \n\n mount -o nconnect=1\n\nWhat's next\n-----------\n\n- Learn more about creating [Compute Engine instances](/compute/docs/instances/create-start-instance).\n- Learn more about creating [Filestore instances](/filestore/docs/creating-instances).\n- Learn more about [Cloud VPN](/network-connectivity/docs/vpn)."]]