路由表防卡油

This commit is contained in:
2025-11-18 12:52:29 +08:00
parent 0f50f35e34
commit ee3d66217a
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
protocol kernel {
scan time 20;
kernel table 103;
kernel table 102;
ipv4 {
table inet4;
import none;

View File

@@ -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;