Configuring IPv4 Static Routes in Gaia Clish
Description
Configure, show, and delete IPv4 static routes.
Syntax

set static-route default comment {"Text" | off} nexthop gateway address <IPv4 Address of Next Hop Gateway> [priority <Priority>] {on | off} logical <Name of Local Interface> [priority <Priority>] {on | off} blackhole reject ping {on | off} rank <Rank> scopelocal {on | off} |

set static-route <Destination IPv4 Address> comment {"Text" | off} nexthop gateway address <IPv4 Address of Next Hop Gateway> {on | off} [priority <Priority>] logical <Name of Local Interface> {on | off} [priority <Priority>] blackhole reject off ping {on | off} rank <Rank> scopelocal {on | off} |

show route static all |

set static-route default off |

set static-route <Destination IPv4 Address> off |

|
|
|
Important - After you add, configure, or delete features, run the " |
Parameters

Parameter |
Description |
|
---|---|---|
|
Defines the default static IPv4 route. |
|
|
Specifies the IPv4 address of destination host or network using the CIDR notation (IPv4 Address / Mask Length). Example: You can use the |
|
|
Defines of removes the optional comment for the static route.
|
|
|
Defines the next hop path, which can be a |
|
|
Specifies that this next hop accepts and sends packets to the specified destination. |
|
|
Specifies that this next hop drops packets, but does not send ICMP unreachable packet to the traffic source. |
|
|
Specifies that this next hop drops packets and sends ICMP unreachable packet to the traffic source. |
|
|
Specifies the IPv4 address of the next hop gateway. |
|
|
Identifies the next hop gateway by the name of the local interface that connects to it. Use this option only if the next hop gateway has an unnumbered interface. |
|
|
Defines which gateway to select as the next hop when multiple gateways are configured. The lower the priority, the higher the preference - priority 1 means the highest preference, and priority 8 means the lowest preference. You can define two or more paths with the same priority to specify a backup path with equal priority. Gateways with no priority configured are preferred over gateways with priority configured. |
|
|
Adds the specified next hop gateway. |
|
|
Deletes the specified next hop gateway. If you specify a next hop gateway, only the specified path is deleted. If you do not specify a next hop gateway, the route and all related paths are deleted. |
|
|
Removes the static route. |
|
|
Enables ( The Ping feature sends ICMP Echo Requests to verify that the next hop gateway for a static route is working. Only next hop gateways, which are verified as working are included in the kernel forwarding table. When Ping is enabled, an IPv4 static route is added to the kernel forwarding table only after at least one next hop gateway is reachable. To configure the ping behavior, run:
|
|
|
Selects a route, if there are many routes to a destination that use different routing protocols. The route with the lowest rank value is selected. Use the Accepted values are: In addition, see this command: " |
|
|
Defines a static route with a link-local scope. Use this setting on a Cluster Member This lets the Cluster To make sure that the |

[Global] MyChassis-ch01-01 > set static-route 192.0.2.0/24 nexthop gateway address 192.0.2.155 on [Global] MyChassis-ch01-01 > set static-route 192.0.2.0/24 nexthop gateway address 192.0.2.155 off [Global] MyChassis-ch01-01 > set static-route 192.0.2.0/24 nexthop gateway logical eth0 on [Global] MyChassis-ch01-01 > set static-route 192.0.2.0/24 off [Global] MyChassis-ch01-01 > set static-route 192.0.2.100/32 nexthop blackhole [Global] MyChassis-ch01-01 > set static-route 192.0.2.100/32 rank 2 [Global] MyChassis-ch01-01 > show route static Codes: C - Connected, S - Static, R - RIP, B - BGP, O - OSPF IntraArea (IA - InterArea, E - External, N - NSSA) A - Aggregate, K - Kernel Remnant, H - Hidden, P - Suppressed S 0.0.0.0/0 via 192.168.3.1, eth0, cost 0, age 164115 S 192.0.2.100 is a blackhole route S 192.0.2.240 is a reject route [Global] MyChassis-ch01-01 > |