The internal BGP route was successfully exported but could not be imported
智慧雨泽
zhihuiyuze at gmail.com
Wed Jul 28 14:18:44 CEST 2021
Hello everyone,I use a pure BGP network to form internal routes (because I
want to keep the as-path), and the ASN of each router is the same.
The vserver of LL_IX successfully export the route
bird> show route for 2602:feda:ab2::/48 export HOME_1_ARCH
Table master6:
2602:feda:ab2::/48 unreachable [BGP_Prefix 11:52:02.569] (200)
But the server at my home could not import it,even i change to import all;
bird> show route for 2602:feda:ab2::/48 protocol LL_IX
bird> show route for 2602:feda:ab2:: protocol LL_IX
bird>
This is the code on home server
template bgp tpl_ibgp {
local as LOCAL_ASN;
rr client;
direct;
ipv6 {
next hop self;
import all;
# import filter {
# if is_bogon_asn() then {
# print "is bogon asn", net, " for ASN ", bgp_path.last;
# reject;
# }
# if is_bogon_prefix() then {
# print "is bogon prefix", net, " for ASN ", bgp_path.last;
# reject;
# }
# if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN);
# accept;
# };
export filter {
if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN);
if bgp_export_all() then accept;
reject;
};
};
}
And the log
Jul 28 12:16:38 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:38 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:38 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:38 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:40 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:40 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:43 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:43 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:43 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:44 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:45 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:45 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:45 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:47 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:47 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:47 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:47 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:48 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
Jul 28 12:16:48 archlinux bird[71587]: Kernel dropped some netlink
messages, will resync on next scan.
And the vserver at ll_ix.and log on this server is just about rpki.
template bgp tpl_ibgp {
local as LOCAL_ASN;
rr client;
direct;
ipv6 {
next hop self;
# import all;
import filter {
if is_bogon_asn() then {
print "is bogon asn", net, " for ASN ", bgp_path.last;
reject;
}
if is_bogon_prefix() then {
print "is bogon prefix", net, " for ASN ", bgp_path.last;
reject;
}
if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN);
accept;
};
export filter {
if my_opt_prefix() then bgp_path.prepend(LOCAL_ASN);
if bgp_export_all() then accept;
reject;
};
};
}
Under what circumstances BGP import will only be "ignored?
"I think this is the problem.
Could soamone help me ? thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20210728/cafe3605/attachment.htm>
More information about the Bird-users
mailing list