[Yandex Cloud documentation](../../index.md) > [Yandex BareMetal](../index.md) > [Step-by-step guides](index.md) > Network > Creating a static route

# Creating a static route

In a Yandex BareMetal private network, you can create [static routes](../concepts/private-network.md#static-routes) for network traffic.

{% note info %}

To set up static route announcement in Yandex Virtual Private Cloud [cloud networks](../../vpc/concepts/network.md), a [private connection](../concepts/private-network.md#private-connection-to-vpc) with cloud networks must be configured in the VRF.

{% endnote %}

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder containing your [virtual network segment (VRF)](../concepts/private-network.md#vrf-segment).
  1. Navigate to **BareMetal**.
  1. In the left-hand panel, select ![vector-square](../../_assets/console-icons/vector-square.svg) **VRF** and in the list that opens, select the VRF you want to create a static route in. In the window that opens:

      1. In the top-right corner, click ![pencil](../../_assets/console-icons/pencil.svg) **Edit**.
      1. Under **Static routes**, click **Add route**.
      1. In the **Destination prefix** field, specify the destination subnet [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).

          The destination prefix may be `0.0.0.0/0` or must be a valid range of private IPv4 addresses which belong to one of these ranges: `10.0.0.0/8`, `172.16.0.0/12`, or `192.168.0.0/16`.

          Note that the destination prefix cannot match or overlap with the IP address range of a private subnet or another static route inside this VRF.
      1. In the **Next hop** field, specify the the next hop address for traffic bound to addresses within the destination prefix.

          This must be an IPv4 address belonging to a private subnet range within this VRF.
      1. Optionally, enable **Cloud access** to announce the static route to the Yandex Virtual Private Cloud [subnet](../../vpc/concepts/network.md#subnet).

          In this case, the network traffic in Virtual Private Cloud subnets intended for addresses from the static route destination prefix will go to the `Next hop` address, even if this address is in a private BareMetal subnet.

  1. If required, click **Add route** to add more static routes to the VRF.

      The number of static routes in a cloud is limited by [quotas](../concepts/limits.md#baremetal-quotas).
  1. Click **Save changes**.

{% endlist %}

#### See also {#see-also}

* [Static routes](../concepts/private-network.md#static-routes)