From bb9e070b7c9cdbb966198e9728a90799f15dd23d Mon Sep 17 00:00:00 2001 From: graffen Date: Mon, 17 Sep 2018 18:02:46 +0000 Subject: [PATCH] Fix OSPF config --- ospf4.conf | 17 +++++------------ ospf6.conf | 14 ++++---------- 2 files changed, 9 insertions(+), 22 deletions(-) diff --git a/ospf4.conf b/ospf4.conf index 4afc468..78c79d6 100644 --- a/ospf4.conf +++ b/ospf4.conf @@ -13,22 +13,15 @@ protocol ospf { }; } -protocol direct { - table T_OSPF4; - import where is_self_net(); - export none; - - interface "lo"; -} - filter filter_OSPF { ospf_metric1 = 1000; - if source = RTS_STATIC then accept; + if is_self_net() then accept; else reject; }; protocol pipe { - peer table T_OSPF4; - import filter filter_OSPF; - export none; + table T_OSPF4; + peer table master; + import none; + export filter filter_OSPF; } diff --git a/ospf6.conf b/ospf6.conf index 4777d74..731c215 100644 --- a/ospf6.conf +++ b/ospf6.conf @@ -13,22 +13,16 @@ protocol ospf { }; } -protocol direct { - table T_OSPF6; - import where is_self_net(); - export none; - - interface "lo"; -} filter filter_OSPF6 { ospf_metric1 = 1000; - if source = RTS_STATIC then accept; + if is_self_net() then accept; else reject; }; protocol pipe { - peer table T_OSPF6; - import all; + table T_OSPF6; + peer table master; + import none; export filter filter_OSPF6; }