<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [Babel-users] Default gateway problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Thank you for the quick answer. But I still have problem with the default route. If I look to debug messages, I cannot see default route.<BR>
<BR>
In file enclosed are debug messages and my routing table. Any suggestions ?<BR>
<BR>
Robert<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Juliusz Chroboczek [<A HREF="mailto:Juliusz.Chroboczek@pps.jussieu.fr">mailto:Juliusz.Chroboczek@pps.jussieu.fr</A>]<BR>
Sent: Wed 5/21/2008 8:42 PM<BR>
To: Robert Lukan<BR>
Cc: babel-users@lists.alioth.debian.org<BR>
Subject: Re: [Babel-users] Default gateway problem<BR>
<BR>
&gt; I have one problem with babel. I cannot redistribute default gateway<BR>
&gt; with babel. I tried with redistribute local, redistribute ip<BR>
&gt; 0.0.0.0/0 with no success.<BR>
<BR>
Every kernel route is equipped with a number, the route's protocol,<BR>
which is ignored by the kernel and only used by routing daemons to<BR>
decide whether to redistribute the route.<BR>
<BR>
The rule is that routing daemons must not redistribute a root with<BR>
protocol number ``boot'' (3 under Linux), and may redistribute routes<BR>
with other protocol numbers.<BR>
<BR>
So in order to redistribute a route with Babel, you must make sure<BR>
that it has a protocol number other than ``boot''.&nbsp; This means that<BR>
rather than saying<BR>
<BR>
&nbsp; # route add default gw 1.2.3.4<BR>
&nbsp; # ip route add 0.0.0.0/0 via 1.2.3.4<BR>
<BR>
you must say something like<BR>
<BR>
&nbsp; # ip route add 0.0.0.0/0 via 1.2.3.4 proto static<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^^^^^^^^^^^<BR>
<BR>
You may check a route's protocol with the command ``ip route show'':<BR>
<BR>
On my desktop machine:<BR>
<BR>
&nbsp; $ ip route show 0.0.0.0/0<BR>
&nbsp; default via 134.157.168.126 dev eth0<BR>
<BR>
On a Babel router:<BR>
<BR>
&nbsp; $ ip route show 0.0.0.0/0<BR>
&nbsp; default via 192.168.4.1 dev huponomos proto 42 metric 22 onlink<BR>
<BR>
(42 is the protocol number used by Babel.)<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Juliusz<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>