- Andreas Bartel
- November 13, 2021
Google Cloud routes define the paths that network traffic takes from a virtual machine (VM) instance to other destinations.
In a VPC network, a route consists of a single destination prefix in CIDR format and a single next hop. When an instance in a VPC network sends a packet, Google Cloud delivers the packet to the route’s next hop if the packet’s destination address is within the route’s destination range.
- Login to google cloud platform portal.
- Click on VPC network.
- Select Routes.
- Click on Create Route.
- Provide the route name.
- Select Default or existing VPC network.
- Provide Destination IP address range.
- Provide the Priority.
- Provide the instance tags and the route applies to all instances with any of these tags, or to all instances in the network if no tags are specified.
- The next hop handles the matching packets for this route. It can be an instance, an IP address or the default internet gateway.
- Click on Create.
- After sometime route is ready then go to route home page.
- New Route is there with the name we provide.
Create a Route using Shell
- Setup a gcloud-cli on your system so click on link http://www.hackerxone.com/blog/how-setup-google-cloud-cligcloud-cli-ubuntu
- At Route page click on equivalent command line.
- Copy & Paste the commands on your terminal.