更新IXP配置

This commit is contained in:
2025-11-26 20:51:23 +08:00
parent 2f982e9892
commit 1dd25e25ed
5 changed files with 51 additions and 17 deletions

View File

@@ -0,0 +1,21 @@
template bgp tpl_inet6_ixp {
graceful restart;
local as LOCAL_ASN;
ipv6 {
table inet6;
import filter {
if is_self_net_v6() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
accept;
};
export filter {
if !is_self_net_v6() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
if bgp_large_community !~ [(LOCAL_ASN, 200,1)] then reject;
bgp_large_community.delete((LOCAL_ASN,3,*));
bgp_large_community.delete((LOCAL_ASN,1,*));
bgp_large_community.delete((LOCAL_ASN,200,*));
accept;
};
};
}