This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:two_default_gateways [2021/04/08 15:16] admin |
linux:two_default_gateways [2021/04/08 15:17] (current) admin |
||
---|---|---|---|
Line 116: | Line 116: | ||
</code> | </code> | ||
- | ====== CentOS: Start custom script automatically after network startup ====== | + | ==== CentOS: Start custom script automatically after network startup ==== |
Find the ifup-post under /etc/sysconfig/network-scripts. This scipt is called right after any network interface is brought up online. In this script, you will find the following code snippet toward the end. | Find the ifup-post under /etc/sysconfig/network-scripts. This scipt is called right after any network interface is brought up online. In this script, you will find the following code snippet toward the end. |