路由表防卡油
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
protocol kernel {
|
||||
scan time 20;
|
||||
kernel table 103;
|
||||
kernel table 102;
|
||||
ipv4 {
|
||||
table inet4;
|
||||
import none;
|
||||
|
||||
@@ -6,9 +6,8 @@ template bgp tpl_inet4_up {
|
||||
import filter {
|
||||
if is_self_net() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
if net ~ [0.0.0.0/0] then reject; # 不导入默认路由
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
@@ -30,7 +29,6 @@ template bgp tpl_inet6_up {
|
||||
import filter {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
if net ~ [::/0] then reject; # 不导入默认路由
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
|
||||
Reference in New Issue
Block a user