更新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

@@ -1,9 +1,3 @@
function is_self_net() {
return net ~ [
44.32.191.0/24
];
}
protocol static route_int_export_v4 {
route 44.32.191.0/24 reject;
ipv4 {
@@ -18,12 +12,6 @@ protocol static route_int_export_v4 {
};
}
function is_self_net_v6() {
return net ~ [
2406:840:e600::/44{44,48}
];
}
protocol static route_int_export_v6 {
route 2406:840:e602::/48 reject;
route 2406:840:e604::/48 reject;

13
bird/conf/inet_func.conf Normal file
View File

@@ -0,0 +1,13 @@
function is_self_net() {
return net ~ [
44.32.191.0/24
];
}
function is_self_net_v6() {
return net ~ [
2406:840:e600::/44{44,48},
2a0f:1cc5:10::/44{44,48}
];
}

13
bird/conf/inet_ixp.conf Normal file
View File

@@ -0,0 +1,13 @@
protocol static route_int_export_ixp_v6 {
route 2406:840:e600::/44 reject;
ipv6 {
table inet6;
import filter {
bgp_large_community.add((LOCAL_ASN,3,0));
bgp_large_community.add((LOCAL_ASN,1,0));
bgp_large_community.add((LOCAL_ASN,200,1));
accept;
};
export none;
};
}