tag:blogger.com,1999:blog-1479824033506250875.post5422048659766756982..comments2022-04-04T02:04:07.405-07:00Comments on What I Know About Linux That You May Not Know: How to add static route through a virtual (alias) interface in RHEL5?Sadique Puthenhttp://www.blogger.com/profile/15174000939443129488noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1479824033506250875.post-34976604572433659072012-11-29T01:51:05.075-08:002012-11-29T01:51:05.075-08:00Oliver, I think you have everything configured cor...Oliver, I think you have everything configured correctly.<br /><br />Follow "How to verify this is working as expected?" to verify it's configured properly.Sadique Puthenhttps://www.blogger.com/profile/15174000939443129488noreply@blogger.comtag:blogger.com,1999:blog-1479824033506250875.post-72562158922877692352012-11-28T13:48:36.904-08:002012-11-28T13:48:36.904-08:00Well I tried everything and it still doesn't w...Well I tried everything and it still doesn't work<br />Im using RHEL6 ( on VMWare ESX4 ) and here is my config<br />route-eth0:1 :<br />10.133.141.223/32 dev eth0:1 src 10.133.142.228<br /><br />ifcfg-eth0:1 :<br />DEVICE=eth0:1<br />HWADDR=00:0C:29:3D:CB:A8<br />MTU=1500<br />NM_CONTROLLED=no<br />ONBOOT=yes<br />BOOTPROTO=none<br />IPADDR=10.133.142.228<br />NETWORK=10.133.142.0<br />SRCADDR=10.133.142.228<br />NETMASK=255.255.255.0<br />NAME=eth0:1<br />TYPE=Ethernet<br />IPV6INIT=no<br />USERCTL=no<br />DHCPCLASS=""<br /><br />when I do ip route the route is still fix to eth0<br /><br />ip route<br />10.133.141.223 dev eth0 scope link src 10.133.142.228<br /><br />I read maybe it has to do with some filter on RHEL ? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1479824033506250875.post-78487549014418492542012-05-09T22:57:58.282-07:002012-05-09T22:57:58.282-07:00What version of centos5 are you using?
What is th...What version of centos5 are you using?<br /><br />What is the output of "cat route-eth1"?Sadique Puthenhttps://www.blogger.com/profile/15174000939443129488noreply@blogger.comtag:blogger.com,1999:blog-1479824033506250875.post-91895198934123135392012-05-09T11:16:15.903-07:002012-05-09T11:16:15.903-07:00Sorry to comment on a pretty old post, but this is...Sorry to comment on a pretty old post, but this is exactly what I'd like to do (CentOS 5) to make the route persistent. But whenever I add the "src x.x.x.x" to the route-eth1 file, I receive "RTNETLINK answers: invalid argument".<br /><br />Using "ip route add" allows me to add the src parameter no problem and all works well. I could write a startup script to do this, but I'm confused what would be blocking this in the route-eth1 file. Any ideas?Brenthttps://www.blogger.com/profile/02626419981138452897noreply@blogger.com