更新IXP配置
This commit is contained in:
21
bird/template/inet_ixp.conf
Normal file
21
bird/template/inet_ixp.conf
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user