> Source: [sk156812](https://support.checkpoint.com/results/sk/sk156812)

# sk156812 - How to configure static routes using different priorities with the 'ping' option

| Property | Value |
|----------|-------|
| Solution ID | sk156812 |
| Date Created | 2019-07-08 |
| Last Modified | 2025-01-22 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R82.10, R82, R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Solution

In this sample configuration, the plan is to configure two static routes for the destination subnet 192.168.3.0/24 with different next hop IP addresses and different priorities.  

The following is a Clish command example where the priority 1 static route for 192.168.3.0/24 is set to nexthop 192.168.1.100 and the priority 2 static route for 192.168.3.0/24 is set to nexthop 192.168.2.100:  

`set static-route 192.168.3.0/24 nexthop gateway address 192.168.1.100 priority 1 on`

`set static-route 192.168.3.0/24 nexthop gateway address 192.168.2.100 priority 4 on`

`set static-route 192.168.3.0/24 ping on`

`save config`

<br />

Note that configuring the 'ping on' option will enable ping to send periodic ICMP packets to the nexthop Security Gateway IP address. This action makes sure that the connection is alive. If no reply is received, the route is deleted from the routing table.

In this case, when the Security Gateway succeeds pinging to 192.168.1.100, only the route for 192.168.3.0/24 with nexthop 192.168.1.100 is added to the routing table.

When the Security Gateway fails pinging to 192.168.1.100, the route for 192.168.3.0/24 with nexthop 192.168.1.100 is removed from the routing table and the route for 192.168.3.0/24 with nexthop 192.168.2.100 is added to the routing table.

When the Security Gateway succeeds pinging to 192.168.1.100 again, the route for 192.168.3.0/24 with nexthop 192.168.2.100 is removed from the routing table and the route for 192.168.3.0/24 with nexthop 192.168.1.100 is added back to the routing table.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
