Re: [Babel-users] babel jumps my default route

2012-08-02 Thread Antoine Beaupré
I forgot, here's my whole babeld.conf on roadkiller:

redistribute metric 128
in ip 0.0.0.0/0 le 0 deny
in ip 0.0.0.0/32 le 0 deny

The other nodes have just the first line:

redistribute metric 128

... but I do not want to assume I control the other nodes.

A.

-- 
The problem is not a lack of highly educated workers, the problem is a
lack of highly educated workers willing to work for the minimum wage or
lower in the U.S. Costs are driving outsourcing, not the quality of
American schools.   - Scott Kirwin, IT Professionals Association


pgpR9rdiekCel.pgp
Description: PGP signature
___
Babel-users mailing list
Babel-users@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Re: [Babel-users] babel jumps my default route

2012-08-02 Thread Juliusz Chroboczek
 in ip 0.0.0.0/0 le 0 deny

I've just checked again, and it works just fine -- it rejects the
default route.

Are you sure that the babeld.conf file is being read (it's in /etc/)?
And that the spurious route is not being installed by DHCP or something
else?

-- Juliusz


___
Babel-users mailing list
Babel-users@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users


Re: [Babel-users] babel jumps my default route

2012-08-02 Thread Antoine Beaupré
On 2012-08-02, Juliusz Chroboczek wrote:
 in ip 0.0.0.0/0 le 0 deny

 I've just checked again, and it works just fine -- it rejects the
 default route.

 Are you sure that the babeld.conf file is being read (it's in /etc/)?

I am not sure. It is in /etc.

 And that the spurious route is not being installed by DHCP or something
 else?

I am sure it is not installed by a DHCP client - there is no such thing
running on roadkiller. There's the mpd4 PPPoE daemon running, but I
strongly doubt it's in cause, as it's *his* route that gets overwritten.

I also note that the default route has babel's markings on it:

DestinationGatewayFlagsRefs  Use  Netif Expire
default172.16.1.1 UG2  1838   521393vr2

The 2 is the mark of RTF_PROTO2 flag on that route.

Also, if I stop babel and restore the default route, it doesn't come
back, until I start babel and wait for a few minutes again.

The strange thing is that the default route is not listed in babeld
-d1...

A.

-- 
La démocratie réelle se définit d'abord et avant tout par la
participation massive des citoyens à la gestion des affaires de la cité.
Elle est directe et participative. Elle trouve son expression la plus
authentique dans l'assemblée populaire et le dialogue permanent sur
l'organisation de la vie en commun.  - De la servitude moderne


pgpLALyCbF5sv.pgp
Description: PGP signature
___
Babel-users mailing list
Babel-users@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Re: [Babel-users] babel jumps my default route

2012-08-02 Thread Antoine Beaupré
I noticed that the default route problem started to happen when I
reverted the RTF_PROTO2 patch. Running without the patch: no such
problem. Of course, reverting the patch brings me back to the point
where the FreeBSD node announces the mesh's routes as itself's again and
basically breaks the whole mesh.

What follows is a bunch of paste of debug data that you asked on IRC.


With the PROTO2 patch reverted


I start with the RTF_PROTO2 patch reverted (ie. that we do install
routes with the PROTO2 flag). This makes babel overwrite the default
route.

Here is the output of babeld -d1 when it installs the evil default route:

My id 00:00:24:ff:fe:cc:93:46 seqno 59203
Neighbour fe80::21c:10ff:fe22:2ac dev vr2 reach f3f0 rxcost 96 txcost 256 chan 
-2.
fd64:2c08:9fa7:1::1/128 metric 0 (exported)
172.16.0.1/32 metric 0 (exported)
192.168.2.1/32 metric 0 (exported)
192.168.0.1/32 metric 0 (exported)
2001:1928:1:9::/128 metric 0 (exported)
fd64:2c08:9fa7::1/128 metric 0 (exported)
2001:1928:0:::1b/128 metric 0 (exported)
192.168.100.3/32 metric 0 (exported)
72.0.72.144/32 metric 0 (exported)
0.0.0.0/0 metric 128 (exported)
66.96.31.6/32 metric 128 (exported)
192.168.0.0/24 metric 128 (exported)
192.168.2.0/24 metric 128 (exported)
192.168.100.0/24 metric 128 (exported)
::/4 metric 128 (exported)
2001:1928:0:::1a/128 metric 128 (exported)
2001:1928:1:9::/64 metric 128 (exported)
fd64:2c08:9fa7::/48 metric 128 (exported)
172.16.0.0/12 metric 384 refmetric 128 id 02:1c:10:ff:fe:22:02:ac seqno 62820 
age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac nexthop 172.16.1.1 (installed)
172.16.1.1/32 metric 256 refmetric 0 id 02:1c:10:ff:fe:22:02:ac seqno 62820 age 
8 via vr2 neigh fe80::21c:10ff:fe22:2ac nexthop 172.16.1.1 (installed)
192.168.4.0/24 metric 384 refmetric 128 id 02:1c:10:ff:fe:22:02:ac seqno 62820 
age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac nexthop 172.16.1.1 (installed)
192.168.4.1/32 metric 256 refmetric 0 id 02:1c:10:ff:fe:22:02:ac seqno 62820 
age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac nexthop 172.16.1.1 (installed)
fd64:2c08:9fa7:1::/64 metric 384 refmetric 128 id 02:1c:10:ff:fe:22:02:ac seqno 
62820 age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac (installed)
fd64:2c08:9fa7:1::2/128 metric 256 refmetric 0 id 02:1c:10:ff:fe:22:02:ac seqno 
62820 age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac (installed)
fd64:2c08:9fa7:2::/64 metric 384 refmetric 128 id 02:1c:10:ff:fe:22:02:ac seqno 
62820 age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac (installed)
fd64:2c08:9fa7:2::1/128 metric 256 refmetric 0 id 02:1c:10:ff:fe:22:02:ac seqno 
62820 age 8 via vr2 neigh fe80::21c:10ff:fe22:2ac (installed)

Notice the absence of an actual installed default route.

Here's netstat -rn:
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default172.16.1.1 UG218 3124vr2
66.96.31.6 link#9 UH  00ng0
72.0.72.144link#9 UHS 0  141lo0
127.0.0.1  link#5 UH  049868lo0
172.16.0.0/12  172.16.1.1 UG2 04vr2
172.16.0.1 link#3 UHS 0   58lo0
172.16.1.1 00:00:24:cc:93:46  UH2 2   67vr2
192.168.0.0/24 link#6 U   3 230036029 bridge
192.168.0.1link#6 UHS 0   63lo0
192.168.2.0/24 link#4 U   0 13069574vr3
192.168.2.1link#4 UHS 0 2833lo0
192.168.4.0/24 172.16.1.1 UG2 00vr2
192.168.4.1172.16.1.1 UGH200vr2
192.168.100.0/24   link#10U   0   22   tap0
192.168.100.3  link#10UHS 00lo0

Internet6:
Destination   Gateway   Flags  
Netif Expire
::/96 ::1   UGRSlo0 
=
default   2001:1928:0:::1a  UGSgif0
::1   fe80::21c:10ff:fe22:2ac%vr2   UGH2vr2
:::0.0.0.0/96 ::1   UGRSlo0
2001:1928:0:::1a  2001:1928:0:::1b  UH gif0
2001:1928:1:9::   link#6UHS lo0 
=
2001:1928:1:9::/64link#6U   bridge0
fd64:2c08:9fa7::/48   link#3U   vr2
fd64:2c08:9fa7::1 link#6UHS lo0
fd64:2c08:9fa7:1::/64 fe80::21c:10ff:fe22:2ac%vr2   UG2 vr2
fd64:2c08:9fa7:1::1   link#3UHS lo0
fd64:2c08:9fa7:1::2