From 1009d5a943b27954c49cdee968b7d4acdcfc2687 Mon Sep 17 00:00:00 2001 From: 186526 Date: Tue, 10 Jan 2023 21:36:40 +0800 Subject: [PATCH] add bfd --- .drone.yml | 4 +++- bird/blank.conf | 2 +- bird/net186_bfd.conf | 5 +++++ protocol/internal_network.conf | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 bird/net186_bfd.conf diff --git a/.drone.yml b/.drone.yml index c8d5154..26825b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,10 +14,12 @@ trigger: steps: - name: test + privileged: true image: alpine:latest commands: - sed -i '1i\include "./config-example.conf";' bird.conf - - apk add bird + - apk add bird iproute2 + - ip link add tunnel-dum0 type dummy - bird -p -c ./bird.conf --- diff --git a/bird/blank.conf b/bird/blank.conf index 31459b1..8a12da4 100644 --- a/bird/blank.conf +++ b/bird/blank.conf @@ -1 +1 @@ -# Yes, It's just a blank file. \ No newline at end of file +# Yes, It's just a blank file. diff --git a/bird/net186_bfd.conf b/bird/net186_bfd.conf new file mode 100644 index 0000000..339539b --- /dev/null +++ b/bird/net186_bfd.conf @@ -0,0 +1,5 @@ +protocol bfd net186_bfd { + interface "tunnel-*" { + interval 200 ms; + }; +} diff --git a/protocol/internal_network.conf b/protocol/internal_network.conf index 3a4f7c2..64bbd2c 100644 --- a/protocol/internal_network.conf +++ b/protocol/internal_network.conf @@ -3,6 +3,8 @@ template bgp net186 { interpret communities off; + bfd on; + ipv6 { next hop self;