[SlugBug] Routing table question
Bill Best
bill.best at commedia.org.uk
Mon Aug 14 16:09:13 BST 2006
hi all
to clarify my last message - as i have been contacted off-list about
this - i am not so worried about the 169.254.*.* link local network
address popping up in the routing table as that is not a show stopper.
unfortuantely i don't have an incorrect routing table to show the
precise problem but i occasionally get a default gateway of 192.168.0.5
showing (i don't know why).
occasionally i have been able to correct the routing table using this
string of commands:
> route del default gw 192.168.0.5 netmask 0.0.0.0 dev eth1 && route del -net 169.254.0.0 netmask 255.255.0.0 dev eth1 && route add default gw 192.168.1.1 netmask 0.0.0.0 dev eth0 && route
but it doesn't always work so i cannot set this as a cron job. ideally
i'd like to just copy a working route table into live and not have to
think about it any more - can this be done?
many thanks and best regards
bill
Bill Best wrote:
> 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
> _______________________________________________
> SlugBug mailing list
> SlugBug at email-lists.org
> https://www.email-lists.org/mailman/listinfo/slugbug
More information about the SlugBug
mailing list