How to configuring and adding static routes Gateway version 11
search cancel

How to configuring and adding static routes Gateway version 11

book

Article ID: 271927

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Gateway version 11 

We want to add a static route. We added it via "ip route add".  But it disappears after a restart of the Gateway.

We want the route rules to be persistent in it. What is the best practice for it?

The link below about SSGADMIN has something about adding a static route via nmcli and nmtui. However, we are missing the steps to add a route rule.

What should the syntax of the route line below look like?

Environment

Release : 11.0

Resolution

The nmcli is just a default linux command to do system config .

Please see below a example of the command for adding a static route 

Add static routes to both the 192.168.0.0/24 and 192.168.1.0/24 networks via 10.0.0.1.

Configuring static network routes using nmcli

Set the route using the following command:

# nmcli connection modify eth0 ipv4.routes "192.168.0.0/24 10.0.0.1,192.168.1.0/24 10.0.0.1"

execute the following command line to verify the configuration:

# nmcli connection show eth0