Creating a static route
In a Yandex BareMetal private network, you can create static routes for network traffic.
Note
To set up static route announcement in Yandex Virtual Private Cloud cloud networks, a private connection with cloud networks must be configured in the VRF.
-
In the management console
, select the folder containing your virtual network segment (VRF). -
Go to BareMetal.
-
In the left-hand panel, select
VRF and in the list that opens, select the VRF you want to create a static route in. In the window that opens:-
In the top-right corner, click
Edit. -
Under Static routes, click Add route.
-
In the Destination prefix field, specify the destination subnet CIDR
.The destination prefix may be
0.0.0.0/0or 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, or192.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.
-
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.
-
Optionally, enable Cloud access to announce the static route to the Yandex Virtual Private Cloud 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 hopaddress, even if this address is in a private BareMetal subnet.
-
-
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.
-
Click Save changes.