Static Routes
A static route is a manually configured path that determines how network traffic is sent to a specific destination. Static routes provide fixed routing behavior and give administrators predictable control over traffic flow.
Definition
Unlike dynamic routing, static routes do not change automatically based on network conditions. They are useful when traffic must follow a known path, when a route must override existing route precedence, or when a VPN or replication network needs explicit routing.
Use Cases
| Use case | When to use it |
|---|---|
| Custom routing requirements | Add a static route when multiple routes exist and traffic must take a specific path. |
| Replication network prioritization | Advertise a replica network in the destination environment so it takes precedence over the source environment network. |
| VPN traffic routing | Route traffic through secure tunnels for VPN configurations. |
Note
When multiple routes are available, the oldest environment in the routing table takes precedence unless it is explicitly overridden by a static route.
Step-by-Step Guide
- Log in to Cloud Portal.
- Open Networking.
- Open Static Route.
- Click Create.
- Fill in the route details.
- Review the route.
- Apply the configuration.
| Field | Description |
|---|---|
| Environment | The target environment. |
| VPC | The target VPC. |
| Subnet | The destination subnet. This subnet must be part of an existing cloud subnet in the Subnets page. |
| Next Hop Gateway | The next hop, such as another VM or VPC gateway. |
| Description | Optional free text for notes or comments. |
Best Practices
- Review static routes regularly to keep them aligned with network architecture changes.
- Use descriptive route names to make troubleshooting easier.
- Be mindful of the route precedence rule for the oldest environment when creating or modifying routes.