更新外发BGP模板

This commit is contained in:
2025-11-03 16:57:26 +08:00
parent d6c621f38d
commit 37842ed600
3 changed files with 47 additions and 13 deletions

View File

@@ -6,6 +6,8 @@ template bgp tpl_bgp_up {
import filter {
if is_self_net() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
bgp_large_community.empty;
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
accept;
};
export filter {
@@ -22,6 +24,8 @@ template bgp tpl_bgp_up {
import filter {
if is_self_net_v6() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
bgp_large_community.empty;
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
accept;
};
export filter {