From ee3d66217a3b63daa3f4ffc93fa3446fda727a39 Mon Sep 17 00:00:00 2001 From: daxi20 Date: Tue, 18 Nov 2025 12:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=A1=A8=E9=98=B2=E5=8D=A1?= =?UTF-8?q?=E6=B2=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bird/net/inet4.conf | 2 +- bird/template/inet.conf | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bird/net/inet4.conf b/bird/net/inet4.conf index 05d8ab4..873c96e 100644 --- a/bird/net/inet4.conf +++ b/bird/net/inet4.conf @@ -1,6 +1,6 @@ protocol kernel { scan time 20; - kernel table 103; + kernel table 102; ipv4 { table inet4; import none; diff --git a/bird/template/inet.conf b/bird/template/inet.conf index 82eb92b..d9dee39 100644 --- a/bird/template/inet.conf +++ b/bird/template/inet.conf @@ -6,9 +6,8 @@ template bgp tpl_inet4_up { import filter { if is_self_net() then reject; if is_bogon_prefix() || (bgp_path.len > 100) then reject; - if net ~ [0.0.0.0/0] then reject; # 不导入默认路由 bgp_large_community.empty; - bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp + bgp_large_community.add((LOCAL_ASN,200,0)); accept; }; export filter { @@ -30,7 +29,6 @@ template bgp tpl_inet6_up { import filter { if is_self_net_v6() then reject; if is_bogon_prefix() || (bgp_path.len > 100) then reject; - if net ~ [::/0] then reject; # 不导入默认路由 bgp_large_community.empty; bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp accept;