{"id":37980,"date":"2025-08-04T15:57:12","date_gmt":"2025-08-04T18:57:12","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=37980"},"modified":"2025-08-05T15:55:15","modified_gmt":"2025-08-05T18:55:15","slug":"criando-as-tiers-de-rede-dentro-da-vpc-suas-sub-redes","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/criando-as-tiers-de-rede-dentro-da-vpc-suas-sub-redes\/","title":{"rendered":"Criando as Tiers de Rede Dentro da VPC (Suas Sub-redes)"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">As sub-redes, ou <\/span><i><span style=\"font-weight: 400;\">tiers<\/span><\/i><span style=\"font-weight: 400;\">, s\u00e3o as redes internas da VPC criadas por um usu\u00e1rio do Locaweb Cloud. Elas s\u00f3 podem ser criadas quando j\u00e1 <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-sua-propria-vpc-e-conectar-sua-vm\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">existir uma rede VPC <\/span><\/a><span style=\"font-weight: 400;\">\u00e0 qual essas camadas ser\u00e3o integradas. \u00c9 como criar uma rede guest isolada dentro da VPC.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Voc\u00ea pode criar v\u00e1rias <\/span><i><span style=\"font-weight: 400;\">tiers,<\/span><\/i><span style=\"font-weight: 400;\"> cada uma com determinado objetivo. Como ilustra a imagem abaixo, pode haver uma sub-rede p\u00fablica para web, outra privada para aplica\u00e7\u00f5es e ainda uma terceira para o banco de dados.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37983\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC.png\" alt=\"\" width=\"772\" height=\"507\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC.png 772w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC-300x197.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC-768x504.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC-50x33.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC-60x39.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1.-Tier-de-rede-VPC-100x66.png 100w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/> <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<h3><b>O processo que voc\u00ea deve seguir<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">A cria\u00e7\u00e3o de sub-rede pode ser realizada <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-sua-propria-vpc-e-conectar-sua-vm\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">assim que a sua VPC estiver criada<\/span><span style=\"font-weight: 400;\">.<\/span><\/a><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\">Geralmente, voc\u00ea ser\u00e1 direcionado, de forma autom\u00e1tica, \u00e0 p\u00e1gina com os detalhes da rede. Caso isso n\u00e3o aconte\u00e7a, no painel do Locaweb Cloud, selecione a aba <\/span><b>rede e, em seguida, clique em<\/b> <b>VPC<\/b><span style=\"font-weight: 400;\">.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37984\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC.png\" alt=\"\" width=\"512\" height=\"265\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC.png 512w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC-300x155.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC-50x26.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC-60x31.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2.-Selacao-da-rede-VPC-100x52.png 100w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/span><\/li>\n<li><span style=\"font-weight: 400;\">O pr\u00f3ximo passo \u00e9 <\/span><b>clicar no link com o nome da VPC<\/b><span style=\"font-weight: 400;\"> a qual ser\u00e1 integrada \u00e0 nova sub-rede.<\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Na tela de detalhes da sua VPC, encontre a aba ou se\u00e7\u00e3o <\/span><b>redes<\/b><span style=\"font-weight: 400;\">.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37985\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier.png\" alt=\"\" width=\"512\" height=\"265\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier.png 512w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier-300x155.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier-50x26.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier-60x31.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/3.-Selecao-de-tier-100x52.png 100w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/span><\/li>\n<li><span style=\"font-weight: 400;\"> Em seguida, clique no bot\u00e3o <\/span><b>adicionar novo <\/b><b><i>tier<\/i><\/b> <span style=\"font-weight: 400;\">na rede. <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-37986\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier.png\" alt=\"\" width=\"418\" height=\"457\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier.png 534w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier-274x300.png 274w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier-46x50.png 46w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier-55x60.png 55w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/4.-Adicao-de-tier-91x100.png 91w\" sizes=\"auto, (max-width: 418px) 100vw, 418px\" \/><\/span><\/li>\n<li><span style=\"font-weight: 400;\"> O pr\u00f3ximo passo \u00e9 preencher os dados do modal acima, considerando as orienta\u00e7\u00f5es a seguir:<\/span>&nbsp;\n<p><b>Nome:<\/b><span style=\"font-weight: 400;\"> procure definir um nome descritivo para sua <\/span><i><span style=\"font-weight: 400;\">tier.<\/span><\/i><span style=\"font-weight: 400;\">\u00a0<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Exemplo: <\/span><span style=\"font-weight: 400;\">Tier-Publica-Web<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Tier-Privada-App<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">Tier-DB<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Oferta de rede:<\/b><span style=\"font-weight: 400;\"> entre os planos dispon\u00edveis no Locaweb Cloud, selecione o mais adequado ao perfil de uso que a sua sub-rede ter\u00e1.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Gateway\/CIDR da <\/b><b><i>tier<\/i><\/b><b>:<\/b><span style=\"font-weight: 400;\"> nesse campo, voc\u00ea define o bloco de endere\u00e7os IP que poder\u00e1 ser utilizado por essa sub-rede espec\u00edfica.\u00a0<\/span><\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/p>\n<p><b>Lembre-se de que o CIDR da sub-rede deve ser um subconjunto do super CIDR definido para a pr\u00f3pria VPC.<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Exemplo: se o super CIDR da VPC \u00e9 <\/span><span style=\"font-weight: 400;\">10.0.0.0\/16<\/span><span style=\"font-weight: 400;\">, sua tier pode ser associada ao c\u00f3digo <\/span><span style=\"font-weight: 400;\">10.0.1.0\/24<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Em geral, o Locaweb Cloud atribui o primeiro IP utiliz\u00e1vel como gateway da sub-rede criada pelo usu\u00e1rio, a ser gerenciado pelo roteador virtual da VPC. <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Exemplo: <\/span><span style=\"font-weight: 400;\">10.0.1.1<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>M\u00e1scara de rede:<\/b><span style=\"font-weight: 400;\"> esse campo define o tamanho da sub-rede e, em geral, \u00e9 preenchido automaticamente a partir do CIDR da <\/span><i><span style=\"font-weight: 400;\">tier<\/span><\/i><span style=\"font-weight: 400;\"> definido na etapa anterior.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Exemplo: <\/span><span style=\"font-weight: 400;\">255.255.255.0<\/span><span style=\"font-weight: 400;\"> para um CIDR <\/span><span style=\"font-weight: 400;\">\/24<\/span><span style=\"font-weight: 400;\">. <\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>ID externo (opcional):<\/b><span style=\"font-weight: 400;\"> aqui, h\u00e1 a perspectiva de estabelecer um identificador personalizado. \u00c9 uma op\u00e7\u00e3o interessante para usu\u00e1rios que precisam referenciar a <\/span><i><span style=\"font-weight: 400;\">tier<\/span><\/i><span style=\"font-weight: 400;\"> internamente ou para acesso em sistemas externos.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Exemplo: <\/span><span style=\"font-weight: 400;\">projetoAlpha-web01<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>ACL (lista de controle de acesso):<\/b><span style=\"font-weight: 400;\"> este \u00e9 o momento de aplicar as regras de firewall de entrada e sa\u00edda para a <\/span><i><span style=\"font-weight: 400;\">tier<\/span><\/i><span style=\"font-weight: 400;\">. Para tal defini\u00e7\u00e3o, o usu\u00e1rio opta por uma ACL personalizada que tenha criado ou por uma Network ACL. Nesse \u00faltimo caso, aplica-se o exemplo: <\/span><span style=\"font-weight: 400;\">default_allow<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">default_deny<\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Para entender melhor!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/p>\n<p><span style=\"font-weight: 400;\">Por padr\u00e3o, sua VPC segue dois direcionamentos b\u00e1sicos quanto \u00e0 circula\u00e7\u00e3o de informa\u00e7\u00f5es.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>default_allow<\/b><span style=\"font-weight: 400;\">: permite que todo o tr\u00e1fego passe livremente.<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>default_deny<\/b><span style=\"font-weight: 400;\">: bloqueia todo o tr\u00e1fego por padr\u00e3o.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Da\u00ed a import\u00e2ncia da <\/span><b>ACL (lista de controle de acesso)<\/b><span style=\"font-weight: 400;\">, uma camada de seguran\u00e7a opcional que controla todo o tr\u00e1fego de entrada e sa\u00edda. Na pr\u00e1tica, a funcionalidade atua como um firewall para uma sub-rede inteira (uma &#8220;tier&#8221;) dentro da sua VPC.<\/span><\/p>\n<p><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-sao-as-acls-de-rede-e-como-configura-las\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Saiba mais sobre o que s\u00e3o as ACLs e aprenda a criar uma lista customizada<\/span><\/a><span style=\"font-weight: 400;\">, definindo regras espec\u00edficas e mais seguras para o tr\u00e1fego de informa\u00e7\u00f5es.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a06. Depois de preencher o modal, clique em <\/span><b>OK<\/b><span style=\"font-weight: 400;\"> para finalizar o processo.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tOs passos acima devem ser repetidos para cada sub-rede a ser criada.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/span><\/p>\n<h3><b>Pr\u00f3ximos passos<\/b><b><\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Agora que a VPC e as sub-redes est\u00e3o criadas, voc\u00ea j\u00e1 pode:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Implantar m\u00e1quinas virtuais (VMs)<\/b><span style=\"font-weight: 400;\">: selecionando a VPC e indicando a <\/span><i><span style=\"font-weight: 400;\">tier <\/span><\/i><span style=\"font-weight: 400;\">desejada durante processo de cria\u00e7\u00e3o da VM.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Configurar listas de controle de acesso \u00e0 rede: <\/b><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-configurar-regras-de-firewall\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">definindo as regras de firewall<\/span><\/a><span style=\"font-weight: 400;\"> que nortear\u00e3o o tr\u00e1fego de dados em cada sub-rede.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Adquirir e associar IPs p\u00fablicos ao seu roteador virtual da VPC:<\/b> <a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-alocar-um-ip-publico-para-sua-vm\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">permitindo acesso <\/span><\/a><span style=\"font-weight: 400;\">de entrada (static NAT\/port forwarding) ou sa\u00edda (source NAT) para suas VMs.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Configurar <\/b><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/o-que-e-e-como-criar-um-balanceador-de-cargas-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><b>regras de balanceamento de carga<\/b><\/a><b> (load balancing)<\/b><span style=\"font-weight: 400;\">: que v\u00e3o distribuir o tr\u00e1fego entre m\u00faltiplas VMs.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Estabelecer conex\u00f5es <\/b><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/criando-uma-vpn-site-to-site-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><b>VPN site-to-site<\/b><\/a><span style=\"font-weight: 400;\">: conectando a VPC \u00e0 sua rede local.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As sub-redes, ou tiers, s\u00e3o as redes internas da VPC criadas por um usu\u00e1rio do Locaweb Cloud. Elas s\u00f3 podem ser criadas quando j\u00e1 existir uma rede VPC \u00e0 qual essas camadas ser\u00e3o integradas. \u00c9 como criar uma rede guest isolada dentro da VPC. Voc\u00ea pode criar v\u00e1rias tiers, cada&#8230;<\/p>\n","protected":false},"author":29,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[666],"ht-kb-tag":[],"class_list":["post-37980","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-locaweb-cloud"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=37980"}],"version-history":[{"count":3,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37980\/revisions"}],"predecessor-version":[{"id":38159,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/37980\/revisions\/38159"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=37980"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=37980"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=37980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}