point to point connection but no routes imported.

Benoit Chesneau benoitc at enki-multimedia.eu
Sat Feb 17 15:31:59 CET 2024


So I have checked the log and I get this from the one that is supposed to received the full view:

```
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1: State changed to up2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1.ipv4 < added 1.1.1.184/29 0L 5G blackhole
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1.ipv4 < filtered out 1.1.1..85/32 9L 9G unicast
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1.ipv4 < filtered out 1.1.1..200/31 9L 9G unicast
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1.ipv4 < filtered out 10.99.1.0/24 7L 8G unicast
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1: Sending UPDATE
2024-02-17 14:26:39.745 <TRACE> ccre1_ipv4_1: Sending END-OF-RIB
2024-02-17 14:26:39.749 <TRACE> ccre1_ipv4_1: Got UPDATE
2024-02-17 14:26:39.749 <TRACE> ccre1_ipv4_1.ipv4 > added [best] 0.0.0.0/0 0L 10G unicast
2024-02-17 14:26:39.749 <TRACE> ccre1_ipv4_1.ipv4 < rejected by protocol 0.0.0.0/0 0L 10G unicast
2024-02-17 14:26:50.944 <ERR> KRT: Error sending route 1.1.1..85/32 to kernel: File exists

```

Atter that no routes are sent. I don't really see what's wrong. R2 seems to correctly send the routes :

```
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 72.11.128.0/19 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 190.5.224.0/22 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 203.146.227.0/24 0L 15G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 156.0.64.0/23 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 154.63.140.0/24 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 102.190.36.0/22 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 87.221.202.0/24 0L 15G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 201.124.8.0/23 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 170.247.208.0/22 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 180.150.14.0/23 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 190.52.76.0/24 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 109.239.96.0/20 0L 16G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 192.12.54.0/24 0L 15G unicast
2024-02-17 14:17:25.838 <TRACE> home_65001_ipv4.ipv4 < added 36.138.206.0/24 0L 15G unicast
```

Is there any template I could use to send the full view to  peer connected to the router directly using a vlan?

Benoît

On Saturday, February 17th, 2024 at 11:49, Alexander Zubkov <green at qrator.net> wrote:

> 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}
> > ];
> > 
> > 
> > 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.



More information about the Bird-users mailing list