image
DEMO: Reserving a Static IP Address with Cloud Shell
Start course
Difficulty
Intermediate
Duration
1h 1m
Students
2267
Ratings
4.6/5
Description

This course has been designed to teach you how to manage networking and compute resources on Google Cloud Platform. The content in this course will help prepare you for the Associate Cloud Engineer exam.

The topics covered within this course include:

  • Adding subnets to a VPC
  • Expanding existing subnets
  • Reserving static addresses via the console and Cloud Shell
  • Managing, configuring, and connecting to VM instances
  • Adding GPUs and installing CUDA libraries
  • Creating and deploying from snapshots and images
  • Working with instance groups

Learning Objectives

  • Learn how to manage networking and compute resources on Google Cloud Platform
  • Prepare for the Google Associate Cloud Engineer Exam

Intended Audience

  • Those who are preparing for the Associate Cloud Engineer exam
  • Those looking to learn more about managing GCP networking and compute features

Prerequisites

To get the most from this course, you should have some exposure to GCP resources, such as VCPs, VM Instances, Cloud Console, and Cloud Shell. However, this is not essential.

 

Transcript

Welcome back. In this lesson, I'm going to demonstrate how to use gcloud to reserve a new static external IP address. It's a short demo, but I wanted to familiarize you with using gcloud for typical management tasks, like reserving IP addresses.

On the screen here, you can see I'm logged into my console. What I'm going to do is click the Cloud Shell icon to launch gcloud. Once I've got my Cloud Shell up, I can use gcloud compute to reserve my address. What I'm going to do here is use the addresses create subcommand and then specify that I'm reserving a regional IP address. So what I'm going to do here is type the command out so you can see what it looks like. We'll start with gcloud, and then we'll go with compute, and then what we're going to do is specify addresses create. Now what I need to do is give my reserved address resource a name. So I'll call it myreservedaddress, and then what I need to do is specify the region I want to deploy this to. So we'll use the --region flag and then we'll specify, I guess, us-central. More specifically, us-central1

Now, since I'm reserving a regional address, I don't need to specify the IP version. If I were specifying a global address, what I would use is the --ip-version-flag here, and then specify either IPv4 or IPv6. Since this is a regional address that we're reserving, the --ip-version flag doesn't work so we'll go ahead and backspace over this. And then what we'll do is hit Enter here. Now, once this command completes, I'm left with the reserved static IP in the uscentral1 region, and if I go back into my VPC here, we can see my reserve address is now listed. It's a static address and it's IPv4. So that is how you reserve a static external IP address using gcloud.

About the Author
Students
90080
Courses
89
Learning Paths
56

Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.

In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.

In his spare time, Tom enjoys camping, fishing, and playing poker.