[Babel-users] Default gateway problem

Robert Lukan Robert.Lukan at ltfe.org
Thu May 22 06:35:55 UTC 2008


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.

In file enclosed are debug messages and my routing table. Any suggestions ?

Robert


-----Original Message-----
From: Juliusz Chroboczek [mailto:Juliusz.Chroboczek at pps.jussieu.fr]
Sent: Wed 5/21/2008 8:42 PM
To: Robert Lukan
Cc: babel-users at lists.alioth.debian.org
Subject: Re: [Babel-users] Default gateway problem
 
> I have one problem with babel. I cannot redistribute default gateway
> with babel. I tried with redistribute local, redistribute ip
> 0.0.0.0/0 with no success.

Every kernel route is equipped with a number, the route's protocol,
which is ignored by the kernel and only used by routing daemons to
decide whether to redistribute the route.

The rule is that routing daemons must not redistribute a root with
protocol number ``boot'' (3 under Linux), and may redistribute routes
with other protocol numbers.

So in order to redistribute a route with Babel, you must make sure
that it has a protocol number other than ``boot''.  This means that
rather than saying

  # route add default gw 1.2.3.4
  # ip route add 0.0.0.0/0 via 1.2.3.4

you must say something like

  # ip route add 0.0.0.0/0 via 1.2.3.4 proto static
                                       ^^^^^^^^^^^^

You may check a route's protocol with the command ``ip route show'':

On my desktop machine:

  $ ip route show 0.0.0.0/0
  default via 134.157.168.126 dev eth0

On a Babel router:

  $ ip route show 0.0.0.0/0
  default via 192.168.4.1 dev huponomos proto 42 metric 22 onlink

(42 is the protocol number used by Babel.)

                                        Juliusz



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/babel-users/attachments/20080522/0e94ac1e/attachment-0001.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: default_gateway_problem.txt
Url: http://lists.alioth.debian.org/pipermail/babel-users/attachments/20080522/0e94ac1e/attachment-0001.txt 


More information about the Babel-users mailing list