From 5734509c0545ebd95a5b8e3f22a911c1a39ffa1b Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Sun, 25 Dec 2011 17:52:09 +0100 Subject: babeld: Initial import, for Babel routing protocol. * Initial import of the Babel routing protocol, ported to Quagga. * LICENCE: Update the original LICENCE file to include all known potentially applicable copyright claims. Ask that any future contributors to babeld/ grant MIT/X11 licence to their work. * *.{c,h}: Add GPL headers, in according with the SFLC guidance on dealing with potentially mixed GPL/other licensed work, at: https://www.softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html --- babeld/babeld.conf.sample | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 babeld/babeld.conf.sample (limited to 'babeld/babeld.conf.sample') diff --git a/babeld/babeld.conf.sample b/babeld/babeld.conf.sample new file mode 100644 index 00000000..bb2c1dbb --- /dev/null +++ b/babeld/babeld.conf.sample @@ -0,0 +1,31 @@ +# placeholder +# This is an example. See documentation for more results. +# +# let 'eth0' be an interface. +# +# Remark: '#' and '!' are comments. +# NB, just for this example: +# each line at the same indentation is only dependant of the less level +# line. BUT the quagga parser is insensitive. + + +# setup the routing for Babel. +router babel #activate the Babel routing babeld.c + network eth0 #eth0 is match interface.c + redistribute kernel #(kernel|connected|static|ospf6|bgp) babel_zebra.c + no redistribute static #... + + +# setup each interface, one by one... +Interface eth0 #Set eth0 options interface.c +! wired #with wire interface.c + wireless #without wire (défaut) interface.c +! babel split-horizon #with Split-horizon interface.c + no babel split-horizon #without (defaut) interface.c + hello interval 4096 #default = 4096 (in miliseconds) interface.c + + +# setup the log destination. +# log stdout +# log stdout debugging +log file /var/log/quagga/babeld.log \ No newline at end of file -- cgit v1.2.1 From 831aeb9a87d9071829758caf11130aee5578f9c2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 7 Feb 2012 04:56:47 +0100 Subject: babeld: Replace the babeld.conf.sample file by one that actually works. --- babeld/babeld.conf.sample | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) (limited to 'babeld/babeld.conf.sample') diff --git a/babeld/babeld.conf.sample b/babeld/babeld.conf.sample index bb2c1dbb..e1585c1d 100644 --- a/babeld/babeld.conf.sample +++ b/babeld/babeld.conf.sample @@ -1,31 +1,13 @@ -# placeholder -# This is an example. See documentation for more results. -# -# let 'eth0' be an interface. -# -# Remark: '#' and '!' are comments. -# NB, just for this example: -# each line at the same indentation is only dependant of the less level -# line. BUT the quagga parser is insensitive. - - -# setup the routing for Babel. -router babel #activate the Babel routing babeld.c - network eth0 #eth0 is match interface.c - redistribute kernel #(kernel|connected|static|ospf6|bgp) babel_zebra.c - no redistribute static #... - - -# setup each interface, one by one... -Interface eth0 #Set eth0 options interface.c -! wired #with wire interface.c - wireless #without wire (défaut) interface.c -! babel split-horizon #with Split-horizon interface.c - no babel split-horizon #without (defaut) interface.c - hello interval 4096 #default = 4096 (in miliseconds) interface.c - - -# setup the log destination. -# log stdout -# log stdout debugging -log file /var/log/quagga/babeld.log \ No newline at end of file +router babel +! network eth0 +! redistribute kernel +! no redistribute static + +!interface eth0 +! wired +! wireless +! babel split-horizon +! no babel split-horizon + +! log file /var/log/quagga/babeld.log +log stdout \ No newline at end of file -- cgit v1.2.1 From a14ef5eeccc8c76c41830475bbe3c31c9e14faa5 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Sat, 11 Feb 2012 21:06:16 +0400 Subject: babeld: justify "running-config" meaning in CLI The primary focus of this commit is to make "show running-config" command display more current configuration, including some of the bits previously seen in the output of "show babel running-config". Besides that, the following commands were renamed for consistency with the syntax of other components: "debug *" to "debug babel *" (and moved to top level) "show babel running-config" to "show babel parameters" * babel_interface.c * show_babel_running_config(): rename to show_babel_parameters(), update syntax pattern, don't call show_babeld_configuration() * babel_if_init(): update respectively * babel_enable_if_config_write(): new VTY helper for static babel_enable_if * babel_interface.h: add extern declaration * babel_main.c: unset all debug options by default * show_babel_main_configuration(): remove debug options decoder * babel_zebra.c * babel_debug(): rename to debug_babel(), update syntax pattern * no_babel_debug(): rename to no_debug_babel(), update syntax pattern * babelz_zebra_init(): update respectively * debug_babel_config_write() new VTY helper for static debug_type * babel_zebra.h: add extern declaration * babeld.c * babel_config_write(): add the code to output "debug babel *", "router babel", "redistribute *" and "network *" statements * show_babeld_configuration(): dismiss * babeld.h: remove extern declaration * babeld.texi: update for renamed commands * babeld.conf.sample: idem, add debug statements block --- babeld/babeld.conf.sample | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'babeld/babeld.conf.sample') diff --git a/babeld/babeld.conf.sample b/babeld/babeld.conf.sample index e1585c1d..4eced433 100644 --- a/babeld/babeld.conf.sample +++ b/babeld/babeld.conf.sample @@ -1,13 +1,21 @@ +debug babel common +!debug babel kernel +!debug babel filter +!debug babel timeout +!debug babel interface +!debug babel route +!debug babel all + router babel ! network eth0 ! redistribute kernel ! no redistribute static !interface eth0 -! wired -! wireless +! babel wired +! babel wireless ! babel split-horizon ! no babel split-horizon ! log file /var/log/quagga/babeld.log -log stdout \ No newline at end of file +log stdout -- cgit v1.2.1 From 46b92c043f1a83d8343a4a0345a7b69bac3cdf20 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Tue, 14 Feb 2012 08:53:51 +0100 Subject: babeld: more helpful sample conf file. --- babeld/babeld.conf.sample | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'babeld/babeld.conf.sample') diff --git a/babeld/babeld.conf.sample b/babeld/babeld.conf.sample index 4eced433..a4924ec7 100644 --- a/babeld/babeld.conf.sample +++ b/babeld/babeld.conf.sample @@ -7,15 +7,24 @@ debug babel common !debug babel all router babel +! network wlan0 ! network eth0 ! redistribute kernel ! no redistribute static +! The defaults are fine for a wireless interface + +!interface wlan0 + +! A few optimisation tweaks are optional but recommended on a wired interface +! Disable link quality estimation, enable split horizon processing, and +! increase the hello and update intervals. + !interface eth0 ! babel wired -! babel wireless ! babel split-horizon -! no babel split-horizon +! babel hello-interval 12000 +! babel update-interval 36000 ! log file /var/log/quagga/babeld.log log stdout -- cgit v1.2.1