On Tue, 2021-06-22 at 19:02 +0200, Olivier Cochard-Labbé wrote:
> On Tue, Jun 22, 2021 at 5:17 PM Clemens Zauner <czau...@atnoc.net>
> wrote:
> 
> Hi Clemens,
> indeed there is a problem somewhere, like a not synchronized RIB and
> FIB.
> 
> Could you display the output of those commands:
> sysctl net.route.algo
> netstat -4rnW | grep 51.15.0.0
> netstat -4onW | grep 51.15.0.0
> 

[root@amarklor]/etc# netstat -4rnW | grep 51.15.0.0
51.15.0.0/17       149.6.174.241      UG1         8   1500       cxl0
51.15.0.0/16       149.6.174.241      UG1         8   1500       cxl0

[root@amarklor]/etc# netstat -4onW | grep 51.15.0.0
[root@amarklor]/etc# 


Trace takes the 'wrong direction':

[root@amarklor]/etc# traceroute 51.15.183.144
traceroute to 51.15.183.144 (51.15.183.144), 64 hops max, 40 byte
packets
 1  em2-910.panem.atnoc.net (193.239.188.36)  0.526 ms  0.255 ms  0.193
ms

I'm somehow lost, how the machine does that (btw: 193.239.188.36 is not
reachable via the chelsio, but via igb0, so there is not rewriting or
switching going on the the chelsio-T5.

BGP/FRR reflects the state of the kernel routing table:

amarklor.atnoc.net# sh ip route 51.15.183.144
Routing entry for 51.15.0.0/16
  Known via "bgp", distance 20, metric 25061, best
  Last update 01w1d22h ago
  * 149.6.174.241, via cxl0, weight 1

amarklor.atnoc.net# sh ip bgp 51.15.0.0/16
BGP routing table entry for 51.15.0.0/16
Paths: (1 available, best #1, table default)
  Advertised to non peer-group peers:
  193.239.188.34 193.239.188.36 193.239.188.214 193.239.188.216
  174 12876
    149.6.174.241 (metric 1) from 149.6.174.241 (154.26.32.25)
      Origin IGP, metric 25061, valid, external, best (First path
received)
      Community: 174:21101 174:22008
      Last update: Mon Jun 14 19:07:00 2021
amarklor.atnoc.net# 

For what It's worth, for all prefixes displaying the behaviour, there
ist alsways a longer prefix for the same network in the routing-table.
As seen above: 51.15.0.0/16 and 51.15.0.0/17. But not all prefixes with
a more specific show this behaviour.

for instance:
[root@amarklor]/etc# netstat -4rnW | grep 88.10..0.0
88.100.0.0/15      149.6.174.241      UG1         8   1500       cxl0
88.100.0.0/14      149.6.174.241      UG1         8   1500       cxl0
88.102.0.0/16      149.6.174.241      UG1         8   1500       cxl0
88.104.0.0/14      149.6.174.241      UG1         8   1500       cxl0
88.104.0.0/13      149.6.174.241      UG1         8   1500       cxl0
88.108.0.0/14      149.6.174.241      UG1         8   1500       cxl0

or: 
[root@amarklor]/etc# netstat -4rnW | grep 149.12.0.0
149.12.0.0/20      149.6.174.241      UG1         8   1500       cxl0
149.12.0.0/15      149.6.174.241      UG1         8   1500       cxl0

The 'netstat -4onW' is rather compact, I post the whole, for reference:


[root@amarklor]/etc# netstat -4onW 
Nexthop data

Internet:
Idx   Type         IFA                Gateway             Flags      Use Mtu    
     Netif     Addrif Refcnt Prepend
1       v4/resolve 127.0.0.1          lo0/resolve        H         76508  16384 
       lo0               2 
2       v4/resolve 193.239.188.197    lo1/resolve        H             0  16384 
       lo1               2 
3       v4/resolve 149.6.174.242      cxl0/resolve                192653   1500 
      cxl0               3 
4       v4/resolve 127.0.0.1          lo0/resolve        HS            0  16384 
       lo0      cxl0     2 
5            v4/gw 127.0.0.1          127.0.0.1          G1B        3546  16384 
       lo0               7 
6       v4/resolve 193.239.188.38     igb0/resolve               2893089   1500 
      igb0               5 
7       v4/resolve 127.0.0.1          lo0/resolve        HS            0  16384 
       lo0      igb0     2 
8            v4/gw 149.6.174.242      149.6.174.241      G1       176047   1500 
      cxl0          598127 
9       v4/resolve 193.239.188.217    igb2/resolve                709843   9216 
      igb2               3 
10      v4/resolve 127.0.0.1          lo0/resolve        HS            0  16384 
       lo0      igb2     2 
11      v4/resolve 193.239.188.215    igb3/resolve                708796   9216 
      igb3               3 
12      v4/resolve 127.0.0.1          lo0/resolve        HS            0  16384 
       lo0      igb3     2 
13      v4/resolve 95.129.200.114     vlan960/resolve               2450   1500 
   vlan960               2 
14      v4/resolve 127.0.0.1          lo0/resolve        HS            0  16384 
       lo0   vlan960     2 
15           v4/gw 95.129.200.114     95.129.200.123     G1            0   1500 
   vlan960               4 
16           v4/gw 95.129.200.114     95.129.200.118     G1            0   1500 
   vlan960               5 
17           v4/gw 95.129.200.114     95.129.200.124     G1           32   1500 
   vlan960               3 
18           v4/gw 193.239.188.215    193.239.188.214    G1     54272925   9216 
      igb3               7 
19           v4/gw 95.129.200.114     95.129.200.113     GH1           3   1500 
   vlan960               2 
20           v4/gw 95.129.200.114     95.129.200.117     G1        95310   1500 
   vlan960              14 
21           v4/gw 95.129.200.114     95.129.200.120     G1            0   1500 
   vlan960               8 
22           v4/gw 95.129.200.114     95.129.200.117     GH1           0   1500 
   vlan960               7 
23           v4/gw 95.129.200.114     95.129.200.125     G1         3613   1500 
   vlan960              35 
24           v4/gw 95.129.200.114     95.129.200.119     G1            0   1500 
   vlan960               2 
25           v4/gw 193.239.188.215    193.239.188.214    GH1        2662   9216 
      igb3               4 
26           v4/gw 193.239.188.217    193.239.188.216    G1        98212   9216 
      igb2               4 
27           v4/gw 193.239.188.217    193.239.188.216    GH1        1895   9216 
      igb2               5 
28           v4/gw 193.239.188.38     193.239.188.34     G1        31251   1500 
      igb0          154517 
29           v4/gw 193.239.188.38     193.239.188.36     G1        16214   1500 
      igb0           79933 
30           v4/gw 149.6.174.242      149.6.174.241      G1          177   1500 
      cxl0               2 


HTH
    Clemens.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Bsdrp-users mailing list
Bsdrp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bsdrp-users

Reply via email to