How to update network routes?

update files

vim /etc/sysconfig/network-scripts/route-eth0

or in case of old machines

vim /etc/rc.local

Restart the network service

service network restart

When you want to have a active route, without restarting the network, you can use following command. Keep in mind that this will only active till the next reboot/restart.

ip route add via dev eth1