How to Create Routes on Google Cloud Platform

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.

 

Fig 1

 

  • Click on Create Route.

 

Fig 2

 

  • 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.

 

Fig. 3

 

  • After sometime route is ready then go to route home page.
  • New Route is there with the name we provide.

 

Fig. 6

 

 

Create a Route using Shell

 

Fig. 5

 

Leave a Reply