Description

How to add static route in Junos Space version 24.1 and above

Solution

use nmcli utility to configure static route.

 

Example:

nmcli con edit ethernet-eth0
set ipv4.routes 10.11.11.0/24 10.219.86.3
save persistent
quit
systemctl restart NetworkManager

Verify if the route is added:

[root@space-005056a9db84 ~]# ip r
default via 10.219.86.1 dev eth0 proto static metric 100 
10.11.11.0/24 via 10.219.86.3 dev eth0 proto static metric 100 
10.219.86.0/24 dev eth0 proto kernel scope link src 10.219.86.177 metric 100 

If you are unable to find the interface name type the cmd "nmcli"

Modification History

2025-03-04 : Article Created