[Babel-users] how to distribute network routes in babeld?
Dave Taht
d at teklibre.org
Thu Jan 14 16:39:25 UTC 2010
I have setup a test network running babeld with 4 machines on it. For
purposes of this discussion, however, I only need to talk to two. One is
x86, the other is arm (I've also tried this x86 to x86). The x86 is
ubuntu 9.04, the other is debian lenny... My core problem is that I
don't ever get network (eg, non /32 or non /128) routes distributed.
I've tried all sorts of variants of the conf file and it's evident that
I just don't understand something major....
If I run without anything in the conf file I get lots and lots of /128
and /32 routes.
A secondary problem is that although failover works between any given
network and another, fairly fast (less than 1 minute), a better route
never seems to get installed when the other link comes back up. My
thought though is that for wired failures a retraction should be issued
more rapidly than that, and the link should change to the other route in
x amount of time.
Is there some relation to rxcost to time?
I'm running babeld as of darcs head a week or two back.
The test machines are connected via 3 interfaces: Gige, 100mbit, and
wireless.
192.168.6.x/24 wired 100Mbit
192.168.7.x/24 wired 1000Mbit
192.168.8.x/24 wireless
The configuration is as follows. In this configuration the only route I
get is the one to the 10 network.
Do I need to have link-local stuff in here? If I leave this running and
just change it to redistribute local allow, it works (as it should), but
it's all host (/32 /128) routes..... I rip out the eq to no effect...
Both systems are synced to ntp to a close approximation of perfect.
Buddy: d at buddy:~$ cat /etc/babeld.conf
interface wlan0 wired false
# GigE
interface eth0 wired true rxcost 95 link-quality true
# 100Mbit
interface eth1 wired true rxcost 96 link-quality true
redistribute local ip 192.160.7.0/24 eq 24 metric 128
redistribute local ip 192.160.6.0/24 eq 24 metric 128
redistribute local ip 192.160.8.0/24 eq 24 metric 128
redistribute local ip 2001:470:b9d7:f::/64 eq 64 metric 128
redistribute local ip 2001:470:b9d7::/64 eq 64 metric 128
redistribute local ip 2001:470:b9d7:e::/64 eq 64 metric 128
redistribute local ip 2000::/3 le 3 metric 128
redistribute local deny
d at buddy:~$ ip addr # loopback edited out
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:01:2e:27:4c:36 brd ff:ff:ff:ff:ff:ff
inet 192.168.7.42/24 brd 192.168.7.255 scope global eth0
inet6 2001:470:b9d7:0:201:2eff:fe27:4c36/64 scope global deprecated
dynamic
valid_lft 38255sec preferred_lft 0sec
inet6 fe80::201:2eff:fe27:4c36/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:24:23:09:44:ef brd ff:ff:ff:ff:ff:ff
inet 192.168.8.1/24 brd 192.168.8.255 scope global wlan0
inet6 fe80::224:23ff:fe09:44ef/64 scope link
valid_lft forever preferred_lft forever
4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:1a:70:8f:d5:fc brd ff:ff:ff:ff:ff:ff
inet 192.168.6.1/24 brd 192.168.6.255 scope global eth1
inet6 2001:470:b9d7:e::1/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::21a:70ff:fe8f:d5fc/64 scope link
valid_lft forever preferred_lft forever
jaco:~# cat /etc/babeld.conf
interface eth0 wired true rxcost 95 link-quality true
interface eth1 wired true rxcost 96 link-quality true
interface wlan0 wired false
redistribute local ip 192.160.6.0/24 eq 24 metric 128
redistribute local ip 192.160.7.0/24 eq 24 metric 128
redistribute local ip 192.160.8.0/24 eq 24 metric 128
redistribute local ip 2001:470:b9d7:ff::/64 eq 64 metric 128
redistribute local ip 2001:470:b9d7::/64 eq 64 metric 128
redistribute local ip 10.27.27.2/32 metric 128
#redistribute local ip ::/64 le 65 metric 128
#redistribute proto 42 ip 2000::/3 le 0 metric 128
redistribute local deny
jaco:~# ip addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
qlen 1000
link/ether 00:50:43:01:dc:07 brd ff:ff:ff:ff:ff:ff
inet 192.168.7.7/24 brd 192.168.7.255 scope global eth0
inet 10.27.27.2/24 brd 10.27.27.255 scope global eth0:0
inet6 2001:470:b9d7:0:250:43ff:fe01:dc07/64 scope global dynamic
valid_lft 84625sec preferred_lft 12625sec
inet6 2001:470:b9d7:ff::f4:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::f5:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::f6:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::f7:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::f8:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::f9:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::fa:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::fb:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::fc:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::fe:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::ff:707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7:ff::707/64 scope global
valid_lft forever preferred_lft forever
inet6 2001:470:b9d7::7/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::250:43ff:fe01:dc07/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
qlen 1000
link/ether 00:50:43:01:dc:08 brd ff:ff:ff:ff:ff:ff
inet 192.168.6.7/24 brd 192.168.6.255 scope global eth1
inet6 2001:470:b9d7:e::707/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::250:43ff:fe01:dc08/64 scope link
valid_lft forever preferred_lft forever
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
link/ether 00:11:a3:02:4b:a1 brd ff:ff:ff:ff:ff:ff
inet 192.168.8.7/24 brd 192.168.8.255 scope global wlan0
inet6 2001:470:b9d7:f:211:a3ff:fe02:4ba1/64 scope global dynamic
valid_lft 85918sec preferred_lft 13918sec
inet6 2001:470:b9d7:f::707/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::211:a3ff:fe02:4ba1/64 scope link
valid_lft forever preferred_lft forever
More information about the Babel-users
mailing list