This commit is contained in:
2026-01-28 12:37:15 +08:00
parent a7252f5066
commit 022ef0ae8a
8 changed files with 80 additions and 44 deletions

View File

@@ -5,7 +5,7 @@ template bgp dn42_bgp_up {
table dn42v4;
import filter {
if !is_dn42_prefix() then reject;
if is_self_net_dn42v4() then reject;
if is_dn42_self_net() then reject;
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
accept;
};
@@ -22,7 +22,7 @@ template bgp dn42_bgp_up {
table dn42v6;
import filter {
if !is_dn42_prefix() then reject;
if is_self_net_dn42v6() then reject;
if is_dn42_self_net() then reject;
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
accept;
};
@@ -48,13 +48,13 @@ template bgp dn42_ibgp {
import filter {
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
if !is_dn42_prefix() then reject;
if is_self_net_dn42v4() then reject;
if is_dn42_self_net() then reject;
accept;
};
export filter {
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
if !is_dn42_prefix() then reject;
if is_self_net_dn42v4() then reject;
if is_dn42_self_net() then reject;
accept;
};
};
@@ -65,13 +65,13 @@ template bgp dn42_ibgp {
import filter {
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
if !is_dn42_prefix() then reject;
if is_self_net_dn42v6() then reject;
if is_dn42_self_net() then reject;
accept;
};
export filter {
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
if !is_dn42_prefix() then reject;
if is_self_net_dn42v6() then reject;
if is_dn42_self_net() then reject;
accept;
};
};