[SlugBug] Routing table question

Bill Best bill.best at commedia.org.uk
Mon Aug 14 15:16:40 BST 2006


hi

i have a server that keeps 'losing' it's routing table configuration 
profile.

the correct routing table is thus:

> [root at server root]# route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
> 192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
> default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

but occasionally these settings will become corrupted with an entry for 
a network/default gateway with the link local address 169.254.0.0

what i would like to be able to do is to automatically update the 
routing table using cron by loading up a text file - something like this 
(but this doesn't work):

route < `cat route.txt`

where route.txt contains the desired routing table.

how can this be done - if at all?

many thanks and best regards

bill


More information about the SlugBug mailing list