Page 2 of 2

Re: Static routes for default are ignored on reboot.

Posted: 2020/02/04 20:41:39
by hunter86_bg
Another approach was listed at viewtopic.php?t=68899
You can try to create your own script at /etc/NetworkManager/dispatcher.d/

With something like:

Code: Select all

!!/bin/bash
if [ ${CONNECTION_UUID}==1024ed04-dd45-45bf-99a9-bad8f04421ae ] 
then 
/usr/sbin/ip route add default via 172.16.128.1 src 172.31.4.101
fi
Note: replace the UUID with the actual value. I guess you can script that.