clusters nodes os netplan-additions ethernets routes

Configures netplan routes. This command defines the standard static routes for an interface. It is mandatory to specify values for to and via. See https://netplan.io/reference#routing.

Privilege Level

Security Administrator, Administrator

Command Mode

Exec > Global Configuration

Syntax

routes to destination_address via gateway_address from source_ip_address metric metric_value 

to destination_address

Specify the destination address. Must be a string in 'x.x.x.x/x' or 'x.x.x.x' format.

Must be a string.

via gateway_address

Specify the gateway address. Must be a string in 'x.x.x.x/x' or 'x.x.x.x' format.

Must be a string.

from source_ip_address

Specify the source IP address going through the route.

Must be a string.

metric metric_value

Specify the relative priority of the route.

Must be a string.

Usage Guidelines

Use this command to configure netplan routes.