point to point connection but no routes imported.

Alexander Zubkov green at qrator.net
Sat Feb 17 11:49:42 CET 2024


Hi,

Just to be sure. 1.1.1.1 and 1.1.1.2 are not in the single /31.
Please also provide more details. What protocol output do you show? What
route do you want from R2 to R1. Please look at things like these:
show route all <prefix>
show route all export <proto> <prefix>
show route all protocol <proto> <prefix>

On Sat, Feb 17, 2024, 00:21 Benoit Chesneau <benoitc at enki-multimedia.eu>
wrote:

> Hi all,
>
>
> I have an issue witth the route import onbetween two machine. They are
> connected to each others  by a vlan and at each end ana /31 is setup. I can
> ping between  each end.
>
> R1: VLAN330(1.1.1.1) ----> R2 : VLAN330(1.1.1.2)
>
>
> R2( 1.1.1.2)  is connected to upstreams transit  and collect correctly the
> routes. But when I do the following config on this rouyer (R2):
>
> R2 is showing some  exported routes but R1 received nothing:
>
> ```
>     Route change stats:     received   rejected   filtered    ignored
>  accepted
>       Import updates:              1          0          0          0
>     1
>       Import withdraws:            0          0        ---          0
>     0
>       Export updates:         934590         27          0        ---
>  934563
>       Export withdraws:           18        ---        ---        ---
>    18
> ```
>
> What could be the issue ?
>
>
>
>
> I have the following configuratiosn:
>
>
> R1:
> ```
> define AS65001_IPV4 = [    1.1.1.184/29{29,32}
> <http://1.1.1.184/29%7B29,32%7D>
> ];
>
>
> filter ebgp_home_as65001_import {
>         if (net.type = NET_IP4 && ! (net ~ AS65001_IPV4)) then reject;
>         accept;
> }
>
> filter ebgp_home_as65001_export {
>
> protocol bgp home_65001_ipv4 {
>   local 1.1.1.2 as 209823;
>   neighbor 1.1.1.1 as 65001;
>   default bgp_med 0;
>   default bgp_local_pref 400;
>   ipv4 {
>     import keep filtered;
>     import filter ebgp_home_as65001_import;
>     export all;
>     next hop self on;
>   };
> };
> ```
>
> R2:
>
> ```
> router id 1.1.1.1;
>
> log syslog all;
>
> log "/var/log/bird.log" all;
> debug protocols all;
>
>
> watchdog warning 5 s;
> watchdog timeout 30 s;
>
>
> protocol device {
>   scan time 30;
> }
>
> protocol direct {
>   ipv4;
>   ipv6;
>   check link yes;
> }
>
>
> protocol kernel kernel4 {
>   ipv4 { import all; export where source != RTS_DEVICE; };
>   learn off;
>   scan time 300;
> }
>
> protocol kernel kernel6 {
>   ipv6 { import all; export where source != RTS_DEVICE; };
>   learn off;
>   scan time 300;
> }
>
> protocol static static4 {
>   ipv4 { export all; };
>   # Reject default route
>  route 0.0.0.0/0 unreachable;
>
>   # main route
>   route 1.1.1.184/29 blackhole;
> }
>
>
>
> filter bgp_export {
>   if (net.type = NET_IP4 && ! (net ~ [ 1.1.1.184/29 ])) then reject;
>
>   accept;
> }
>
> template bgp T_GW4 {
>   local 1.1.1.1 as 65001;
>   default bgp_med 0;
>   default bgp_local_pref 400;
>   multihop;
>   ipv4 { import keep filtered; import all; export filter bgp_export; next
> hop self on; };
> }
>
> protocol bgp ccre1_ipv4_1 from T_GW4 { neighbor 1.1.1.2 as <PUBLIC AS >; };
> ```
>
> Benoît Chesneau, Enki Multimedia
>> t. +33608655490
>
> Sent with Proton Mail secure email.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20240217/91e305cb/attachment.htm>


More information about the Bird-users mailing list