remove static disable
This commit is contained in:
@@ -12,7 +12,6 @@ protocol kernel {
|
||||
ipv4 {
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if unet_is_valid_network_v4() then {
|
||||
krt_prefsrc = UNET_V4_kernel;
|
||||
accept;
|
||||
|
||||
11
bird/conf/static.conf
Normal file
11
bird/conf/static.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
protocol static static_inet6 {
|
||||
route 2406:840:e601:1000::/56 via 2406:840:e601:16::18;
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import filter {
|
||||
bgp_large_community.add((LOCAL_ASN,1,0));
|
||||
accept;
|
||||
};
|
||||
export none;
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,6 @@ protocol kernel kernel_dn42v4_105 {
|
||||
table dn42v4;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V4_kernel;
|
||||
@@ -23,7 +22,6 @@ protocol kernel kernel_dn42v6_105 {
|
||||
table dn42v6;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V6_kernel;
|
||||
|
||||
@@ -5,7 +5,6 @@ protocol kernel kernel_inet4_102 {
|
||||
table inet4;
|
||||
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;
|
||||
@@ -24,7 +23,6 @@ protocol kernel kernel_inet6_102 {
|
||||
table inet6;
|
||||
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_V6_kernel;
|
||||
|
||||
13
update.sh
13
update.sh
@@ -3,9 +3,16 @@
|
||||
cd
|
||||
git clone https://git.nia.ink/brnet/bird_config.git
|
||||
|
||||
rm /etc/bird/template/inet.conf
|
||||
mv ./bird_config/bird/template/inet.conf /etc/bird/template/inet.conf
|
||||
mv ./bird_config/bird/template/inet_ibgp.conf /etc/bird/template/inet_ibgp.conf
|
||||
rm /etc/bird/bird.conf
|
||||
mv ./bird_config/bird/bird.conf /etc/bird/bird.conf
|
||||
|
||||
rm /etc/bird/net/dn42.conf
|
||||
mv ./bird_config/bird/net/dn42.conf /etc/bird/net/dn42.conf
|
||||
|
||||
rm /etc/bird/net/inet.conf
|
||||
mv ./bird_config/bird/net/inet.conf /etc/bird/net/inet.conf
|
||||
|
||||
mv ./bird_config/bird/conf/static.conf /etc/bird/net/conf/static.conf.disable
|
||||
|
||||
birdc c
|
||||
cd
|
||||
|
||||
Reference in New Issue
Block a user