[Babel-users] Default gateway problem

Juliusz Chroboczek Juliusz.Chroboczek at pps.jussieu.fr
Wed May 21 18:42:30 UTC 2008


> 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



More information about the Babel-users mailing list