0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
protocol kernel {
|
||||
protocol kernel kernel_inet4_102 {
|
||||
scan time 20;
|
||||
kernel table 102;
|
||||
ipv4 {
|
||||
@@ -6,6 +6,7 @@ protocol kernel {
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
||||
if !is_bogon_prefix() then {
|
||||
krt_prefsrc = LOCAL_V4_kernel;
|
||||
accept;
|
||||
@@ -15,20 +16,12 @@ protocol kernel {
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
protocol kernel {
|
||||
scan time 20;
|
||||
kernel table 102;
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if !is_bogon_prefix() then {
|
||||
krt_prefsrc = LOCAL_V6_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
protocol pipe inet6_sync_to_master6 {
|
||||
table inet6;
|
||||
peer table master6;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
import none;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
# 公网处理
|
||||
# 公网处理 => inet4/6
|
||||
protocol pipe unet4_inet4_sync {
|
||||
table unet4;
|
||||
peer table master4;
|
||||
@@ -24,7 +24,7 @@ protocol pipe unet6_inet6_sync {
|
||||
}
|
||||
|
||||
|
||||
# DN42处理
|
||||
# DN42处理 => dn42v4/6
|
||||
protocol pipe unet4_dn42v4_sync {
|
||||
table unet4;
|
||||
peer table dn42v4;
|
||||
|
||||
Reference in New Issue
Block a user