42 lines
1002 B
Plaintext
42 lines
1002 B
Plaintext
function dn42_is_self_net() {
|
|
return net ~ [
|
|
172.20.21.0/26+
|
|
];
|
|
}
|
|
|
|
protocol static route_dn42_export_v4 {
|
|
route 172.20.21.0/26 reject;
|
|
|
|
ipv4 {
|
|
table dn42v4;
|
|
import filter {
|
|
bgp_large_community.add((DN42_ASN,3,0));# 不允许导出到内核
|
|
bgp_large_community.add((DN42_ASN,1,0));# 不允许传输到ibgp
|
|
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
|
accept;
|
|
};
|
|
export none;
|
|
};
|
|
}
|
|
|
|
|
|
function dn42_is_self_net_v6() {
|
|
return net ~ [
|
|
fde8:936e:ee29::/48+
|
|
];
|
|
}
|
|
|
|
protocol static route_dn42_export_v6 {
|
|
route fde8:936e:ee29::/48 reject;
|
|
ipv6 {
|
|
table dn42v6;
|
|
import filter {
|
|
bgp_large_community.add((DN42_ASN,3,0));# 不允许导出到内核
|
|
bgp_large_community.add((DN42_ASN,1,0));# 不允许传输到ibgp
|
|
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
|
accept;
|
|
};
|
|
export none;
|
|
};
|
|
}
|