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;