Static routes for default are ignored on reboot.

Issues related to configuring your network
hunter86_bg
Posts: 2015
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Static routes for default are ignored on reboot.

Post by hunter86_bg » 2020/02/04 20:41:39

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.

Post Reply

Return to “CentOS 8 - Networking Support”