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