how to add static route for loopback interface.
I have configured LVS under RHEL5.
I need to configure static route to my VIP.
Now, I used the following command to add route but reboot OS will flush the route.
# route add -host 192.168.11.55 dev lo:0
google always told me how to add static route for certain network via
/etc/sysconfig/network-scripts/route-<device-name>. But I did not found
that for host.
Kindly pls advise.
well you do need to use that file, yes. if you want to add a machine for a single host just use a 32 bit netmask.
Hi, I created the following route-lo:0 file but the static route for lo:0 is not added to route table.
# route add -host 192.168.11.55/mask dev lo:0 add this command on rc.local,
actually this is a way to execute commands on system boot
thank u, the problem is fixed by adding command at /etc/rc.local
|All times are GMT -5. The time now is 03:47 AM.|