You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/vpc/how-to/manage-routing.mdx
+90-7Lines changed: 90 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ content:
7
7
paragraph: Learn how to manage routing in Scaleway Virtual Private Cloud (VPC). Configure custom routes to control traffic flow and optimize network performance.
Routing is used to manage and control the flow of traffic within a VPC. It tells the VPC where to send traffic trying to get to a specific destination IP address. Notably, it allows traffic to be automatically routed between resources attached to different Private Networks within the VPC, using their [private IP addresses](/vpc/how-to/attach-resources-to-pn/#how-to-view-the-resources-ip-address). You can also create your own custom routes.
16
+
Routing is used to manage and control the flow of traffic within a VPC. It tells the VPC where to send traffic trying to get to a specific destination IP address. Notably, it allows traffic to be automatically routed between resources attached to different Private Networks within the VPC, as well as along user-created custom routes.
17
17
18
18
Read more about the VPC routing feature, including detailed explanations, usage considerations, limitations and best practices in our [dedicated reference content](/vpc/reference-content/understanding-routing/).
19
19
@@ -39,18 +39,47 @@ To activate routing on a pre-existing VPC, follow these steps:
39
39
40
40
Routing is activated on the VPC.
41
41
42
+
## How to update routing behavior
43
+
44
+
If you created your VPC before TODODATE, you must manually update its routing behavior in order to get the following capabilities:
45
+
46
+
- Advertisement of custom routes across the entire VPC as standard.
47
+
- Option to enable each Private Network in the VPC to receive default route advertisements not only from their locally attached Public Gateways, but from other Public Gateways (or default custom routes) attached to different Private Networks throughout the whole VPC.
48
+
49
+
For more information on these new routing behaviors, see our [detailed documentation](TODO).
50
+
51
+
Updating routing behavior is irreversible: once updated, you cannot revert. However, [Network ACLs](/vpc/reference-content/undestanding-nacls) are configurable via the API to let you finely control and restrict routes within your VPC as necessary.
52
+
53
+
Follow the steps below to update routing behavior for a given VPC:
54
+
55
+
1. Click **VPC** in the **Network** section of the [Scaleway console](https://console.scaleway.com) side menu. The list of your VPCs displays.
56
+
57
+
2. Click **Update** in the **Routing** column of the VPC you want to update.
58
+
59
+
A three-step wizard displays, reiterating and reminding you of the changes to routing behavior.
60
+
61
+
3. On page 1 of the wizard, read the recap of the changes to routing behavior, and click **Next**.
62
+
63
+
4. On page 2 of the wizard, read the reminder of how these changes may impact your existing setup, and click **Next**.
64
+
65
+
5. On page 3 of the wizard, read the explanation that updating will entail no downtime, though changes to routes may take up to 30 minutes to fully propagate. Then type **UPDATE** in the box and click **Confirm**.
66
+
67
+
Your VPC's routing behavior is updated, and you are directed to its routing table. Custom routes will now be scoped to the entire VPC, and you can use the **Manage default routes** button if you want to select Private Networks to receive default routes from throughout the VPC.
68
+
42
69
## How to generate a managed route
43
70
44
-
Two types of auto-generated routes exist:
71
+
Two types of auto-generated routes exist for VPCs:
45
72
46
73
-**Local subnet route**: Generated when you create a Private Network in a VPC. Allows traffic to be routed between different Private Networks in the VPC.
47
74
-**Default route to internet**: Generated when you attach a Public Gateway to a Private Network in the VPC, and set it to advertise a [default route](/public-gateways/concepts/#default-route). Allows traffic to be routed to addresses outside the VPC (i.e. the public internet) via the gateway.
48
75
49
76
<Messagetype="note">
50
-
Public Gateways remain scoped to the Private Network(s) to which they are attached. They do not advertise the default route on other Private Networks in the VPC. For example, an Instance attached to Private Network A will not be able to access the internet via a Public Gateway in Private Network B.
77
+
By default, Public Gateways remain scoped to the Private Network(s) to which they are attached. They do not, as standard, advertise the default route on other Private Networks in the VPC.
78
+
79
+
However, each Private Network can opt in to receive default route advertisements from across the entire VPC, rather than only from locally attached gateways. This allows them to find a route to the internet even if there is no Public Gateway or default custom route on their own Private Network. See our [dedicated documentation](TODO) for full details.
51
80
</Message>
52
81
53
-
You cannot edit or delete managed routes, as their lifecycle is fully managed by Scaleway. The route will be automatically deleted for you when you delete the Private Network or Public Gateway that it concerns.
82
+
You cannot delete managed routes, as their lifecycle is fully managed by Scaleway. The route will be automatically deleted for you when you delete the Private Network or Public Gateway that it concerns.
54
83
55
84
## How to access and read the route table
56
85
@@ -74,7 +103,53 @@ Your VPC's **route table** can be found in its **Routing** tab. The route table
74
103
75
104
For help with understanding the route table and how to read it, [refer to our documentation about route tables](/vpc/reference-content/understanding-routing/#route-table).
76
105
77
-
### How to view VPC routes in IPV6
106
+
## How to manage default route scope
107
+
108
+
If your VPC is using [up-to-date routing behavior](#how-to-update-routing-behavior), you can enable each Private Network to receive default route advertisements not only from their locally attached Public Gateways, but also from throughout the VPC.
109
+
110
+
This means that the Private Network will receive route advertisements from:
111
+
- All locally attached Public Gateway advertising a default route
112
+
- All Public Gateways attached to other Private Networks in the VPC advertising default routes
113
+
- All custom routes with a destination of `0.0.0.0/0`.
114
+
115
+
Each Private Network must individually opt in to receive all these default routes. This can be done when creating a Private Network, or later, from each Private Network's **Settings** tab, or from the VPC's **Routing** tab.
116
+
117
+
<Tabsid="pn-settings">
118
+
<TabsTablabel="via Private Network Settings">
119
+
<br />
120
+
1. Click **VPC** in the **Network** section of the Scaleway console side menu. A list of your VPCs displays.
121
+
122
+
2. Click the VPC containing the Private Network whose settings you want to update. A list of Private Networks in this VPC displays.
123
+
124
+
3. Click the Private Network whose settings you want to update, then click the **Settings** tab.
125
+
126
+
4. In the **Receive all default routes** panel, slide the toggle <Iconname="toggle" /> to the **on** position.
127
+
128
+
This Private Network will now receive default route advertisements from throughout the VPC. It may take up to 30 minutes for routes to propagate to all resources. You can toggle this behavior off at any time.
129
+
130
+
</TabsTab>
131
+
<TabsTablabel="via VPC Routing Tab">
132
+
<br />
133
+
1. Click **VPC** in the **Network** section of the Scaleway console side menu. A list of your VPCs displays.
134
+
135
+
2. Click the VPC who default route management you want to update, then click the **Routing** tab.
136
+
137
+
3. Click the **Manage default routes** button.
138
+
139
+
A screen displays, showing a list of all the Private Networks in your VPC.
140
+
141
+
The **Local default route** column shows whether or not a default route is already advertised locally in the Private Network via an attached Public Gateway or custom route.
142
+
143
+
4. Click the checkbox next to each Private Network that you want to receive all default routes from throughout the VPC.
144
+
145
+
5. Click **Apply scope** when finished.
146
+
147
+
The selected Private Networks will now receive default route advertisements from throughout the VPC. It may take up to 30 minutes for routes to propagate to all resources. You can change default route scope settings at any time.
148
+
149
+
</TabsTab>
150
+
</Tabs>
151
+
152
+
### How to view VPC routes in IPv6
78
153
79
154
Scaleway VPC routing supports both IPv4 and IPv6 protocols. Managed routes to Private Networks are simultaneously generated for both IPV4 and IPV6, and both are added to the route table. Use the toggle above the route table to switch from the default view of **IPV4** routes to a view of **IPV6** routes.
80
155
@@ -87,7 +162,9 @@ Each VPC has auto-generated, managed routes to local subnets and Public Gateways
87
162
For example, you may wish to route all traffic for a certain private IP range to an Instance hosting a manually configured VPN tunnel, allowing secure connection to a corresponding subnet at the other end of the tunnel.
88
163
89
164
<Messagetype="note">
90
-
Custom routes are scoped to the Private Network(s) of the "next hop" resource. Their routes are not propagated to other Private Networks in the VPC. In the scenario mentioned above of routing traffic towards a VPN tunnel, the origin of the packet must be in the same Private Network as the resource hosting the VPN.
165
+
The scope of custom routes depends on whether your VPC is using up-to-date routing behavior:
166
+
- If you created your VPC after TODODATE, or have [manually updated its routing behavior](#how-to-update-routing-behavior), custom routes are advertised across the entire VPC.
167
+
- Otherwise, custom routes are scoped only to the Private Network(s) of the "next hop" resource and not advertised to other Private Networks in the VPC. In this case, for the scenario mentioned above of routing traffic towards a VPN tunnel, the origin of the packet must be in the same Private Network as the resource hosting the VPN.
91
168
</Message>
92
169
93
170
Follow the steps below to define a custom route:
@@ -108,6 +185,12 @@ Follow the steps below to define a custom route:
108
185
109
186
7. Enter a **destination** for the route. The VPC will apply the route to all traffic with a matching destination IP. You must enter an IPv4 or IPv6 CIDR range with a subnet mask, e.g. `192.168.1.0/24`. For a single IP address, use the `/32` mask for IPv4.
110
187
188
+
<Messagetype="note">
189
+
If your VPC has [up-to-date routing behavior](#how-to-update-routing-behavior) and you enter a destination of `0.0.0.0/0`, this custom route is treated in the same way as a **default route** advertised by a Public Gateway.
190
+
- Its route will be advertised locally on the 'next hop' resource's Private Network.
191
+
- Other Private Networks who have opted in to receive default routes from throughout the VPC will also receive this route.
192
+
</Message>
193
+
111
194
8. Enter a **next hop** for the route. The VPC will route traffic for the destination IP to the resource designated as next hop.
112
195
- Select the Private Network which the next hop resource is attached to.
113
196
- Select a resource type: **Instance**, **Public Gateway** or **Elastic Metal**. Routing is not yet compatible with Managed Databases, nor with other types of Scaleway resources which are not integrated with VPC.
0 commit comments