public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: tetzlav <tetzlav@leipzig.freifunk.net>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@open-mesh.net>
Subject: [B.A.T.M.A.N.] wrong ip rules
Date: Wed, 14 Nov 2007 00:24:29 +0100	[thread overview]
Message-ID: <473A322D.7030302@leipzig.freifunk.net> (raw)

Today I tried batmand 0.3-beta rv791 (on ASUS-WL-500gPremium) and
noticed that batmand set definitly wrong ip rules
or has problems with alias-Interfaces and/or olsrd:

> root@17-3:~# ip addr show eth2
> 4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc prio qlen 1000
>     link/ether 00:90:4b:7d:20:7a brd ff:ff:ff:ff:ff:ff
>     inet 104.61.17.3/8 brd 104.255.255.255 scope global eth2
>     inet 10.61.17.3/24 brd 10.61.17.255 scope global eth2
> root@17-3:~# ip rule
> 0:      from all lookup local
> 6597:   from all lookup main
> 6598:   from all to 104.0.0.0/8 lookup olsr
> 6599:   from 104.0.0.0/8 lookup olsr
> 32766:  from all lookup main
> 32767:  from all lookup default
> root@17-3:~# ip addr add dev eth2 105.61.17.3/8 broadcast + label eth2:bat
> root@17-3:~# ip addr show eth2
> 4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc prio qlen 1000
>     link/ether 00:90:4b:7d:20:7a brd ff:ff:ff:ff:ff:ff
>     inet 104.61.17.3/8 brd 104.255.255.255 scope global eth2
>     inet 10.61.17.3/24 brd 10.61.17.255 scope global eth2
>     inet 105.61.17.3/8 brd 105.255.255.255 scope global eth2:bat
> root@17-3:~# batmand -r2 eth2:bat
> Using interface eth2:bat with address 105.61.17.3 and broadcast
> address 105.255.255.255
> root@17-3:~# ip rule
> 0:      from all lookup local
> 6597:   from all lookup main
> 6598:   from all to 104.0.0.0/8 lookup olsr
> 6599:   from 104.0.0.0/8 lookup olsr
> 6600:   from all to 105.0.0.0/8 lookup 66
> 6699:   from all lookup 65
> 6700:   from all to 105.0.0.0/8 lookup 67
> 6800:   from all iif lo lookup 68
> 6801:   from 127.0.0.0/8 lookup 68
> 6802:   from 104.0.0.0/8 lookup 68
> 6803:   from 104.0.0.0/8 lookup 68
> 6804:   from 192.168.1.0/24 lookup 68
> 32766:  from all lookup main
> 32767:  from all lookup default

batmand delete olsr-rules and set "from 104.0.0.0/8 lookup 68"!?


Regards
tetzlav

                 reply	other threads:[~2007-11-13 23:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=473A322D.7030302@leipzig.freifunk.net \
    --to=tetzlav@leipzig.freifunk.net \
    --cc=b.a.t.m.a.n@open-mesh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox