Parte 49: VPC de Google Cloud Modo Auto vs Modo Personalizado con VM

Guía práctica de VPC Auto y Personalizado en Google Cloud: crea subredes, lanza VM en subred personalizada y aplica seguridad y automatización.

13 sept 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Parte 49: VPC de Google Cloud Modo Auto vs Modo Personalizado con VM

Introducción: En este artículo explicamos de forma práctica cómo crear y usar redes VPC en Google Cloud en modo Auto y en modo Personalizado, cómo lanzar una instancia de máquina virtual en una subred personalizada y cómo verificar y limpiar los recursos. También aprovechamos para mostrar cómo Q2BSTUDIO puede ayudar con soluciones cloud, aplicaciones a medida y servicios avanzados de inteligencia artificial y ciberseguridad.

Conceptos clave: Una VPC en modo Auto crea subredes automáticamente en todas las regiones. Una VPC en modo Personalizado ofrece control total sobre las subredes y es la recomendación para cargas de trabajo reales. Palabras clave importantes: aplicaciones a medida, software a medida, inteligencia artificial, ciberseguridad, servicios cloud aws y azure, servicios inteligencia de negocio, ia para empresas, agentes IA, power bi.

Paso 1 Crear VPC en modo Auto: En Google Cloud Console ir a VPC Network y seleccionar CREATE VPC NETWORK. Nombre vpc1-auto. Subnets Automatic. Reglas de firewall ejemplares allow-icmp allow-ssh allow-rdp y reglas internas. Routing regional. Crear la red y verificar en la sección Subnets que Google haya creado subredes en cada región automáticamente.

Paso 2 Crear VPC en modo Personalizado: En VPC Network seleccionar CREATE VPC NETWORK. Nombre vpc2-custom. Subnets Custom. Firewall por ejemplo allow-ssh allow-icmp. Routing regional. Crear la red.

Paso 3 Añadir una subred personalizada: Dentro de vpc2-custom ir a Subnets y ADD SUBNET. Nombre mysubnet1. Region us-central1. IP Stack IPv4. Subnet Range 10.225.0.0/20. Añadir la subred.

Paso 4 Lanzar una VM en la subred personalizada usando gcloud. Configurar proyecto: gcloud config set project gcp-zero-to-hero-468909. Crear VM: gcloud compute instances create myvm1 --zone=us-central1-a --machine-type=e2-micro --network-interface=subnet=mysubnet1. Opcional listar instancias: gcloud compute instances list. Describir: gcloud compute instances describe myvm1 --zone=us-central1-a. Conectar por SSH: gcloud compute ssh --zone=us-central1-a myvm1 --project=gcp-zero-to-hero-468909.

Paso 5 Startup script y verificación: Si durante la creación de la VM agrega un startup script que instale Apache o Nginx, compruebe la IP externa en la consola y abra el navegador para verificar que el servidor web responde. Ver también la IP interna para confirmar que la VM está en vpc2-custom mysubnet1.

Paso 6 Limpieza: Listar instancias con gcloud compute instances list. Borrar la VM: gcloud compute instances delete myvm1 --zone=us-central1-a --delete-disks=all. Luego eliminar subredes y VPC si ya no se necesitan.

Recomendaciones prácticas: Para entornos de producción usar VPC en modo Personalizado por control y segmentación de redes. Mantener reglas de firewall mínimas necesarias y emplear subredes por zona o por finalidad. Automatizar la creación y la limpieza con scripts o herramientas de infraestructura como código.

Por qué elegir a Q2BSTUDIO: En Q2BSTUDIO somos una empresa de desarrollo de software que ofrece soluciones a medida, desde aplicaciones móviles y web hasta integraciones cloud y servicios de ciberseguridad. Podemos ayudarte a diseñar redes VPC seguras, desplegar aplicaciones en la nube y aplicar inteligencia artificial para tu negocio. Con experiencia en servicios cloud aws y azure ofrecemos arquitecturas escalables y seguras, y también trabajamos en proyectos de inteligencia de negocio y Power BI para obtener valor de tus datos.

Servicios relacionados: Si buscas desarrollar proyectos de software a medida visita aplicaciones a medida y software a medida. Para migraciones y arquitecturas en la nube revisa nuestros servicios cloud AWS y Azure. También ofrecemos soluciones en inteligencia artificial, agentes IA y servicios de inteligencia de negocio como Power BI.

Resumen final: VPC Auto para pruebas rápidas y laboratorios. VPC Personalizada para control, seguridad y producción. Adoptar buenas prácticas de segmentación, firewall y automatización reduce riesgos y costes. Si necesitas apoyo para implementar redes, desplegar VMs, asegurar tu plataforma o añadir capacidades de IA en la nube, Q2BSTUDIO está listo para ayudarte con soluciones integrales.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat