Need to create a route file with that particular interface:
Then add the following line
If you have multiple IP on a single interface, you need to create multiple ifcfg file, then add the route based on that dev
vim /etc/sysconfig/network-scripts/route-eth1:0
10.165.186.102/32 via 10.180.18.1 dev eth1:0 src 10.180.18.34 metric 1
Comments