更新外发BGP模板
This commit is contained in:
@@ -6,6 +6,8 @@ template bgp tpl_bgp_up {
|
||||
import filter {
|
||||
if is_self_net() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
@@ -22,6 +24,8 @@ template bgp tpl_bgp_up {
|
||||
import filter {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
|
||||
Reference in New Issue
Block a user