Hello, how could i add a script which runs everytime when i restart network? sript would look like this:
route add default gw 10.3.1.1 eth0
route add default gw 10.3.1.5 eth1
I have to do this because in CentOS network configuration is a little screwed, if i add default gateway to /etc/sysconfig/network then eth1 takes it, not eth0, to make it work well i would have to change route-eth0 and route-eth1 which is complicated. So i added this script to /etc/rc.local but if i restart network gateway is removed, so in order not to have to run rc.local again i would like to add bash script to network restart, how could i do this?