Create Router to route traffic between machines

Cloud Router enables you to dynamically exchange routes between networks. 

The list of routers is located inside the project, section Networking → Routers

1._______________.png

Router creation 

There are two ways to create a router:

1. Manually from the routers section 

Go to the project, section Networking → Routers and click on Create router.

2.______________________.png

In the appeared window configure a new router:

1.1. Select the network and subnet to configure routing. If necessary, you can add multiple subnets by clicking on Add subnet. For more information about creating and configuring a network and subnet, see the article Networking.

3._________.png

1.2. Activate the Enable SNAT selector if you need access to the external network.

A separate public IP address is announced for a router with access to an external network.

4._SNAT.png

1.3. In the Static routes section, you can specify the routing scheme

Specify the destination prefix and the address of the next hop. To add the next route, click the Add route button.

5.______.png

1.4. Enter a name for the router and click Create router.

6.______________.png

2. Automatically after creating a network 

After creating a network, a new router is being automatically created in the cloud to allow further routing of traffic. 

7.____________.png

For more information about creating and configuring a network and subnet, see the article Networking.

For automatically created routers, you can make the same settings as for manually created routers.

Managing routers. 

To manage routers, open the list of routers: inside the project, section Networking → Routers

To make changes with an existing router, click the selector on the right from the selected router and select the Overview option.

8._Overview.png

In the appearing window, you can find general information about the router: the router ID, whether there is a SNAT for accessing the external network, and the creation date.

9._ID_SNAT_Time.png

In the Subnets section, you can manage the list of subnets added to the router: add new subnets and delete old ones.

10._Subnet_______.png

To edit routes, go to the Static routes tab and click Edit static routes.

11._Edit_static_routes.png

To add a new route, click Add Route and specify the destination prefix and address of the nexthop, or delete an unnecessary route by clicking the Delete button on the right of the route.

12._Add_and_delete_route.png

To save settings, click Save static routes.

Was this article helpful?
Recently viewed articles