Static route not added

Hello Guys..

I am facing this weird problem of static route not added after reboot!!

Following is my route-<interface> file..

[root@SERVER ~]# cat /etc/sysconfig/network-scripts/route-eth0
ADDRESS0=172.31.0.1
NETMASK0=255.255.255.255
GATEWAY0=192.168.208.1
ADDRESS1=172.31.15.2
NETMASK1=255.255.255.255
GATEWAY1=192.168.208.1
ADDRESS2=172.31.0.41
NETMASK2=255.255.255.255
GATEWAY2=192.168.208.1
ADDRESS2=10.27.2.111
NETMASK2=255.255.255.255
GATEWAY2=192.168.208.1
ADDRESS3=10.27.2.112
NETMASK3=255.255.255.255
GATEWAY3=192.168.208.1
[root@SERVER ~]#

after the server was rebooted, following was the routing table...

[root@SERVER ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.27.2.112     192.168.208.1   255.255.255.255 UGH   0      0        0 eth0
172.31.15.2     192.168.208.1   255.255.255.255 UGH   0      0        0 eth0
172.31.0.1      192.168.208.1   255.255.255.255 UGH   0      0        0 eth0
10.27.2.111     192.168.208.1   255.255.255.255 UGH   0      0        0 eth0
192.168.208.0   0.0.0.0         255.255.254.0   U     0      0        0 eth0
10.2.4.0        0.0.0.0         255.255.252.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 eth1
0.0.0.0         10.2.4.1        0.0.0.0         UG    0      0        0 eth1
[root@SERVER ~]# 

As can be seen in output of route command, following route is not added after reboot!!

ADDRESS2=172.31.0.41
NETMASK2=255.255.255.255
GATEWAY2=192.168.208.1

I had to add it manually.. What could be the reason of this static route not being added after reboot?

You have a typo:

ADDRESS2=172.31.0.41
NETMASK2=255.255.255.255
GATEWAY2=192.168.208.1

ADDRESS2=10.27.2.111
NETMASK2=255.255.255.255
GATEWAY2=192.168.208.1

On first sight I should say it's overloaded by the second ADDRESS2.

:eek: OOOopsss.. I wonder why I didn't notice it!!!

Thanks a lot guys for pointing this out...