Configuring IPv4 Static Routes in Gaia Clish
Description
Configure, show, and delete IPv4 static routes.
Syntax
|
Note - There are no " |
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} monitored-ip <Monitored IP Address> {on | off} monitored-ip-option {fail-all | fail-any | force-if-symmetry {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. |
|
|
Remote IPv4 address to monitor for the next hop gateway. Monitors IP address(es) configured with the " The next hop gateway becomes usable with respect to reachability of IP address(es) reported from the " |
|
|
Set failure condition and flavor for the configured monitored IP address(es).
|
|
|
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. A next hop gateway with no priority configured is preferred over a next hop gateway 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 make sure the next hop gateway for a static route is working. Gaia Check Point security operating system that combines the strengths of both SecurePlatform and IPSO operating systems. includes in the kernel forwarding table only next hop gateways, which are verified as working. When Ping is enabled, Gaia adds an IPv4 static route 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 Security Gateway that is part of a cluster., when the ClusterXL Virtual IPv4 address is in a different subnet than the IPv4 address of a physical interface. This lets the Cluster Two or more Security Gateways that work together in a redundant configuration - High Availability, or Load Sharing. Member accept static routes on the subnet of the Cluster Virtual IPv4 address. To make sure that the |
gaia> set static-route 192.0.2.0/24 nexthop gateway address 192.0.2.155 on gaia> set static-route 192.0.2.0/24 nexthop gateway address 192.0.2.155 off gaia> set static-route 192.0.2.0/24 nexthop gateway logical eth0 on gaia> set static-route 192.0.2.0/24 off gaia> set static-route 192.0.2.100/32 nexthop blackhole gaia> set static-route 192.0.2.100/32 rank 2 gaia> 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 gaia> |